All of lore.kernel.org
 help / color / mirror / Atom feed
From: Samuel Thibault <samuel.thibault@eu.citrix.com>
To: Keir Fraser <keir.fraser@eu.citrix.com>
Cc: xen-devel@lists.xensource.com
Subject: Re: [PATCH] unnamed union structure members are dangerous to expose in public headers
Date: Tue, 25 Mar 2008 17:42:48 +0000	[thread overview]
Message-ID: <20080325174248.GS4411@implementation.uk.xensource.com> (raw)
In-Reply-To: <C40EE801.1E514%keir.fraser@eu.citrix.com>

Keir Fraser, le Tue 25 Mar 2008 17:33:53 +0000, a écrit :
> On 25/3/08 17:25, "Samuel Thibault" <samuel.thibault@eu.citrix.com> 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?

Because in the wild public world, people may want to.

>  2. Why building without -Werror?

That wouldn't produce an error: the warning only appears when including
with "" instead of <>, so that gcc spits warnings of the header itself.

Samuel

      reply	other threads:[~2008-03-25 17:42 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-25 17:25 [PATCH] unnamed union structure members are dangerous to expose in public headers Samuel Thibault
2008-03-25 17:33 ` Keir Fraser
2008-03-25 17:42   ` Samuel Thibault [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080325174248.GS4411@implementation.uk.xensource.com \
    --to=samuel.thibault@eu.citrix.com \
    --cc=keir.fraser@eu.citrix.com \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.