0.11.3: compile time warnings
First just summary stats:
[tkloczko@pers-jacek SPECS]$ rpmbuild -ba --with check --with failing_tests celt051.spec --quiet 2>&1 | grep -- \\[-W | sed 's/.*\[//; s/\]//' | sort | uniq -c | sort -nr
15 -Wunused-result
7 -Wunused-but-set-variable
3 -Wunused-variable
1 -Wunused-const-variable=
1 -Wmaybe-uninitialized
And here is extracted stderr
modes.c: In function 'celt_mode_create':
modes.c:246:14: warning: unused variable 'mode' [-Wunused-variable]
246 | CELTMode *mode=NULL;
| ^~~~
celt.c: In function 'celt_encode_with_ec_float':
celt.c:1169:14: warning: unused variable 'offset' [-Wunused-variable]
1169 | int offset = st->mode->shortMdctSize-st->mode->overlap;
| ^~~~~~
celt.c:909:16: warning: unused variable 'pf_threshold' [-Wunused-variable]
909 | celt_word16 pf_threshold;
| ^~~~~~~~~~~~
celt.c:889:14: warning: variable '_overlap_mem' set but not used [-Wunused-but-set-variable]
889 | celt_sig *_overlap_mem;
| ^~~~~~~~~~~~
celt.c: In function 'celt_decode_with_ec_float':
celt.c:2231:8: warning: variable 'postfilter_tapset' set but not used [-Wunused-but-set-variable]
2231 | int postfilter_tapset;
| ^~~~~~~~~~~~~~~~~
celt.c:2224:16: warning: variable 'postfilter_gain' set but not used [-Wunused-but-set-variable]
2224 | celt_word16 postfilter_gain;
| ^~~~~~~~~~~~~~~
celt.c:2223:8: warning: variable 'postfilter_pitch' set but not used [-Wunused-but-set-variable]
2223 | int postfilter_pitch;
| ^~~~~~~~~~~~~~~~
celt.c: At top level:
celt.c:62:28: warning: 'tapset_icdf' defined but not used [-Wunused-const-variable=]
62 | static const unsigned char tapset_icdf[3]={2,1,0};
| ^~~~~~~~~~~
In file included from mdct-test.c:17:
../libcelt/mdct.c: In function 'clt_mdct_init':
../libcelt/mdct.c:65:12: warning: variable 'N2' set but not used [-Wunused-but-set-variable]
65 | int N4, N2;
| ^~
mdct-test.c: In function 'test1d':
mdct-test.c:92:17: warning: 'cfg.trig' may be used uninitialized [-Wmaybe-uninitialized]
92 | mdct_lookup cfg;
| ^
wav_io.c: In function 'write_wav_header':
wav_io.c:183:9: warning: variable 'ch' set but not used [-Wunused-but-set-variable]
183 | char ch[5];
| ^~
wav_io.c: In function 'read_wav_header':
wav_io.c:68:4: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result]
68 | fread(ch, 1, 4, file);
| ^~~~~~~~~~~~~~~~~~~~~
wav_io.c:71:7: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result]
71 | fread(&itmp, 4, 1, file);
| ^~~~~~~~~~~~~~~~~~~~~~~~
wav_io.c:78:7: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result]
78 | fread(ch, 1, 4, file);
| ^~~~~~~~~~~~~~~~~~~~~
wav_io.c:91:4: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result]
91 | fread(&itmp, 4, 1, file);
| ^~~~~~~~~~~~~~~~~~~~~~~~
wav_io.c:96:4: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result]
96 | fread(&stmp, 2, 1, file);
| ^~~~~~~~~~~~~~~~~~~~~~~~
wav_io.c:104:4: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result]
104 | fread(&stmp, 2, 1, file);
| ^~~~~~~~~~~~~~~~~~~~~~~~
wav_io.c:114:4: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result]
114 | fread(&itmp, 4, 1, file);
| ^~~~~~~~~~~~~~~~~~~~~~~~
wav_io.c:118:4: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result]
118 | fread(&itmp, 4, 1, file);
| ^~~~~~~~~~~~~~~~~~~~~~~~
wav_io.c:121:4: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result]
121 | fread(&stmp, 2, 1, file);
| ^~~~~~~~~~~~~~~~~~~~~~~~
wav_io.c:124:4: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result]
124 | fread(&stmp, 2, 1, file);
| ^~~~~~~~~~~~~~~~~~~~~~~~
wav_io.c:153:4: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result]
153 | fread(ch, 1, 4, file);
| ^~~~~~~~~~~~~~~~~~~~~
wav_io.c:156:7: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result]
156 | fread(&itmp, 4, 1, file);
| ^~~~~~~~~~~~~~~~~~~~~~~~
wav_io.c:162:7: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result]
162 | fread(ch, 1, 4, file);
| ^~~~~~~~~~~~~~~~~~~~~
wav_io.c:171:4: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result]
171 | fread(&itmp, 4, 1, file);
| ^~~~~~~~~~~~~~~~~~~~~~~~
celtenc.c: In function 'main':
celtenc.c:287:8: warning: variable 'print_bitrate' set but not used [-Wunused-but-set-variable]
287 | int print_bitrate=0;
| ^~~~~~~~~~~~~
celtenc.c:464:7: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result]
464 | fread(first_bytes, 1, 12, fin);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~