From: Ian Romanick Date: Wed, 18 Nov 2015 00:25:06 +0000 (-0800) Subject: glsl: Silence ignored qualifier warning X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c82498c4daf1cfdee065011a10ee4345ae67ef3b;p=mesa.git glsl: Silence ignored qualifier warning I think the intention was to mark the "this" parameter as const, but const goes on the other end to do that. In file included from glsl_symbol_table.cpp:26:0: ast.h:339:35: warning: type qualifiers ignored on function return type [-Wignored-qualifiers] const bool is_single_dimension() ^ Signed-off-by: Ian Romanick Reviewed-by: Timothy Arceri --- diff --git a/src/glsl/ast.h b/src/glsl/ast.h index 1b75234d578..ae763424f71 100644 --- a/src/glsl/ast.h +++ b/src/glsl/ast.h @@ -336,7 +336,7 @@ public: array_dimensions.push_tail(&dim->link); } - const bool is_single_dimension() + bool is_single_dimension() const { return this->array_dimensions.tail_pred->prev != NULL && this->array_dimensions.tail_pred->prev->is_head_sentinel();