From patchwork Thu Dec 17 03:45:19 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Programmingkid X-Patchwork-Id: 41301 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 85DB4B7082 for ; Thu, 17 Dec 2009 14:46:09 +1100 (EST) Received: from localhost ([127.0.0.1]:52234 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NL7JW-0006dk-8e for incoming@patchwork.ozlabs.org; Wed, 16 Dec 2009 22:46:06 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NL7J4-0006df-I1 for qemu-devel@nongnu.org; Wed, 16 Dec 2009 22:45:38 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NL7Iy-0006cx-7z for qemu-devel@nongnu.org; Wed, 16 Dec 2009 22:45:37 -0500 Received: from [199.232.76.173] (port=45899 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NL7Iy-0006cu-4o for qemu-devel@nongnu.org; Wed, 16 Dec 2009 22:45:32 -0500 Received: from mail-yx0-f188.google.com ([209.85.210.188]:42840) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NL7Iy-0002HO-5c for qemu-devel@nongnu.org; Wed, 16 Dec 2009 22:45:32 -0500 Received: by yxe26 with SMTP id 26so1684403yxe.4 for ; Wed, 16 Dec 2009 19:45:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:mime-version :content-transfer-encoding:message-id:content-type:to:from:subject :date:x-mailer; bh=NY6jXCilGp7GTk6oEM6t2CJ9jq5OCyX7XZJRnFc8vgA=; b=tOHRnor8lxAP2NM4LBVP2nE99i5HL/8FgSkhmIJw3yJmESxRpbW1Q1092X9JRz3TxB F0eYkBCMjsmU29Y3TrVqmoi7lMIKk4BSwrqWjm3CTZL3iw7Cu/Lx0SHfc+Wnnh6oPbCh ndVbGUj2bwOBVoufbaQQuhRWRf9XR2dg7SifE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:content-transfer-encoding:message-id:content-type:to :from:subject:date:x-mailer; b=GVottlFk7qrtqygo1DY0DhHzgHS/JjhUOm0VeZFrt5/Z0sZnwKB5DkoT4Z131r1qKw Nwp5K5wyIk/+pVIbFHpjqPPp4iTfGSR4E2FpQXEkUDPpQLxgHmyOkdLTZuRm/YtHswdK 0Frx3nKs+m/qfQvvDK4PN/kt281UtiSMSb9js= Received: by 10.150.44.3 with SMTP id r3mr3050321ybr.241.1261021530706; Wed, 16 Dec 2009 19:45:30 -0800 (PST) Received: from ?192.168.0.3? (adsl-76-241-186-71.dsl.sfldmi.sbcglobal.net [76.241.186.71]) by mx.google.com with ESMTPS id 21sm1027391iwn.2.2009.12.16.19.45.29 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 16 Dec 2009 19:45:29 -0800 (PST) Mime-Version: 1.0 (Apple Message framework v753.1) Message-Id: To: qemu-devel@nongnu.org From: G 3 Date: Wed, 16 Dec 2009 22:45:19 -0500 X-Mailer: Apple Mail (2.753.1) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: [Qemu-devel] [PATCH] Eliminates a warning about missing function prototype for qemu_main. X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org This patch allows for the file vl.c to compile without any warnings. Signed-off-by: John Arbuckle --- vl.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/vl.c b/vl.c index c0d98f5..b466fe0 100644 --- a/vl.c +++ b/vl.c @@ -107,16 +107,19 @@ extern int madvise(caddr_t, size_t, int); #ifdef CONFIG_SDL #if defined(__APPLE__) || defined(main) #include -int qemu_main(int argc, char **argv, char **envp); + int main(int argc, char **argv) { return qemu_main(argc, argv, NULL); } + #undef main #define main qemu_main #endif #endif /* CONFIG_SDL */ +int qemu_main(int argc, char **argv, char **envp); + #ifdef CONFIG_COCOA #undef main #define main qemu_main