qemu-devel
[Top][All Lists]
Advanced

[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: Blue Swirl
Subject: Re: [Qemu-devel] [PATCH 01/11] block: avoid a write only variable
Date: Thu, 7 Oct 2010 18:27:10 +0000

On Thu, Oct 7, 2010 at 11:55 AM, Kevin Wolf <address@hidden> wrote:
> 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.

That also works. I'll use that in the next version.



reply via email to

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