[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 4/6] Fix missing prototype under cocoa for qemu_main
From: |
Alexandre Raymond |
Subject: |
[Qemu-devel] [PATCH 4/6] Fix missing prototype under cocoa for qemu_main |
Date: |
Fri, 27 May 2011 13:22:29 -0400 |
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 <address@hidden>
---
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
[Qemu-devel] [PATCH 5/6] Remove warning in printf due to type mismatch, Alexandre Raymond, 2011/05/27
- Re: [Qemu-devel] [PATCH 5/6] Remove warning in printf due to type mismatch, Stefan Weil, 2011/05/27
- Re: [Qemu-devel] [PATCH 5/6] Remove warning in printf due to type mismatch, Markus Armbruster, 2011/05/27
- Re: [Qemu-devel] [PATCH 5/6] Remove warning in printf due to type mismatch, Stefan Weil, 2011/05/27
- Re: [Qemu-devel] [PATCH 5/6] Remove warning in printf due to type mismatch, Alexandre Raymond, 2011/05/27
- Re: [Qemu-devel] [PATCH 5/6] Remove warning in printf due to type mismatch, Paolo Bonzini, 2011/05/28
- Re: [Qemu-devel] [PATCH 5/6] Remove warning in printf due to type mismatch, Stefan Weil, 2011/05/28