summaryrefslogtreecommitdiffstats
path: root/src/glsl/builtin_types.cpp
diff options
context:
space:
mode:
authorIan Romanick <ian.d.romanick@intel.com>2015-08-18 17:41:30 -0700
committerIan Romanick <ian.d.romanick@intel.com>2015-09-02 16:24:17 -0700
commit8fafb0a67faa548cb16e122e214912a17835e369 (patch)
tree78f52dd7d38f62315a964e832ae0f976c473bdc2 /src/glsl/builtin_types.cpp
parent06ada493fbc22e99867e14f26f1a511b343e3759 (diff)
downloadexternal_mesa3d-8fafb0a67faa548cb16e122e214912a17835e369.zip
external_mesa3d-8fafb0a67faa548cb16e122e214912a17835e369.tar.gz
external_mesa3d-8fafb0a67faa548cb16e122e214912a17835e369.tar.bz2
mesa: Fix warning about static being in the wrong place
Because the compiler already has enough things to complain about. grep -rl 'const static' src/ | while read f do sed --in-place -e 's/const static/static const/g' $f done brw_eu_emit.c: In function 'brw_reg_type_to_hw_type': brw_eu_emit.c:98:7: warning: 'static' is not at beginning of declaration [-Wold-style-declaration] const static int imm_hw_types[] = { ^ brw_eu_emit.c:120:7: warning: 'static' is not at beginning of declaration [-Wold-style-declaration] const static int hw_types[] = { ^ Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Diffstat (limited to 'src/glsl/builtin_types.cpp')
-rw-r--r--src/glsl/builtin_types.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/builtin_types.cpp b/src/glsl/builtin_types.cpp
index 0d0d71d..0aedbb3 100644
--- a/src/glsl/builtin_types.cpp
+++ b/src/glsl/builtin_types.cpp
@@ -127,7 +127,7 @@ static const struct glsl_struct_field gl_FogParameters_fields[] = {
#define T(TYPE, MIN_GL, MIN_ES) \
{ glsl_type::TYPE##_type, MIN_GL, MIN_ES },
-const static struct builtin_type_versions {
+static const struct builtin_type_versions {
const glsl_type *const type;
int min_gl;
int min_es;