From 8aa1ec5c51cd138952f9098ac0288a46099eda6e Mon Sep 17 00:00:00 2001 From: Vinson Lee Date: Tue, 21 Sep 2010 15:17:52 -0700 Subject: 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 file changed, 1 insertion(+), 1 deletion(-) 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) { -- cgit v1.2.1