From patchwork Tue Dec 18 20:03:54 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eduardo Habkost X-Patchwork-Id: 207190 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 7E8AC2C0093 for ; Wed, 19 Dec 2012 07:03:02 +1100 (EST) Received: from localhost ([::1]:56947 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tl3NU-0005HL-Fo for incoming@patchwork.ozlabs.org; Tue, 18 Dec 2012 15:03:00 -0500 Received: from eggs.gnu.org ([208.118.235.92]:34023) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tl3NH-0005Gu-1M for qemu-devel@nongnu.org; Tue, 18 Dec 2012 15:02:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tl3NG-0000bb-2H for qemu-devel@nongnu.org; Tue, 18 Dec 2012 15:02:46 -0500 Received: from mx1.redhat.com ([209.132.183.28]:7032) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tl3NF-0000aK-R1 for qemu-devel@nongnu.org; Tue, 18 Dec 2012 15:02:45 -0500 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id qBIK2i92027040 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 18 Dec 2012 15:02:45 -0500 Received: from blackpad.lan.raisama.net (vpn1-6-125.gru2.redhat.com [10.97.6.125]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id qBIK2iAn023992 for ; Tue, 18 Dec 2012 15:02:44 -0500 Received: by blackpad.lan.raisama.net (Postfix, from userid 500) id E2BBA20114B; Tue, 18 Dec 2012 18:04:17 -0200 (BRST) From: Eduardo Habkost To: qemu-devel@nongnu.org Date: Tue, 18 Dec 2012 18:03:54 -0200 Message-Id: <1355861053-11460-2-git-send-email-ehabkost@redhat.com> In-Reply-To: <1355861053-11460-1-git-send-email-ehabkost@redhat.com> References: <1355861053-11460-1-git-send-email-ehabkost@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.11 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [RFC 01/20] qemu-common.h: "use" env parameter in no-op version of qemu_init_vcpu() X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org This will avoid warnings about unused variables when compiling code that calls qemu_init_vcpu(). Signed-off-by: Eduardo Habkost --- qemu-common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qemu-common.h b/qemu-common.h index e674786..bfd4c1a 100644 --- a/qemu-common.h +++ b/qemu-common.h @@ -288,7 +288,7 @@ struct qemu_work_item { }; #ifdef CONFIG_USER_ONLY -#define qemu_init_vcpu(env) do { } while (0) +#define qemu_init_vcpu(env) do { (void)(env); } while (0) #else void qemu_init_vcpu(void *env); #endif