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

Re: [Xen-devel] [PATCH]: gdbsx: Check return of write()

To: Bruce Edge <bruce.edge@xxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH]: gdbsx: Check return of write()
From: Olaf Hering <olaf@xxxxxxxxx>
Date: Wed, 3 Nov 2010 09:09:29 +0100
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, Jackson <Ian.Jackson@xxxxxxxxxxxxx>, Gianni Tedesco <gianni.tedesco@xxxxxxxxxx>
Delivery-date: Wed, 03 Nov 2010 01:10:08 -0700
Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; t=1288771772; l=658; s=domk; d=aepfle.de; h=In-Reply-To:Content-Transfer-Encoding:Content-Type:MIME-Version: References:Subject:Cc:To:From:Date:X-RZG-CLASS-ID:X-RZG-AUTH; bh=nkll+pizaoD7KbHSyrVkvBYRV+s=; b=krwoKiC9P6IYKLRRTfpSdQ8EGPoB8Li8es3JyZtTLWe1oyU4PAuFCcUoiWuIc4pmD5L J8TeJCN/WQOl4E7Os8XyAwoXyYBDoiT3B+tM3SISiqfDvcVtQWtnJkvfEvpNW0UDB1DkO zyX40+LrdqnEYzAGhIsD1XgI/odPNMYFiB0=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <AANLkTimKK7OQwgkFjAE01Wh-JVd0=SA70B04-NqBdwgn@xxxxxxxxxxxxxx>
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>
References: <20101102103414.GA13749@xxxxxxxxx> <1288714297.23619.59.camel@xxxxxxxxxxxxxxxxxxxxxx> <AANLkTimKK7OQwgkFjAE01Wh-JVd0=SA70B04-NqBdwgn@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.20 (2009-06-14)
On Tue, Nov 02, Bruce Edge wrote:

> o-unused-value -Wdeclaration-after-statement  -D__XEN_TOOLS__ -MMD -MF
> .gx_local.o.d  -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE  -Werror
> -Wmissing-prototypes  -c -o gx_local.o gx_local.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

With the patch applied, the line number 236 should be 237.
Please apply the suggested patch, its not upstream yet.

Olaf

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