From: Vinson Lee Date: Tue, 21 Sep 2010 22:17:52 +0000 (-0700) Subject: glut: Define eventParser for non-Windows only. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3642ca2f66efa8e078062f566b8f9975928d9f44;p=mesa.git glut: Define eventParser for non-Windows only. Fixes this GCC warning on MinGW build. glut_input.c:295: warning: 'eventParser' defined but not used --- diff --git a/src/glut/glx/glut_input.c b/src/glut/glx/glut_input.c index 7d2eda00f71..53f9dc5e0f8 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) {