summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVinson Lee <vlee@vmware.com>2010-09-21 15:17:52 -0700
committerJosé Fonseca <jfonseca@vmware.com>2011-07-11 20:05:32 +0100
commit8aa1ec5c51cd138952f9098ac0288a46099eda6e (patch)
tree0cd0f6b77068cff9c556e4199b001450f448288e
parentdef76664f58b26f5f627134505bff073e5688591 (diff)
glut: Define eventParser for non-Windows only.
Fixes this GCC warning on MinGW build. glut_input.c:295: warning: 'eventParser' defined but not used
-rw-r--r--src/glut/glx/glut_input.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glut/glx/glut_input.c b/src/glut/glx/glut_input.c
index 7d2eda0..53f9dc5 100644
--- a/src/glut/glx/glut_input.c
+++ b/src/glut/glx/glut_input.c
@@ -292,10 +292,10 @@ __glutProcessDeviceEvents(XEvent * event)
return 0;
}
+#if !defined(_WIN32)
static GLUTeventParser eventParser =
{__glutProcessDeviceEvents, NULL};
-#if !defined(_WIN32)
static void
addDeviceEventParser(void)
{