|
|
|
|
|
|
|
|
|
|
xen-devel
Re: [Xen-devel] Re: [PATCH 01/04] Kexec / Kdump: Generic code
To: |
Keir Fraser <Keir.Fraser@xxxxxxxxxxxx> |
Subject: |
Re: [Xen-devel] Re: [PATCH 01/04] Kexec / Kdump: Generic code |
From: |
Horms <horms@xxxxxxxxxxxx> |
Date: |
Wed, 18 Oct 2006 09:56:39 +0900 |
Cc: |
Ian Pratt <m+Ian.Pratt@xxxxxxxxxxxx>, Kazuo Moriwaka <moriwaka@xxxxxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxx, magnus.damm@xxxxxxxxx, Akio Takebe <takebe_akio@xxxxxxxxxxxxxx>, Isaku Yamahata <yamahata@xxxxxxxxxxxxx>, Magnus Damm <magnus@xxxxxxxxxxxxx> |
Delivery-date: |
Thu, 19 Oct 2006 09:24:37 -0700 |
Envelope-to: |
www-data@xxxxxxxxxxxxxxxxxx |
In-reply-to: |
<C15AABF8.2A87%Keir.Fraser@xxxxxxxxxxxx> |
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> |
References: |
<C1594FC1.2934%Keir.Fraser@xxxxxxxxxxxx> <C15AABF8.2A87%Keir.Fraser@xxxxxxxxxxxx> |
Sender: |
xen-devel-bounces@xxxxxxxxxxxxxxxxxxx |
User-agent: |
mutt-ng/devel-r804 (Debian) |
On Tue, Oct 17, 2006 at 03:49:12PM +0100, Keir Fraser wrote:
> On 16/10/06 15:03, "Keir Fraser" <Keir.Fraser@xxxxxxxxxxxx> wrote:
>
> > The comment attached to every use of xchg() is dubious. We don't specify
> > warn_unused_result on that function so there's no good reason for the
> > compiler to complain about discarding the result. If it's a reproducible
> > problem it needs investigating. We shouldn't work around a broken compiler.
>
> Ok, this seems to be a new 'feature' of gcc4, which has widened the class of
> things it will complain about with -Wunused-value. Basically any cast of a
> value causes the compiler to see an expression whose value must not be
> discarded -- what a pain! This seems to me that it could mean that ignoring
> return value of any function becomes potentially dangerous, as the function
> may be a macro that includes a cast on the return value.
>
> I think the fix is -Wno-unused-value. :-) It's about the least useful of the
> -Wunused-<foo> warnings anyway.
>
> I'll check this in, so please just get rid of the if(xchg()) hacky
> workaround.
I have to say that I entirely disagree with your solution.
I think the solution is to get rid of -Werror. But I will
remove the if(xchg()) foo as you request.
--
Horms
H: http://www.vergenet.net/~horms/
W: http://www.valinux.co.jp/en/
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-devel] [PATCH 00/04] Kexec / Kdump: Release 20061016 (xen-unstable-11760), Magnus Damm
- Re: [Xen-devel] Re: [PATCH 01/04] Kexec / Kdump: Generic code,
Horms <=
- Re: [Xen-devel] Re: [PATCH 01/04] Kexec / Kdump: Generic code, Keir Fraser
- Re: [Xen-devel] Re: [PATCH 01/04] Kexec / Kdump: Generic code, Adam Heath
- Re: [Xen-devel] Re: [PATCH 01/04] Kexec / Kdump: Generic code, Horms
- [Xen-devel] Re: [PATCH 01/04] Kexec / Kdump: Generic code, Horms
- [Xen-devel] Re: [PATCH 01/04] Kexec / Kdump: Generic code, Keir Fraser
- [Xen-devel] Re: [PATCH 01/04] Kexec / Kdump: Generic code, Horms
- [Xen-devel] Re: [PATCH 01/04] Kexec / Kdump: Generic code, Keir Fraser
- [Xen-devel] Re: [PATCH 01/04] Kexec / Kdump: Generic code, Horms
[Xen-devel] [PATCH 02/04] Kexec / Kdump: Code shared between x86_32 and x86_64, Magnus Damm
[Xen-devel] [PATCH 03/04] Kexec / Kdump: x86_32 specific code, Magnus Damm
|
|
|
|
|