diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2014-11-21 07:59:01 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2014-11-21 07:59:01 +0100 |
commit | 4070d0716f9d5796d224d5abcdbefdf31db5c3bd (patch) | |
tree | 6545f52e47896a4127d73ef4c790277b82ac8c76 /etisnoop | |
parent | 1f8f48caa194471fc5d7568dcd78b22377388629 (diff) | |
download | mmbtools-aux-4070d0716f9d5796d224d5abcdbefdf31db5c3bd.tar.gz mmbtools-aux-4070d0716f9d5796d224d5abcdbefdf31db5c3bd.tar.bz2 mmbtools-aux-4070d0716f9d5796d224d5abcdbefdf31db5c3bd.zip |
Remove warnings
Diffstat (limited to 'etisnoop')
-rw-r--r-- | etisnoop/dabplussnoop.cpp | 4 | ||||
-rw-r--r-- | etisnoop/etisnoop.cpp | 5 | ||||
-rw-r--r-- | etisnoop/faad_decoder.cpp | 2 |
3 files changed, 9 insertions, 2 deletions
diff --git a/etisnoop/dabplussnoop.cpp b/etisnoop/dabplussnoop.cpp index d41d311..aed155a 100644 --- a/etisnoop/dabplussnoop.cpp +++ b/etisnoop/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/etisnoop.cpp b/etisnoop/etisnoop.cpp index 6f15178..29bf146 100644 --- a/etisnoop/etisnoop.cpp +++ b/etisnoop/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/etisnoop/faad_decoder.cpp b/etisnoop/faad_decoder.cpp index 17024ca..f489c1d 100644 --- a/etisnoop/faad_decoder.cpp +++ b/etisnoop/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]; |