From 25a29e71d85ca2b9ff47845ea4c8f119d7d4eaf8 Mon Sep 17 00:00:00 2001 From: Franklin Wei Date: Fri, 1 Sep 2017 22:03:06 -0400 Subject: [PATCH] Silence warnings in mp3_encoder `const' only needs to be used once (a const pointer to const data is `const type * const'). Change-Id: I47a0d69755cb7753ac64b82b930d14b4a19b7527 --- apps/plugins/mp3_encoder.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/plugins/mp3_encoder.c b/apps/plugins/mp3_encoder.c index 7bdf59934d..884a3b0269 100644 --- a/apps/plugins/mp3_encoder.c +++ b/apps/plugins/mp3_encoder.c @@ -71,9 +71,9 @@ typedef struct { } BF_Data; struct huffcodetab { - const uint8_t len; /* max. index */ - const uint8_t const *table; /* pointer to array[len][len] */ - const uint8_t const *hlen; /* pointer to array[len][len] */ + const uint8_t len; /* max. index */ + const uint8_t *table; /* pointer to array[len][len] */ + const uint8_t *hlen; /* pointer to array[len][len] */ }; struct huffcodebig { @@ -98,7 +98,7 @@ static short enc_data [SAMPL2] IBSS_ATTR; /* 1152 Bytes */ static BF_Data CodedData IBSS_ATTR; /* 1056 Bytes */ static const uint16_t sfBand[6][23] ICONST_ATTR; -static const uint16_t const *scalefac IBSS_ATTR; +static const uint16_t *scalefac IBSS_ATTR; static const int16_t ca [8] ICONST_ATTR; /* 16 Bytes */ static const uint16_t cs [8] ICONST_ATTR; /* 16 Bytes */