diff options
-rw-r--r-- | dabplussnoop.cpp | 4 | ||||
-rw-r--r-- | etisnoop.cpp | 5 | ||||
-rw-r--r-- | faad_decoder.cpp | 2 |
3 files changed, 9 insertions, 2 deletions
diff --git a/dabplussnoop.cpp b/dabplussnoop.cpp index d41d311..aed155a 100644 --- a/dabplussnoop.cpp +++ b/dabplussnoop.cpp @@ -163,6 +163,10 @@ bool DabPlusSnoop::decode() header_firecode, rfa, m_dac_rate, m_sbr_flag, m_aac_channel_mode, m_ps_flag, m_mpeg_surround_config, num_aus); +#else + // Avoid "unused variable" warning + (void)header_firecode; + (void)rfa; #endif diff --git a/etisnoop.cpp b/etisnoop.cpp index 6f15178..29bf146 100644 --- a/etisnoop.cpp +++ b/etisnoop.cpp @@ -574,7 +574,7 @@ void decodeFIG(unsigned char* f, break; case 2: // FIG 0/2 { - unsigned short int sref, scid, sid; + unsigned short int sref, sid; unsigned char cid, ecc, local, caid, ncomp, timd, ps, ca, subchid, scty; int k=1; string psdesc; @@ -629,9 +629,12 @@ void decodeFIG(unsigned char* f, scty = scomp[0] & 0x3F; subchid = (scomp[1] & 0xFC) >> 2; + /* useless, kept as reference if (timd == 3) { + unsigned short int scid; scid = scty*64 + subchid; } + */ if (ps == 0) { psdesc = "Secondary service"; diff --git a/faad_decoder.cpp b/faad_decoder.cpp index 17024ca..f489c1d 100644 --- a/faad_decoder.cpp +++ b/faad_decoder.cpp @@ -202,7 +202,7 @@ bool FaadDecoder::decode(vector<vector<uint8_t> > aus) if (samples) { if (m_channels == 1) { int16_t *buffer = (int16_t *)alloca (2 * samples); - int16_t i; + size_t i; for (i = 0; i < samples; i ++) { buffer [2 * i] = ((int16_t *)outBuffer) [i]; buffer [2 * i + 1] = buffer [2 * i]; |