Re: [Qemu-devel] [PATCH 01/11] block: avoid a write only variable

2010-10-07 Thread Blue Swirl
On Thu, Oct 7, 2010 at 11:55 AM, Kevin Wolf wrote: > Am 07.10.2010 11:37, schrieb Markus Armbruster: >> Blue Swirl 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:

Re: [Qemu-devel] [PATCH 01/11] block: avoid a write only variable

2010-10-07 Thread Kevin Wolf
Am 07.10.2010 11:37, schrieb Markus Armbruster: > Blue Swirl 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=unus

Re: [Qemu-devel] [PATCH 01/11] block: avoid a write only variable

2010-10-07 Thread Markus Armbruster
Blue Swirl 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 d

[Qemu-devel] [PATCH 01/11] block: avoid a write only variable

2010-10-06 Thread Blue Swirl
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