Received: from eggs.gnu.org ([140.186.70.92]:47291) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QVkwr-00052f-K0 for qemu-devel@nongnu.org; Sun, 12 Jun 2011 09:43:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QVkwq-0000UM-3t for qemu-devel@nongnu.org; Sun, 12 Jun 2011 09:43:29 -0400 Received: from fmmailgate03.web.de ([217.72.192.234]:60931) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QVkwp-0000UC-Jd for qemu-devel@nongnu.org; Sun, 12 Jun 2011 09:43:27 -0400 Message-Id: <309C09A2-793B-4E27-9708-585DAEA22C09@web.de> From: =?ISO-8859-1?Q?Andreas_F=E4rber?= In-Reply-To: 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, 12 Jun 2011 15:43:24 +0200 References: <1307646199-39197-1-git-send-email-andreas.faerber@web.de> Sender: andreas.faerber@web.de Subject: Re: [Qemu-devel] [PATCH] cocoa: Avoid warning related to multiple handleEvent: definitions List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexandre Raymond Cc: qemu-devel@nongnu.org Am 10.06.2011 um 04:47 schrieb Alexandre Raymond: > Tested-by: Alexandre Raymond > > That's definitely a better patch ;-) Thanks, applied to the cocoa branch. Andreas > Thanks, > Alexandre > > > > On Thu, Jun 9, 2011 at 3:03 PM, Andreas F=E4rber =20 > wrote: >> 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 =20 >> definition. >> >> ----8<---- >> ui/cocoa.m: In function =91cocoa_refresh=92: >> ui/cocoa.m:997: warning: multiple methods named =91-handleEvent:=92 = found >> /System/Library/Frameworks/AppKit.framework/Headers/=20 >> NSTextInputContext.h:84: warning: using =91-(BOOL)handleEvent:=20 >> (NSEvent *)theEvent=92 >> ui/cocoa.m:272: warning: also found =91-(void)handleEvent:(NSEvent =20= >> *)event=92 >> ----8<--- >> >> Reported-by: Alexandre Raymond >> Signed-off-by: Andreas F=E4rber >> --- >> 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; >> >> NSWindow *normalWindow; >> -id cocoaView; >> static DisplayChangeListener *dcl; >> >> int gArgc; >> @@ -278,6 +277,8 @@ static int cocoa_keycode_to_qemu(int keycode) >> - (QEMUScreen) gscreen; >> @end >> >> +QemuCocoaView *cocoaView; >> + >> @implementation QemuCocoaView >> - (id)initWithFrame:(NSRect)frameRect >> { >> -- >> 1.7.5.3 >> >> >> >