Mesa (master): glut: Define eventParser for non-Windows only.
Vinson Lee
vlee at kemper.freedesktop.org
Tue Sep 21 22:19:30 UTC 2010
Module: Mesa
Branch: master
Commit: 3642ca2f66efa8e078062f566b8f9975928d9f44
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=3642ca2f66efa8e078062f566b8f9975928d9f44
Author: Vinson Lee <vlee at vmware.com>
Date: Tue Sep 21 15:17:52 2010 -0700
glut: Define eventParser for non-Windows only.
Fixes this GCC warning on MinGW build.
glut_input.c:295: warning: 'eventParser' defined but not used
---
src/glut/glx/glut_input.c | 2 +-
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)
{
More information about the mesa-commit
mailing list