glsl: Silence ignored qualifier warning
authorIan Romanick <ian.d.romanick@intel.com>
Wed, 18 Nov 2015 00:25:06 +0000 (16:25 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Thu, 19 Nov 2015 02:35:56 +0000 (18:35 -0800)
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 <ian.d.romanick@intel.com>
Reviewed-by: Timothy Arceri <timothy.arceri@collabora.com>
src/glsl/ast.h

index 1b75234d5780b8f7eb2a7e3142ff0f4cc045d462..ae763424f7113ba9d7777f89ec769b855fc938fc 100644 (file)
@@ -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();