From 4348f0d135710167a789993cab6d1e8253de62cf Mon Sep 17 00:00:00 2001 From: Piotr Esden-Tempski Date: Wed, 19 Oct 2016 14:37:03 -0700 Subject: [PATCH] Fixed double const. The way the const pointer was written caused at least the clang compiler to complain about double cosnst. I am not sure if the way it was written before it resulted in the intended "make everything const" goal. But the way it is written now it adheres to the right to left reading rule. --- src/target/adiv5.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/target/adiv5.c b/src/target/adiv5.c index d530ecb..3fa7673 100644 --- a/src/target/adiv5.c +++ b/src/target/adiv5.c @@ -78,7 +78,7 @@ enum cid_class { #ifdef PLATFORM_HAS_DEBUG /* The reserved ones only have an R in them, to save a bit of space. */ -static const char const *cidc_debug_strings[] = +static const char * const cidc_debug_strings[] = { [cidc_gvc] = "Generic verification component", /* 0x0 */ [cidc_romtab] = "ROM Table", /* 0x1 */