[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] new compile error in gx_comm.c in xen-unstable


  • To: xen-devel@xxxxxxxxxxxxxxxxxxx
  • From: Olaf Hering <olaf@xxxxxxxxx>
  • Date: Tue, 2 Nov 2010 11:34:14 +0100
  • Delivery-date: Tue, 02 Nov 2010 03:35:12 -0700
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

Hello,

there is a regression between xen-unstable rev 22314 and 22344,
gx_comm.c does not compile anymore due to -Werror, see below.
I think a simpe 'if (write(args..)) perror("write");' will be good enough.

Olaf

gccââ-fmessage-length=0â-O2â-Wallâ-D_FORTIFY_SOURCE=2ââ-funwind-tablesâ
-fasynchronous-unwind-tablesâ-O1â-fno-omit-frame-pointerâ
-fno-optimize-sibling-callsâ-m64â-gâ-fno-strict-aliasingâ-std=gnu99â
-Wallâ-Wstrict-prototypesâ-Wno-unused-valueâ
-Wdeclaration-after-statementââ-O1â-fno-omit-frame-pointerâ
-fno-optimize-sibling-callsâ-m64â-gâ-fno-strict-aliasingâ-std=gnu99â
-Wallâ-Wstrict-prototypesâ-Wno-unused-valueâ
-Wdeclaration-after-statementââ-O1â-fno-omit-frame-pointerâ
-fno-optimize-sibling-callsâ-m64â-gâ-fno-strict-aliasingâ-std=gnu99â
-Wallâ-Wstrict-prototypesâ-Wno-unused-valueâ
-Wdeclaration-after-statementââ-D__XEN_TOOLS__â-MMDâ-MFâ
.subdirs-install.dââ-D_LARGEFILE_SOURCEâ-D_LARGEFILE64_SOURCEââ-O1â
-fno-omit-frame-pointerâ-fno-optimize-sibling-callsâ-m64â-gâ
-fno-strict-aliasingâ-std=gnu99â-Wallâ-Wstrict-prototypesâ
-Wno-unused-valueâ-Wdeclaration-after-statementââ-D__XEN_TOOLS__â-MMDâ
-MFâ.gdbsx.dââ-D_LARGEFILE_SOURCEâ-D_LARGEFILE64_SOURCEââ-O1â
-fno-omit-frame-pointerâ-fno-optimize-sibling-callsâ-m64â-gâ
-fno-strict-aliasingâ-std=gnu99â-Wallâ-Wstrict-prototypesâ
-Wno-unused-valueâ-Wdeclaration-after-statementââ-D__XEN_TOOLS__â-MMDâ
-MFâ.all.dââ-D_LARGEFILE_SOURCEâ-D_LARGEFILE64_SOURCEââ-Werrorâ
-Wmissing-prototypesââ-O1â-fno-omit-frame-pointerâ
-fno-optimize-sibling-callsâ-m64â-gâ-fno-strict-aliasingâ-std=gnu99â
-Wallâ-Wstrict-prototypesâ-Wno-unused-valueâ
-Wdeclaration-after-statementââ-D__XEN_TOOLS__â-MMDâ-MFâ.gx_comm.o.dââ
-D_LARGEFILE_SOURCEâ-D_LARGEFILE64_SOURCEââ-Werrorâ-Wmissing-prototypesâ
â-câ-oâgx_comm.oâgx_comm.c
cc1:âwarningsâbeingâtreatedâasâerrors
gx_comm.c:âInâfunctionâ'gx_getpkt':
gx_comm.c:230:âerror:âignoringâreturnâvalueâofâ'write',âdeclaredâwithâattributeâ
warn_unused_result
gx_comm.c:236:âerror:âignoringâreturnâvalueâofâ'write',âdeclaredâwithâattributeâ
warn_unused_result


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.