Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NLMCa-0006hF-Pv for qemu-devel@nongnu.org; Thu, 17 Dec 2009 14:39:56 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NLMCV-0006gk-St for qemu-devel@nongnu.org; Thu, 17 Dec 2009 14:39:55 -0500 Received: from [199.232.76.173] (port=50124 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NLMCV-0006gh-Og for qemu-devel@nongnu.org; Thu, 17 Dec 2009 14:39:51 -0500 Received: from mx1.redhat.com ([209.132.183.28]:13676) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NLMCV-0004Fu-KB for qemu-devel@nongnu.org; Thu, 17 Dec 2009 14:39:51 -0500 From: Juan Quintela In-Reply-To: (G. 3's message of "Wed, 16 Dec 2009 22:45:19 -0500") References: Date: Thu, 17 Dec 2009 20:38:53 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: [Qemu-devel] Re: [PATCH] Eliminates a warning about missing function prototype for qemu_main. List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: G 3 Cc: qemu-devel@nongnu.org G 3 wrote: > 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); Now qemu_main() is not defined here. > } > + > #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 I suppose that you are using cocoa but not sdl, right? If so, better approach is to share the COCOA/SDL bits for apple, or just replicate the qemu_main definition. Later, Juan.