From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olaf Hering Subject: new compile error in gx_comm.c in xen-unstable Date: Tue, 2 Nov 2010 11:34:14 +0100 Message-ID: <20101102103414.GA13749@aepfle.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org 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=E2=80=82=E2=80=82-fmessage-length=3D0=E2=80=82-O2=E2=80=82-Wall=E2=80= =82-D_FORTIFY_SOURCE=3D2=E2=80=82=E2=80=82-funwind-tables=E2=80=82 -fasynchronous-unwind-tables=E2=80=82-O1=E2=80=82-fno-omit-frame-pointer=E2= =80=82 -fno-optimize-sibling-calls=E2=80=82-m64=E2=80=82-g=E2=80=82-fno-strict-a= liasing=E2=80=82-std=3Dgnu99=E2=80=82 -Wall=E2=80=82-Wstrict-prototypes=E2=80=82-Wno-unused-value=E2=80=82 -Wdeclaration-after-statement=E2=80=82=E2=80=82-O1=E2=80=82-fno-omit-fram= e-pointer=E2=80=82 -fno-optimize-sibling-calls=E2=80=82-m64=E2=80=82-g=E2=80=82-fno-strict-a= liasing=E2=80=82-std=3Dgnu99=E2=80=82 -Wall=E2=80=82-Wstrict-prototypes=E2=80=82-Wno-unused-value=E2=80=82 -Wdeclaration-after-statement=E2=80=82=E2=80=82-O1=E2=80=82-fno-omit-fram= e-pointer=E2=80=82 -fno-optimize-sibling-calls=E2=80=82-m64=E2=80=82-g=E2=80=82-fno-strict-a= liasing=E2=80=82-std=3Dgnu99=E2=80=82 -Wall=E2=80=82-Wstrict-prototypes=E2=80=82-Wno-unused-value=E2=80=82 -Wdeclaration-after-statement=E2=80=82=E2=80=82-D__XEN_TOOLS__=E2=80=82-M= MD=E2=80=82-MF=E2=80=82 .subdirs-install.d=E2=80=82=E2=80=82-D_LARGEFILE_SOURCE=E2=80=82-D_LARGEF= ILE64_SOURCE=E2=80=82=E2=80=82-O1=E2=80=82 -fno-omit-frame-pointer=E2=80=82-fno-optimize-sibling-calls=E2=80=82-m64=E2= =80=82-g=E2=80=82 -fno-strict-aliasing=E2=80=82-std=3Dgnu99=E2=80=82-Wall=E2=80=82-Wstrict-= prototypes=E2=80=82 -Wno-unused-value=E2=80=82-Wdeclaration-after-statement=E2=80=82=E2=80=82= -D__XEN_TOOLS__=E2=80=82-MMD=E2=80=82 -MF=E2=80=82.gdbsx.d=E2=80=82=E2=80=82-D_LARGEFILE_SOURCE=E2=80=82-D_LARG= EFILE64_SOURCE=E2=80=82=E2=80=82-O1=E2=80=82 -fno-omit-frame-pointer=E2=80=82-fno-optimize-sibling-calls=E2=80=82-m64=E2= =80=82-g=E2=80=82 -fno-strict-aliasing=E2=80=82-std=3Dgnu99=E2=80=82-Wall=E2=80=82-Wstrict-= prototypes=E2=80=82 -Wno-unused-value=E2=80=82-Wdeclaration-after-statement=E2=80=82=E2=80=82= -D__XEN_TOOLS__=E2=80=82-MMD=E2=80=82 -MF=E2=80=82.all.d=E2=80=82=E2=80=82-D_LARGEFILE_SOURCE=E2=80=82-D_LARGEF= ILE64_SOURCE=E2=80=82=E2=80=82-Werror=E2=80=82 -Wmissing-prototypes=E2=80=82=E2=80=82-O1=E2=80=82-fno-omit-frame-pointer= =E2=80=82 -fno-optimize-sibling-calls=E2=80=82-m64=E2=80=82-g=E2=80=82-fno-strict-a= liasing=E2=80=82-std=3Dgnu99=E2=80=82 -Wall=E2=80=82-Wstrict-prototypes=E2=80=82-Wno-unused-value=E2=80=82 -Wdeclaration-after-statement=E2=80=82=E2=80=82-D__XEN_TOOLS__=E2=80=82-M= MD=E2=80=82-MF=E2=80=82.gx_comm.o.d=E2=80=82=E2=80=82 -D_LARGEFILE_SOURCE=E2=80=82-D_LARGEFILE64_SOURCE=E2=80=82=E2=80=82-Werro= r=E2=80=82-Wmissing-prototypes=E2=80=82 =E2=80=82-c=E2=80=82-o=E2=80=82gx_comm.o=E2=80=82gx_comm.c cc1:=E2=80=82warnings=E2=80=82being=E2=80=82treated=E2=80=82as=E2=80=82er= rors gx_comm.c:=E2=80=82In=E2=80=82function=E2=80=82'gx_getpkt': gx_comm.c:230:=E2=80=82error:=E2=80=82ignoring=E2=80=82return=E2=80=82val= ue=E2=80=82of=E2=80=82'write',=E2=80=82declared=E2=80=82with=E2=80=82attr= ibute=E2=80=82warn_unused_result gx_comm.c:236:=E2=80=82error:=E2=80=82ignoring=E2=80=82return=E2=80=82val= ue=E2=80=82of=E2=80=82'write',=E2=80=82declared=E2=80=82with=E2=80=82attr= ibute=E2=80=82warn_unused_result