qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH] compiler: fix warning with GCC 4.8.0


From: Richard Henderson
Subject: Re: [Qemu-devel] [PATCH] compiler: fix warning with GCC 4.8.0
Date: Wed, 27 Mar 2013 13:33:40 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130311 Thunderbird/17.0.4

On 03/27/2013 06:34 AM, Paolo Bonzini wrote:
> GCC 4.8.0 introduces a new warning:
> 
>     block/qcow2-snapshot.c: In function 'qcow2_write_snapshots’:
>     block/qcow2-snapshot.c:252:18: error: typedef 'qemu_build_bug_on__253'
>               locally defined but not used [-Werror=unused-local-typedefs]
>          QEMU_BUILD_BUG_ON(offsetof(QCowHeader, snapshots_offset) !=
>                   ^
>     cc1: all warnings being treated as errors
> 
> (Caret diagnostics aren't perfect yet with macros... :)) Work around it
> with __attribute__((unused)).
> 
> Signed-off-by: Paolo Bonzini <address@hidden>

Reviewed-by: Richard Henderson <address@hidden>

Thanks, I've just been adding -Wno-unused-local-typedefs locally for a bit.


r~



reply via email to

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