Take away const qualifier from return type of these functions as
-Wignored-qualifiers points out it is ignored for these cases.
Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
return type->fields.structure[index].type;
}
-const int
+int
glsl_get_struct_field_offset(const struct glsl_type *type,
unsigned index)
{
return type->fields.structure[index].offset;
}
-const unsigned
+unsigned
glsl_get_explicit_stride(const struct glsl_type *type)
{
return type->explicit_stride;
const struct glsl_type *glsl_get_struct_field(const struct glsl_type *type,
unsigned index);
-const int glsl_get_struct_field_offset(const struct glsl_type *type,
- unsigned index);
+int glsl_get_struct_field_offset(const struct glsl_type *type,
+ unsigned index);
-const unsigned glsl_get_explicit_stride(const struct glsl_type *type);
+unsigned glsl_get_explicit_stride(const struct glsl_type *type);
const struct glsl_type *glsl_get_array_element(const struct glsl_type *type);
const struct glsl_type *glsl_without_array(const struct glsl_type *type);
const struct glsl_type *glsl_without_array_or_matrix(const struct glsl_type *type);