|
From: | Paolo Bonzini |
Subject: | [Qemu-devel] Re: [PATCH 11/11] mips: avoid write only variables |
Date: | Thu, 07 Oct 2010 09:29:06 +0200 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.9) Gecko/20100907 Fedora/3.1.3-1.fc13 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.3 |
On 10/06/2010 11:34 PM, Blue Swirl wrote:
Compiling with GCC 4.6.0 20100925 produced a lot of warnings like: /src/qemu/target-mips/translate.c: In function 'gen_ld': /src/qemu/target-mips/translate.c:1039:17: error: variable 'opn' set but not used [-Werror=unused-but-set-variable] Fix by making the variable declarations and uses conditional to debugging.
What about a set_opn macro instead of this one-off "D" idiom? Paolo
[Prev in Thread] | Current Thread | [Next in Thread] |