diff options
author | Samuel Pitoiset <[email protected]> | 2017-04-11 14:55:12 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2017-04-13 10:06:06 +0200 |
commit | a18bd1373b1b7392e13a4b31a922488d2817d390 (patch) | |
tree | c09fda02713cb3be7d2af440f87ae7f66b07d203 | |
parent | ede273458c79b829b6d412a146bc78cebc22547e (diff) |
radeon: fix duplicate 'const' specifier
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 <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Reviewed-by: Emil Velikov <[email protected]>
-rw-r--r-- | src/mesa/drivers/dri/radeon/radeon_common_context.c | 2 | ||||
-rw-r--r-- | src/mesa/drivers/dri/radeon/radeon_common_context.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/radeon/radeon_common_context.c b/src/mesa/drivers/dri/radeon/radeon_common_context.c index d981ca24e56..f0c2dfa6ba3 100644 --- a/src/mesa/drivers/dri/radeon/radeon_common_context.c +++ b/src/mesa/drivers/dri/radeon/radeon_common_context.c @@ -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. */ diff --git a/src/mesa/drivers/dri/radeon/radeon_common_context.h b/src/mesa/drivers/dri/radeon/radeon_common_context.h index d142a871b40..e55157093a4 100644 --- a/src/mesa/drivers/dri/radeon/radeon_common_context.h +++ b/src/mesa/drivers/dri/radeon/radeon_common_context.h @@ -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); |