input/raw_analog: Prevent "duplicate const decl specifier" warning

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[] =
                                  ^
This commit is contained in:
Soeren Apel 2016-03-22 08:29:25 +01:00
parent d9d57ceb28
commit 1393bccfcb
1 changed files with 2 additions and 2 deletions

View 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}}},