Mesa (master): glsl: Silence " type qualifiers ignored on function return type" warning
Ian Romanick
idr at kemper.freedesktop.org
Wed Feb 19 23:09:03 UTC 2014
Module: Mesa
Branch: master
Commit: 7700c73cf4ba780e41c351a86976aa01a995c3ce
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=7700c73cf4ba780e41c351a86976aa01a995c3ce
Author: Ian Romanick <ian.d.romanick at intel.com>
Date: Tue Feb 18 09:38:04 2014 -0800
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 <ian.d.romanick at intel.com>
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
Reviewed-by: Anuj Phogat <anuj.phogat at gmail.com>
---
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 6549ca7..e731d83 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)
{
More information about the mesa-commit
mailing list