glsl: Silence "type qualifiers ignored on function return type" warning
authorIan Romanick <ian.d.romanick@intel.com>
Tue, 18 Feb 2014 17:38:04 +0000 (09:38 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Wed, 19 Feb 2014 23:08:50 +0000 (15:08 -0800)
The const in

   const unsigned foo(void);

is meaningless.  Removing it silences this warning:

src/glsl/ast_to_hir.cpp:1802:56: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
src/glsl/ast_to_hir.cpp

index 6549ca7..e731d83 100644 (file)
@@ -1797,7 +1797,7 @@ ast_compound_statement::hir(exec_list *instructions,
  * Evaluate the given exec_node (which should be an ast_node representing
  * a single array dimension) and return its integer value.
  */
-static const unsigned
+static unsigned
 process_array_size(exec_node *node,
                    struct _mesa_glsl_parse_state *state)
 {