WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

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

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] new compile error in gx_comm.c in xen-unstable
From: Olaf Hering <olaf@xxxxxxxxx>
Date: Tue, 2 Nov 2010 11:34:14 +0100
Delivery-date: Tue, 02 Nov 2010 03:35:12 -0700
Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; t=1288694059; l=2389; s=domk; d=aepfle.de; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:To:From: Date:X-RZG-CLASS-ID:X-RZG-AUTH; bh=kI3iIhK9EMYH9Axn+15qSRNmYfE=; b=a06saBFh48vsOD2iWP/vr210xLhzWzNyPtYaxE5X/xkJIWiHhCOB3WNg3qDzfnDLtOU VoQgs7xNcB2jvQBHwfU3L0AFm3kcZ3EFpJ+VEWcqiH/q9egowZwHJTbghcock4+bHVQKO 9b6RIfBQn4mWlQhJ0TPythnqrlUdA1j6AZU=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.20 (2009-06-14)
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