glsl: Silence may unused parameter warnings in glsl/ir.h
authorIan Romanick <ian.d.romanick@intel.com>
Thu, 18 Apr 2019 19:33:39 +0000 (12:33 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Wed, 24 Apr 2019 00:49:19 +0000 (17:49 -0700)
commit3b087f668f9d5aeae85df2a4128cbe3b9b25ae6a
tree5c50ec27a792e880ab18d87efb991afd6389445e
parenta6b7068ff5fbf4694a45a6e07adac5047e574514
glsl: Silence may unused parameter warnings in glsl/ir.h

Every file that included glsl/ir.h had a warning like:

src/compiler/glsl/ir.h: In member function ‘virtual bool ir_rvalue::is_lvalue(const _mesa_glsl_parse_state*) const’:
src/compiler/glsl/ir.h:236:64: warning: unused parameter ‘state’ [-Wunused-parameter]
    virtual bool is_lvalue(const struct _mesa_glsl_parse_state *state = NULL) const
                                                                ^
Cc: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Fixes: fa4ebf6b8d9 ("glsl: add _mesa_glsl_parse_state object to is_lvalue()")
Reviewed-by: Sagar Ghuge <sagar.ghuge@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/compiler/glsl/ir.h