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)
commit7700c73cf4ba780e41c351a86976aa01a995c3ce
tree34a29923942638a0503345cf6d856e33dde5f555
parent2c85fd5a964a78c9f7a93994fb79f1723c6f45b5
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>
src/glsl/ast_to_hir.cpp