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] unnamed union structure members are dangerous to

To: Samuel Thibault <samuel.thibault@xxxxxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH] unnamed union structure members are dangerous to expose in public headers
From: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Date: Tue, 25 Mar 2008 17:33:53 +0000
Delivery-date: Tue, 25 Mar 2008 10:35:21 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20080325172534.GD6845@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AciOnmT3o1akkvqREdyTBAAX8io7RQ==
Thread-topic: [Xen-devel] [PATCH] unnamed union structure members are dangerous to expose in public headers
User-agent: Microsoft-Entourage/11.4.0.080122
On 25/3/08 17:25, "Samuel Thibault" <samuel.thibault@xxxxxxxxxxxxx> wrote:

> will return 0x13e0 when compiled without gcc -std=c99, while the
> expected value is 0x1430, resulting to seg faults and all kinds of
> tricks.  Compiling with
> 
> #include "/usr/include/xen/foreign/x86_64.h"
> 
> shows why:
> 
> /usr/include/xen/foreign/x86_64.h:88: warning: declaration does not
> declare anything

This raises two obvious questions:
 1. Why building with -std=c99?
 2. Why building without -Werror?

 -- Keir



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

<Prev in Thread] Current Thread [Next in Thread>