From 7700c73cf4ba780e41c351a86976aa01a995c3ce Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Tue, 18 Feb 2014 09:38:04 -0800 Subject: [PATCH] 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 --- src/glsl/ast_to_hir.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.30.2