From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:37519) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QUkVq-0002Do-J2 for qemu-devel@nongnu.org; Thu, 09 Jun 2011 15:03:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QUkVn-0007xo-F8 for qemu-devel@nongnu.org; Thu, 09 Jun 2011 15:03:26 -0400 Received: from fmmailgate02.web.de ([217.72.192.227]:51709) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QUkVm-0007xO-Dk for qemu-devel@nongnu.org; Thu, 09 Jun 2011 15:03:22 -0400 Received: from smtp05.web.de ( [172.20.4.166]) by fmmailgate02.web.de (Postfix) with ESMTP id D2B121A2E0825 for ; Thu, 9 Jun 2011 21:03:20 +0200 (CEST) From: =?UTF-8?q?Andreas=20F=C3=A4rber?= Date: Thu, 9 Jun 2011 21:03:19 +0200 Message-Id: <1307646199-39197-1-git-send-email-andreas.faerber@web.de> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: andreas.faerber@web.de Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH] cocoa: Avoid warning related to multiple handleEvent: definitions List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Andreas=20F=C3=A4rber?= Avoid compiler confusion as to which method signature to use for the handleEvent: selector on OSX >=3D 10.6 by making the variable type-safe as opposed to generic 'id' type. Requires moving the variable definition to after the class definition. ----8<---- ui/cocoa.m: In function =E2=80=98cocoa_refresh=E2=80=99: ui/cocoa.m:997: warning: multiple methods named =E2=80=98-handleEvent:=E2= =80=99 found /System/Library/Frameworks/AppKit.framework/Headers/NSTextInputContext.h:= 84: warning: using =E2=80=98-(BOOL)handleEvent:(NSEvent *)theEvent=E2=80=99 ui/cocoa.m:272: warning: also found =E2=80=98-(void)handleEvent:(NSEvent = *)event=E2=80=99 ----8<--- Reported-by: Alexandre Raymond Signed-off-by: Andreas F=C3=A4rber --- ui/cocoa.m | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/ui/cocoa.m b/ui/cocoa.m index 1c54759..515e684 100644 --- a/ui/cocoa.m +++ b/ui/cocoa.m @@ -63,7 +63,6 @@ typedef struct { } QEMUScreen; =20 NSWindow *normalWindow; -id cocoaView; static DisplayChangeListener *dcl; =20 int gArgc; @@ -278,6 +277,8 @@ static int cocoa_keycode_to_qemu(int keycode) - (QEMUScreen) gscreen; @end =20 +QemuCocoaView *cocoaView; + @implementation QemuCocoaView - (id)initWithFrame:(NSRect)frameRect { --=20 1.7.5.3