radeon: fix duplicate 'const' specifier
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 11 Apr 2017 12:55:12 +0000 (14:55 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 13 Apr 2017 08:06:06 +0000 (10:06 +0200)
Fixes the following Clang warning.

In file included from radeon_debug.c:32:
./radeon_common_context.h:500:19: warning: duplicate 'const' declaration specifier [-Wduplicate-decl-specifier]
extern const char const *radeonVendorString;

v2: - do not remove the duplicate 'const' qualifier, fix it

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
src/mesa/drivers/dri/radeon/radeon_common_context.c
src/mesa/drivers/dri/radeon/radeon_common_context.h

index d981ca24e56063e0b092f3d6af4fc7e7ecfedef7..f0c2dfa6ba3974294da29370ab9a92e306560bab 100644 (file)
@@ -70,7 +70,7 @@ static const char* get_chip_family_name(int chip_family)
        }
 }
 
-const char const *radeonVendorString = "Mesa Project";
+const char *const radeonVendorString = "Mesa Project";
 
 /* Return complete renderer string.
  */
index d142a871b409ce7b681e685adb2b66cdd2e09aeb..e55157093a402309d602b29361d3f5411cf65cb9 100644 (file)
@@ -497,7 +497,7 @@ static inline __DRIdrawable* radeon_get_readable(radeonContextPtr radeon)
        return radeon->driContext->driReadablePriv;
 }
 
-extern const char const *radeonVendorString;
+extern const char *const radeonVendorString;
 
 const char *radeonGetRendererString(radeonScreenPtr radeonScreen);