From: Brian Paul Date: Thu, 16 Nov 2006 16:12:10 +0000 (+0000) Subject: use LONGSTRING to silence warning X-Git-Tag: 062012170305~20134 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7438a78cf4c220be18134a1d8dde7c776edbbbd3;p=profile%2Fivi%2Fmesa.git use LONGSTRING to silence warning --- diff --git a/src/mesa/glapi/gl_enums.py b/src/mesa/glapi/gl_enums.py index e8c0576..0e3c570 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 d864cd2..fc56809 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"