Commit 803f755e authored by Ian Romanick's avatar Ian Romanick

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: default avatarIan Romanick <ian.d.romanick@intel.com>
Reviewed-by: default avatarKenneth Graunke <kenneth@whitecape.org>
Cc: mesa-stable@lists.freedesktop.org
parent 17856726
......@@ -281,7 +281,7 @@ glsl_type::glsl_type(const glsl_type *array, unsigned length) :
}
const glsl_type *const
const glsl_type *
glsl_type::vec(unsigned components)
{
if (components == 0 || components > 4)
......@@ -294,7 +294,7 @@ glsl_type::vec(unsigned components)
}
const glsl_type *const
const glsl_type *
glsl_type::ivec(unsigned components)
{
if (components == 0 || components > 4)
......@@ -307,7 +307,7 @@ glsl_type::ivec(unsigned components)
}
const glsl_type *const
const glsl_type *
glsl_type::uvec(unsigned components)
{
if (components == 0 || components > 4)
......@@ -320,7 +320,7 @@ glsl_type::uvec(unsigned components)
}
const glsl_type *const
const glsl_type *
glsl_type::bvec(unsigned components)
{
if (components == 0 || components > 4)
......
......@@ -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);
/**@}*/
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment