qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] rewrite QEMU_BUILD_BUG_ON


From: Stefan Hajnoczi
Subject: Re: [Qemu-devel] [PATCH] rewrite QEMU_BUILD_BUG_ON
Date: Tue, 20 Dec 2011 13:41:12 +0000

On Tue, Dec 20, 2011 at 1:12 PM, Dong Xu Wang
<address@hidden> wrote:
> It can compile on my Ubuntu:
>
> DISTRIB_ID=Ubuntu
> DISTRIB_RELEASE=11.10
> DISTRIB_CODENAME=oneiric
> DISTRIB_DESCRIPTION="Ubuntu 11.10"
>
> gcc (Ubuntu/Linaro 4.6.1-9ubuntu3) 4.6.1
>
> While "gcc -E", it gets the same output as RHEL's, but it can compile. I do
> not know why was that.  :(

I see what you mean.  I find some gccs compile it successfully and
others warn about the typedef redefinition.  Whether or not you get an
error without the fix depends on whether your compiling warns about
redefined typedefs.

Your fix makes sense in any case.

Stefan



reply via email to

[Prev in Thread] Current Thread [Next in Thread]