diff options
author | Ian Romanick <ian.d.romanick@intel.com> | 2013-07-26 13:37:29 -0700 |
---|---|---|
committer | Ian Romanick <ian.d.romanick@intel.com> | 2013-07-27 12:13:03 -0700 |
commit | 803f755edeabd1b0af3d8f4ebf2005333e152ad4 (patch) | |
tree | ccf42f99a09916be0e62a31690bc142d0d1284f1 /src/glsl/glsl_types.h | |
parent | 17856726c94000bf16156f7f9acea77a271a6005 (diff) | |
download | external_mesa3d-803f755edeabd1b0af3d8f4ebf2005333e152ad4.zip external_mesa3d-803f755edeabd1b0af3d8f4ebf2005333e152ad4.tar.gz external_mesa3d-803f755edeabd1b0af3d8f4ebf2005333e152ad4.tar.bz2 |
glsl: Less const for glsl_type convenience accessors
The second 'const' says that the pointer itself is constant. This in
unenforcible in C++, so GCC emits a warning (see) below for each of
these functions in every file that includes glsl_types.h. It's a lot of
warning spam.
../../../src/glsl/glsl_types.h:176:58: 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>
Cc: mesa-stable@lists.freedesktop.org
Diffstat (limited to 'src/glsl/glsl_types.h')
-rw-r--r-- | src/glsl/glsl_types.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/glsl/glsl_types.h b/src/glsl/glsl_types.h index cb52080..8172309 100644 --- a/src/glsl/glsl_types.h +++ b/src/glsl/glsl_types.h @@ -170,10 +170,10 @@ struct glsl_type { * Convenience accessors for vector types (shorter than get_instance()). * @{ */ - static const glsl_type *const vec(unsigned components); - static const glsl_type *const ivec(unsigned components); - static const glsl_type *const uvec(unsigned components); - static const glsl_type *const bvec(unsigned components); + static const glsl_type *vec(unsigned components); + static const glsl_type *ivec(unsigned components); + static const glsl_type *uvec(unsigned components); + static const glsl_type *bvec(unsigned components); /**@}*/ /** |