From 3b087f668f9d5aeae85df2a4128cbe3b9b25ae6a Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Thu, 18 Apr 2019 12:33:39 -0700 Subject: [PATCH] glsl: Silence may unused parameter warnings in glsl/ir.h MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 Fixes: fa4ebf6b8d9 ("glsl: add _mesa_glsl_parse_state object to is_lvalue()") Reviewed-by: Sagar Ghuge Reviewed-by: Matt Turner --- src/compiler/glsl/ir.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/glsl/ir.h b/src/compiler/glsl/ir.h index 4dc2a5f6bc7..6f7b4542b1d 100644 --- a/src/compiler/glsl/ir.h +++ b/src/compiler/glsl/ir.h @@ -233,7 +233,7 @@ public: ir_rvalue *as_rvalue_to_saturate(); - virtual bool is_lvalue(const struct _mesa_glsl_parse_state *state = NULL) const + virtual bool is_lvalue(const struct _mesa_glsl_parse_state * = NULL) const { return false; } -- 2.30.2