From: Alexandre Raymond <cerbere@gmail.com>
To: qemu-devel@nongnu.org
Cc: qemu-trivial@nongnu.org, Alexandre Raymond <cerbere@gmail.com>
Subject: [Qemu-devel] [PATCH 4/6] Fix missing prototype under cocoa for qemu_main
Date: Fri, 27 May 2011 13:22:29 -0400 [thread overview]
Message-ID: <1306516951-31105-5-git-send-email-cerbere@gmail.com> (raw)
In-Reply-To: <1306516951-31105-1-git-send-email-cerbere@gmail.com>
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 <cerbere@gmail.com>
---
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
next prev parent reply other threads:[~2011-05-27 17:25 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-27 17:22 [Qemu-devel] [PATCH 0/6] Fix compilation issues under darwin Alexandre Raymond
2011-05-27 17:22 ` [Qemu-devel] [PATCH 1/6] Fix incorrect check for fdatasync() in configure Alexandre Raymond
2011-05-29 14:50 ` Andreas Färber
2011-05-29 15:46 ` Alexandre Raymond
2011-05-29 17:05 ` Andreas Färber
2011-05-27 17:22 ` [Qemu-devel] [PATCH 2/6] Cocoa: avoid displaying window when command-line contains '-h' Alexandre Raymond
2011-05-28 15:05 ` Andreas Färber
2011-05-27 17:22 ` [Qemu-devel] [PATCH 3/6] Fix compilation warning due to incorrectly specified type Alexandre Raymond
2011-05-27 17:42 ` Stefan Weil
2011-05-29 15:02 ` Andreas Färber
2011-05-27 17:22 ` Alexandre Raymond [this message]
2011-05-29 15:11 ` [Qemu-devel] [PATCH 4/6] Fix missing prototype under cocoa for qemu_main Andreas Färber
2011-05-29 19:58 ` [Qemu-devel] [PATCH] cocoa: Provide central qemu_main() prototype Andreas Färber
2011-05-29 23:53 ` Alexandre Raymond
2011-06-02 11:33 ` Andreas Färber
2011-06-09 18:30 ` Andreas Färber
2011-05-27 17:22 ` [Qemu-devel] [PATCH 5/6] Remove warning in printf due to type mismatch Alexandre Raymond
2011-05-27 17:35 ` Stefan Weil
2011-05-27 19:11 ` Markus Armbruster
2011-05-27 20:44 ` Stefan Weil
2011-05-27 22:10 ` Alexandre Raymond
2011-05-28 6:55 ` Paolo Bonzini
2011-05-28 8:19 ` Stefan Weil
2011-05-27 17:22 ` [Qemu-devel] [PATCH 6/6] Avoid compilation warning regarding kvm under darwin Alexandre Raymond
2011-05-27 17:39 ` Stefan Weil
2011-05-28 14:55 ` [Qemu-devel] [PATCH 0/6] Fix compilation issues " Andreas Färber
2011-05-28 19:41 ` [Qemu-devel] [Qemu-trivial] " Stefan Hajnoczi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1306516951-31105-5-git-send-email-cerbere@gmail.com \
--to=cerbere@gmail.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-trivial@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).