From: Keir Fraser <keir.xen@gmail.com>
To: Jan Beulich <JBeulich@suse.com>, Ian Campbell <Ian.Campbell@citrix.com>
Cc: Andrew Cooper <andrew.cooper3@citrix.com>,
M A Young <m.a.young@durham.ac.uk>,
"xen-devel@lists.xen.org" <xen-devel@lists.xen.org>
Subject: Re: Compile errors with gcc 4.8
Date: Thu, 07 Feb 2013 11:55:07 +0000 [thread overview]
Message-ID: <CD39469B.4B817%keir.xen@gmail.com> (raw)
In-Reply-To: <5113887F02000078000BCC20@nat28.tlf.novell.com>
On 07/02/2013 09:57, "Jan Beulich" <JBeulich@suse.com> wrote:
> Actually, I'm of the opposite opinion - it should be in other places
> too that handles don't get needlessly defined by the public
> headers. They should get defined only when there actually is a
> use for them. Everything else can be defined where actually
> consumed, as in this case: For one, a handle of a compat_*
> type can't be defined in a public header anyway, as the compat
> types don't get defined there. And then, as you say, the oddity
> of this type makes it desirable to scope restrict it as much as
> possible.
>
> Now, for the actual solution, I'd prefer the -Wno-... Option
+1. It's not a compiler warning that I care about.
-- Keir
> suggested above, or as a second best choice generalizing the
> solution suggested by Michael, applying the attribute in
> DEFINE_XEN_GUEST_HANDLE() itself. This is the more that
> attaching it in to the use of the macro just happens to work,
> but isn't guaranteed to in the future: Switching around the
> order of the two lines of the expansion
>
> #define __DEFINE_XEN_GUEST_HANDLE(name, type) \
> ___DEFINE_XEN_GUEST_HANDLE(name, type); \
> ___DEFINE_XEN_GUEST_HANDLE(const_##name, const type)
>
> or adding a third (say, volatile) one would re-expose the
> problem.
>
> Jan
next prev parent reply other threads:[~2013-02-07 11:55 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-06 20:37 Compile errors with gcc 4.8 M A Young
2013-02-07 0:55 ` Andrew Cooper
2013-02-07 8:59 ` M A Young
2013-02-07 9:06 ` Ian Campbell
2013-02-07 9:57 ` Jan Beulich
2013-02-07 11:55 ` Keir Fraser [this message]
2013-02-07 23:20 ` [PATCH 1/2] " M A Young
2013-02-08 8:11 ` Jan Beulich
2013-02-08 20:56 ` [PATCH 1/2 v2] " M A Young
2013-02-07 9:07 ` M A Young
2013-02-07 9:08 ` Frediano Ziglio
2013-02-07 10:02 ` Jan Beulich
2013-02-07 23:25 ` [Patch 2/2] " M A Young
2013-02-08 8:13 ` Jan Beulich
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=CD39469B.4B817%keir.xen@gmail.com \
--to=keir.xen@gmail.com \
--cc=Ian.Campbell@citrix.com \
--cc=JBeulich@suse.com \
--cc=andrew.cooper3@citrix.com \
--cc=m.a.young@durham.ac.uk \
--cc=xen-devel@lists.xen.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).