[clutter] osx: Fix a compiler warning
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter] osx: Fix a compiler warning
- Date: Sun, 10 Jul 2011 09:12:42 +0000 (UTC)
commit f6cdeb985812e13174c85cf04bc4a782e2d1939d
Author: Emmanuele Bassi <ebassi gnome org>
Date: Sun Jul 10 10:12:08 2011 +0100
osx: Fix a compiler warning
No declaration after statement.
clutter/osx/clutter-event-osx.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/clutter/osx/clutter-event-osx.c b/clutter/osx/clutter-event-osx.c
index d6f3c2f..9f5c933 100644
--- a/clutter/osx/clutter-event-osx.c
+++ b/clutter/osx/clutter-event-osx.c
@@ -106,6 +106,8 @@
- (guint)clutterKeyVal
{
+ unichar c;
+
/* FIXME: doing this right is a lot of work, see gdkkeys-quartz.c in gtk+
* For now handle some common/simple keys only. Might not work with other
* hardware than mine (MacBook Pro, finnish layout). Sorry.
@@ -147,7 +149,7 @@
}
}
- unichar c = [[self charactersIgnoringModifiers] characterAtIndex:0];
+ c = [[self charactersIgnoringModifiers] characterAtIndex:0];
/* Latin-1 characters, 1:1 mapping - this ought to be reliable */
if ((c >= 0x0020 && c <= 0x007e) ||
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]