From 13cd131b0f713c468c3cf3b12f6439288d5a3161 Mon Sep 17 00:00:00 2001 From: Vinson Lee Date: Tue, 21 Sep 2010 15:11:00 -0700 Subject: glut: Define markWindowHidden for non-Windows only. Fixes this GCC warning on MinGW build. glut_event.c:255: warning: 'markWindowHidden' defined but not used --- src/glut/glx/glut_event.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/glut') diff --git a/src/glut/glx/glut_event.c b/src/glut/glx/glut_event.c index 4cdb814d76..c450ee96b8 100644 --- a/src/glut/glx/glut_event.c +++ b/src/glut/glx/glut_event.c @@ -251,6 +251,8 @@ __glutRegisterEventParser(GLUTeventParser * parser) eventParserList = parser; } + +#if !defined(_WIN32) static void markWindowHidden(GLUTwindow * window) { @@ -272,8 +274,6 @@ markWindowHidden(GLUTwindow * window) } } -#if !defined(_WIN32) - static void purgeStaleWindow(Window win) { -- cgit v1.2.3 From 3642ca2f66efa8e078062f566b8f9975928d9f44 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(-) (limited to 'src/glut') diff --git a/src/glut/glx/glut_input.c b/src/glut/glx/glut_input.c index 7d2eda00f7..53f9dc5e0f 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.3