From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:33202) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QQ0mg-0000tX-2N for qemu-devel@nongnu.org; Fri, 27 May 2011 13:25:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QQ0mf-0003hd-Em for qemu-devel@nongnu.org; Fri, 27 May 2011 13:25:14 -0400 From: Alexandre Raymond Date: Fri, 27 May 2011 13:22:29 -0400 Message-Id: <1306516951-31105-5-git-send-email-cerbere@gmail.com> In-Reply-To: <1306516951-31105-1-git-send-email-cerbere@gmail.com> References: <1306516951-31105-1-git-send-email-cerbere@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [Qemu-devel] [PATCH 4/6] Fix missing prototype under cocoa for qemu_main List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: qemu-trivial@nongnu.org, Alexandre Raymond The following error message was encountered when compiling with cocoa support because qemu_main did not have a prototype. -----8<----- qemu/vl.c:2037: warning: no previous prototype for ‘qemu_main’ -----8<----- Add its prototype in the COCOA ifdef, similar to what is done for SDL. Signed-off-by: Alexandre Raymond --- vl.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/vl.c b/vl.c index b362871..b983646 100644 --- a/vl.c +++ b/vl.c @@ -107,6 +107,7 @@ int main(int argc, char **argv) #endif /* CONFIG_SDL */ #ifdef CONFIG_COCOA +int qemu_main(int argc, char **argv, char **envp); #undef main #define main qemu_main #endif /* CONFIG_COCOA */ -- 1.7.5