Am 07.10.2010 11:37, schrieb Markus Armbruster: > Blue Swirl <blauwir...@gmail.com> writes: > >> Compiling with GCC 4.6.0 20100925 produced a warning: >> /src/qemu/block/qcow2-refcount.c: In function 'update_refcount': >> /src/qemu/block/qcow2-refcount.c:552:13: error: variable 'dummy' set >> but not used [-Werror=unused-but-set-variable] >> >> Fix by adding a function that does not generate a warning when >> the result is unused. > > What about a simple "(void)dummy" instead?
I would prefer that, too. Kevin