From: Ian Romanick Date: Tue, 18 Feb 2014 17:38:04 +0000 (-0800) Subject: glsl: Silence "type qualifiers ignored on function return type" warning X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7700c73cf4ba780e41c351a86976aa01a995c3ce;p=mesa.git glsl: Silence "type qualifiers ignored on function return type" warning 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 Reviewed-by: Kenneth Graunke Reviewed-by: Anuj Phogat --- diff --git a/src/glsl/ast_to_hir.cpp b/src/glsl/ast_to_hir.cpp index 6549ca7af43..e731d839d2a 100644 --- a/src/glsl/ast_to_hir.cpp +++ b/src/glsl/ast_to_hir.cpp @@ -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) {