diff options
author | Ian Romanick <[email protected]> | 2016-12-12 13:35:37 -0800 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2016-12-19 15:55:44 -0800 |
commit | 8bfe397974b26ab16ca835dd83340b454e6f2f1f (patch) | |
tree | 0a461332116a77cc05a2e81fa669bf4389bf35da /src/compiler | |
parent | d7aee96cc65514d2acbfaf9aa714e6e163ea0d2a (diff) |
glsl: Silence "unused parameter" warnings in ast_type.cpp
glsl/ast_type.cpp: In function ‘bool validate_point_mode(YYLTYPE*, _mesa_glsl_parse_state*, const ast_type_qualifier&, const ast_type_qualifier&)’:
glsl/ast_type.cpp:173:30: warning: unused parameter ‘loc’ [-Wunused-parameter]
validate_point_mode(YYLTYPE *loc,
^~~
glsl/ast_type.cpp:174:45: warning: unused parameter ‘state’ [-Wunused-parameter]
_mesa_glsl_parse_state *state,
^~~~~
Signed-off-by: Ian Romanick <[email protected]>
Reviewed-by: Andres Gomez <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/glsl/ast_type.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/compiler/glsl/ast_type.cpp b/src/compiler/glsl/ast_type.cpp index d68e6e2916f..e3f06a9900d 100644 --- a/src/compiler/glsl/ast_type.cpp +++ b/src/compiler/glsl/ast_type.cpp @@ -170,10 +170,8 @@ validate_ordering(YYLTYPE *loc, } static bool -validate_point_mode(YYLTYPE *loc, - _mesa_glsl_parse_state *state, - const ast_type_qualifier &qualifier, - const ast_type_qualifier &new_qualifier) +validate_point_mode(MAYBE_UNUSED const ast_type_qualifier &qualifier, + MAYBE_UNUSED const ast_type_qualifier &new_qualifier) { /* Point mode can only be true if the flag is set. */ assert (!qualifier.flags.q.point_mode || !new_qualifier.flags.q.point_mode @@ -367,7 +365,7 @@ ast_type_qualifier::merge_qualifier(YYLTYPE *loc, } if (q.flags.q.point_mode) { - r &= validate_point_mode(loc, state, *this, q); + r &= validate_point_mode(*this, q); this->flags.q.point_mode = 1; this->point_mode = q.point_mode; } @@ -607,7 +605,7 @@ ast_type_qualifier::validate_in_qualifier(YYLTYPE *loc, r &= validate_prim_type(loc, state, *state->in_qualifier, *this); r &= validate_vertex_spacing(loc, state, *state->in_qualifier, *this); r &= validate_ordering(loc, state, *state->in_qualifier, *this); - r &= validate_point_mode(loc, state, *state->in_qualifier, *this); + r &= validate_point_mode(*state->in_qualifier, *this); return r; } |