From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=45816 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P3pFV-0007VO-Fr for qemu-devel@nongnu.org; Thu, 07 Oct 2010 08:07:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P3p4A-0005xn-Or for qemu-devel@nongnu.org; Thu, 07 Oct 2010 07:55:19 -0400 Received: from mx1.redhat.com ([209.132.183.28]:10455) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P3p4A-0005xf-G8 for qemu-devel@nongnu.org; Thu, 07 Oct 2010 07:55:18 -0400 Message-ID: <4CADB542.6040803@redhat.com> Date: Thu, 07 Oct 2010 13:55:46 +0200 From: Kevin Wolf MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH 01/11] block: avoid a write only variable References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Markus Armbruster Cc: Blue Swirl , qemu-devel 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=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