From 6a5391c0b6f050188b70de9316dcdf05705a7eaf Mon Sep 17 00:00:00 2001 From: Marco Antognini Date: Sat, 17 May 2014 13:36:21 +0200 Subject: [PATCH] Fixed warnings in Cocoa example --- examples/cocoa/CocoaAppDelegate.mm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/examples/cocoa/CocoaAppDelegate.mm b/examples/cocoa/CocoaAppDelegate.mm index 45adcb04a..3f9326b96 100644 --- a/examples/cocoa/CocoaAppDelegate.mm +++ b/examples/cocoa/CocoaAppDelegate.mm @@ -108,6 +108,8 @@ struct SFMLmainWindow -(void)applicationDidFinishLaunching:(NSNotification *)aNotification { + (void)aNotification; + if (!self.initialized) { // Init the SFML render area. @@ -156,6 +158,8 @@ struct SFMLmainWindow -(void)renderMainWindow:(NSTimer *)aTimer { + (void)aTimer; + // Scaling /* /!\ we do this at 60fps so choose low scaling factor! /!\ */ if (sf::Keyboard::isKeyPressed(sf::Keyboard::Up)) @@ -225,6 +229,8 @@ struct SFMLmainWindow - (IBAction)updateText:(NSButton *)sender { + (void)sender; + // Simply simulate textChanged : [self textChanged:self.textField]; } @@ -235,6 +241,7 @@ struct SFMLmainWindow -(void)keyDown:(NSEvent *)theEvent { + (void)theEvent; // Do nothing except preventing this alert. }