Mesa (master): glsl: Silence many unused parameter warnings

Ian Romanick idr at kemper.freedesktop.org
Mon Jun 23 18:24:59 UTC 2014


Module: Mesa
Branch: master
Commit: 3552aa7c1c1ff506574ae1392ffc775a329f5ab6
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=3552aa7c1c1ff506574ae1392ffc775a329f5ab6

Author: Ian Romanick <ian.d.romanick at intel.com>
Date:   Fri Jun 20 17:27:19 2014 -0700

glsl: Silence many unused parameter warnings

In file included from ../../src/glsl/builtin_functions.cpp:61:0:
../../src/glsl/glsl_parser_extras.h:154:9: warning: unused parameter 'var' [-Wunused-parameter]

Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
Reviewed-by: Tapani Pälli <tapani.palli at intel.com>

---

 src/glsl/glsl_parser_extras.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/glsl/glsl_parser_extras.h b/src/glsl/glsl_parser_extras.h
index 01b32d7..aa4a114 100644
--- a/src/glsl/glsl_parser_extras.h
+++ b/src/glsl/glsl_parser_extras.h
@@ -152,7 +152,7 @@ struct _mesa_glsl_parse_state {
    }
 
    bool check_explicit_uniform_location_allowed(YYLTYPE *locp,
-                                                const ir_variable *var)
+                                                const ir_variable *)
    {
       if (!this->has_explicit_attrib_location() ||
           !this->ARB_explicit_uniform_location_enable) {




More information about the mesa-commit mailing list