From cfcd80328aaf4269c1ff5d238c8b2d7d4d6bef4a Mon Sep 17 00:00:00 2001 From: Twinaphex Date: Fri, 14 Sep 2012 04:53:55 +0200 Subject: [PATCH] (PSL1GHT) Avoid warnings in gl.c --- Makefile.psl1ght | 2 +- gfx/gl.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile.psl1ght b/Makefile.psl1ght index 9a561e74d8..5b9273994d 100644 --- a/Makefile.psl1ght +++ b/Makefile.psl1ght @@ -38,7 +38,7 @@ endif RSXGL_DEFINES = -D__RSX__ -DGL3_PROTOTYPES -SHARED_FLAGS := -DHAVE_FILEBROWSER $(RSXGL_DEFINES) -DHAVE_OSKUTIL -DHAVE_OPENGL -DHAVE_OPENGL_MODERN -DHAVE_GLSL -DHAVE_VID_CONTEXT -DHAVE_FBO -DHAVE_MOUSE -DHAVE_DEFAULT_RETROPAD_INPUT -DRARCH_CONSOLE -DHAVE_CONFIGFILE=1 -DHAVE_ZLIB -DHAVE_RARCH_MAIN_WRAP -DHAVE_GRIFFIN=1 -DPACKAGE_VERSION=\"0.9.7\" -Dmain=rarch_main -Wno-char-subscripts +SHARED_FLAGS := -DHAVE_FILEBROWSER $(RSXGL_DEFINES) -DHAVE_OPENGL -DHAVE_OPENGL_MODERN -DHAVE_GLSL -DHAVE_VID_CONTEXT -DHAVE_FBO -DHAVE_MOUSE -DHAVE_DEFAULT_RETROPAD_INPUT -DRARCH_CONSOLE -DHAVE_CONFIGFILE=1 -DHAVE_ZLIB -DHAVE_RARCH_MAIN_WRAP -DHAVE_GRIFFIN=1 -DPACKAGE_VERSION=\"0.9.7\" -Dmain=rarch_main -Wno-char-subscripts CFLAGS += -std=gnu99 $(SHARED_FLAGS) CXXFLAGS += $(SHARED_FLAGS) diff --git a/gfx/gl.c b/gfx/gl.c index fbdc0c0914..722cd134b8 100644 --- a/gfx/gl.c +++ b/gfx/gl.c @@ -285,6 +285,9 @@ void gl_shader_set_coords(const struct gl_coords *coords, const math_matrix *mat bool ret_coords = false; bool ret_mvp = false; + (void)ret_coords; + (void)ret_mvp; + #ifdef HAVE_XML if (!ret_coords) ret_coords |= gl_glsl_set_coords(coords);