[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 01/11] block: avoid a write only variable
From: |
Kevin Wolf |
Subject: |
Re: [Qemu-devel] [PATCH 01/11] block: avoid a write only variable |
Date: |
Thu, 07 Oct 2010 13:55:46 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.12) Gecko/20100907 Fedora/3.0.7-1.fc12 Thunderbird/3.0.7 |
Am 07.10.2010 11:37, schrieb Markus Armbruster:
> Blue Swirl <address@hidden> 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