use LONGSTRING to silence warning
authorBrian Paul <brian.paul@tungstengraphics.com>
Thu, 16 Nov 2006 16:12:10 +0000 (16:12 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Thu, 16 Nov 2006 16:12:10 +0000 (16:12 +0000)
src/mesa/glapi/gl_enums.py
src/mesa/main/enums.c

index e8c0576fd9b21f580f449617d2968f2d5d67b3ef..0e3c57042a65d2caa3052bab9a52eb18ec3d11ac 100644 (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
index d864cd22aa43f34ca951d5d8aeaa109f08e93026..fc56809e97856cc0ba893931a4fb435e4ec805fe 100644 (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"