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@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user