summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2006-11-16 16:12:10 +0000
committerBrian Paul <[email protected]>2006-11-16 16:12:10 +0000
commit7438a78cf4c220be18134a1d8dde7c776edbbbd3 (patch)
treea4ed0c3eb438c7a56a54729187b0ddeff4f567a0
parentebe4c893f8c0e80fe474743574a377d460b5f3e8 (diff)
use LONGSTRING to silence warning
-rw-r--r--src/mesa/glapi/gl_enums.py2
-rw-r--r--src/mesa/main/enums.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/glapi/gl_enums.py b/src/mesa/glapi/gl_enums.py
index e8c0576fd9b..0e3c57042a6 100644
--- a/src/mesa/glapi/gl_enums.py
+++ b/src/mesa/glapi/gl_enums.py
@@ -148,7 +148,7 @@ int _mesa_lookup_enum_by_name( const char *symbol )
string_offsets = {}
i = 0;
- print 'static const char enum_string_table[] = '
+ print 'LONGSTRING static const char enum_string_table[] = '
for [name, enum] in name_table:
print ' "%s\\0"' % (name)
string_offsets[ name ] = i
diff --git a/src/mesa/main/enums.c b/src/mesa/main/enums.c
index d864cd22aa4..fc56809e978 100644
--- a/src/mesa/main/enums.c
+++ b/src/mesa/main/enums.c
@@ -34,7 +34,7 @@ typedef struct {
int n;
} enum_elt;
-static const char enum_string_table[] =
+LONGSTRING static const char enum_string_table[] =
"GL_2D\0"
"GL_2_BYTES\0"
"GL_3D\0"