From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LDRdv-0002KH-Pz for qemu-devel@nongnu.org; Thu, 18 Dec 2008 17:46:55 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LDRdv-0002Jr-2q for qemu-devel@nongnu.org; Thu, 18 Dec 2008 17:46:55 -0500 Received: from [199.232.76.173] (port=53539 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LDRdu-0002Jn-TA for qemu-devel@nongnu.org; Thu, 18 Dec 2008 17:46:54 -0500 Received: from hall.aurel32.net ([88.191.82.174]:34062) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LDRdu-0008TA-EI for qemu-devel@nongnu.org; Thu, 18 Dec 2008 17:46:54 -0500 Date: Thu, 18 Dec 2008 23:46:51 +0100 From: Aurelien Jarno Subject: Re: [Qemu-devel] [PATCH] Silence unused s warning Message-ID: <20081218224651.GA12048@volta.aurel32.net> References: <494A4DA7.3080609@siemens.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <494A4DA7.3080609@siemens.com> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jan Kiszka Cc: qemu-devel@nongnu.org On Thu, Dec 18, 2008 at 02:18:31PM +0100, Jan Kiszka wrote: > Move s under #ifdef to avoid compiler warning. > > Signed-off-by: Jan Kiszka Thanks, applied. > --- > > kvm-all.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/kvm-all.c b/kvm-all.c > index 11034df..9fb295c 100644 > --- a/kvm-all.c > +++ b/kvm-all.c > @@ -654,9 +654,9 @@ int kvm_vcpu_ioctl(CPUState *env, int type, ...) > > int kvm_has_sync_mmu(void) > { > +#ifdef KVM_CAP_SYNC_MMU > KVMState *s = kvm_state; > > -#ifdef KVM_CAP_SYNC_MMU > if (kvm_ioctl(s, KVM_CHECK_EXTENSION, KVM_CAP_SYNC_MMU) > 0) > return 1; > #endif > > > -- .''`. Aurelien Jarno | GPG: 1024D/F1BCDB73 : :' : Debian developer | Electrical Engineer `. `' aurel32@debian.org | aurelien@aurel32.net `- people.debian.org/~aurel32 | www.aurel32.net