use LONGSTRING to silence warning

This commit is contained in:
Brian Paul
2006-11-16 16:12:10 +00:00
parent ebe4c893f8
commit 7438a78cf4
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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"