From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=44955 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pjpgc-0005aw-EW for qemu-devel@nongnu.org; Mon, 31 Jan 2011 04:04:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pjpgb-0007JM-An for qemu-devel@nongnu.org; Mon, 31 Jan 2011 04:04:38 -0500 Received: from mx1.redhat.com ([209.132.183.28]:46246) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pjpgb-0007Ij-1M for qemu-devel@nongnu.org; Mon, 31 Jan 2011 04:04:37 -0500 Message-ID: <4D467B85.7080007@redhat.com> Date: Mon, 31 Jan 2011 10:06:13 +0100 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] qcow2-refcount: remove write-only variables List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Blue Swirl Cc: qemu-devel Am 29.01.2011 09:41, schrieb Blue Swirl: > Variables l2_modified and l2_size are not really used, remove them. > Spotted by GCC 4.6.0: > CC block/qcow2-refcount.o > /src/qemu/block/qcow2-refcount.c: In function 'qcow2_update_snapshot_refcount': > /src/qemu/block/qcow2-refcount.c:708:37: error: variable 'l2_modified' > set but not used [-Werror=unused-but-set-variable] > /src/qemu/block/qcow2-refcount.c:708:9: error: variable 'l2_size' set > but not used [-Werror=unused-but-set-variable] > > CC: Kevin Wolf > Signed-off-by: Blue Swirl Thanks, applied to the block branch. Kevin