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 <pbonz...@redhat.com>
Reviewed-by: Richard Henderson <r...@twiddle.net> Thanks, I've just been adding -Wno-unused-local-typedefs locally for a bit. r~