Received: from eggs.gnu.org ([140.186.70.92]:49759) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QQheZ-0006jd-Iz for qemu-devel@nongnu.org; Sun, 29 May 2011 11:11:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QQheY-0004bm-M3 for qemu-devel@nongnu.org; Sun, 29 May 2011 11:11:43 -0400 Message-Id: From: =?ISO-8859-1?Q?Andreas_F=E4rber?= In-Reply-To: <1306516951-31105-5-git-send-email-cerbere@gmail.com> Content-Type: text/plain; charset=WINDOWS-1252; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Apple Message framework v936) Date: Sun, 29 May 2011 17:11:39 +0200 References: <1306516951-31105-1-git-send-email-cerbere@gmail.com> <1306516951-31105-5-git-send-email-cerbere@gmail.com> Sender: andreas.faerber@web.de Subject: Re: [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: Alexandre Raymond Cc: qemu-trivial@nongnu.org, qemu-devel@nongnu.org Am 27.05.2011 um 19:22 schrieb 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 =91qemu_main=92 > -----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 */ We've seen at least two different ways of fixing this. I believe my last one was forgotten, waiting for someone to test with =20= SDL. The idea was to have the prototype in a header shared between =20 vl.c and cocoa.m, so that we don't have to duplicate the prototype. =20 I'll see if I can dig it out or will post a new patch. Andreas=