Put 'extern' first on the line to silence GCC warnings.
authorIan Romanick <ian.d.romanick@intel.com>
Sat, 29 Aug 2009 03:12:36 +0000 (20:12 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Sat, 29 Aug 2009 03:12:36 +0000 (20:12 -0700)
src/mesa/glapi/glapi.h

index 8f2cf66218389edf0eea852661f46bf3f8b9d067..5fb5401229aeb124982be07a8c46af8f39caf7a5 100644 (file)
@@ -80,8 +80,8 @@ typedef void (*_glapi_warning_func)(void *ctx, const char *str, ...);
  **/
 #if defined (GLX_USE_TLS)
 
-const extern void *_glapi_Context;
-const extern struct _glapi_table *_glapi_Dispatch;
+extern const void *_glapi_Context;
+extern const struct _glapi_table *_glapi_Dispatch;
 
 extern __thread void * _glapi_tls_Context
     __attribute__((tls_model("initial-exec")));