From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=36326 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P5DSe-0001nT-8z for qemu-devel@nongnu.org; Mon, 11 Oct 2010 04:10:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P5DSZ-0005vG-OC for qemu-devel@nongnu.org; Mon, 11 Oct 2010 04:10:19 -0400 Received: from mx1.redhat.com ([209.132.183.28]:14479) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P5DSZ-0005uB-Ho for qemu-devel@nongnu.org; Mon, 11 Oct 2010 04:10:15 -0400 Message-ID: <4CB2C686.6090402@redhat.com> Date: Mon, 11 Oct 2010 10:10:46 +0200 From: Kevin Wolf MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Re: [PATCH 01/12] block: avoid a write only variable List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Blue Swirl Cc: qemu-devel Am 08.10.2010 23:23, schrieb 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 dummy cast so that the result is not unused. > > Signed-off-by: Blue Swirl Acked-by: Kevin Wolf