]> sigrok.org Git - libsigrok.git/commitdiff
input/raw_analog: Prevent "duplicate const decl specifier" warning
authorSoeren Apel <redacted>
Tue, 22 Mar 2016 07:29:25 +0000 (08:29 +0100)
committerSoeren Apel <redacted>
Tue, 22 Mar 2016 07:29:25 +0000 (08:29 +0100)
Warnings emitted by gcc before this patch:
src/input/raw_analog.c:51:13: warning: duplicate 'const' declaration specifier [-Wduplicate-decl-specifier]
        const char const *fmt_name;
                   ^
src/input/raw_analog.c:55:35: warning: duplicate 'const' declaration specifier [-Wduplicate-decl-specifier]
static const struct sample_format const sample_formats[] =
                                  ^

src/input/raw_analog.c

index a72cbd024b2c6b1cc141eb0b1c57e7cb690ee71f..e0b5cedaeffc6726b892705fc44b86e0a20451d0 100644 (file)
@@ -48,11 +48,11 @@ struct context {
 };
 
 struct sample_format {
-       const char const *fmt_name;
+       const char *fmt_name;
        struct sr_analog_encoding encoding;
 };
 
-static const struct sample_format const sample_formats[] =
+static const struct sample_format sample_formats[] =
 {
        { "S8",         { 1, TRUE,  FALSE, FALSE, 0, TRUE, { 1,                     128}, { 0, 1}}},
        { "U8",         { 1, FALSE, FALSE, FALSE, 0, TRUE, { 1,                     255}, {-1, 2}}},