Snippets for sox 14.4.2 from Alpine armhf
Sourced from https://build.alpinelinux.org/buildlogs/build-edge-armhf/community/sox/sox-14.4.2-r15.log.
-
sox.c:888:32: warning: passing argument 2 of 'lsx_realloc_array' as unsigned due to prototype [-Wtraditional-conversion] 888 | lsx_revalloc(argv, *argc + 1); | ~~~~~~^~~ -
formats_i.c:363:18: warning: passing argument 1 of '__bswap_16' with different width due to prototype [-Wtraditional-conversion] 363 | twiddle(buf[n], type); \ | ~~~^~~ -
formats_i.c:432:18: warning: passing argument 1 of '__bswap_16' with different width due to prototype [-Wtraditional-conversion] 432 | twiddle(buf[n], type); \ | ~~~^~~ -
util.c:124:16: warning: this statement may fall through [-Wimplicit-fallthrough=] 124 | case 2: if (b) return string[n]; /* Can fall through */ | ^ -
sox-fmt.c:21:34: warning: initializer-string for array of 'char' truncates NUL terminator but destination lacks 'nonstring' attribute (5 chars into 4 available) [-Wunterminated-string-initialization] 21 | static char const magic[2][4] = {".SoX", "XoS."}; | ^~~~~~ -
sox-fmt.c:21:42: warning: initializer-string for array of 'char' truncates NUL terminator but destination lacks 'nonstring' attribute (5 chars into 4 available) [-Wunterminated-string-initialization] 21 | static char const magic[2][4] = {".SoX", "XoS."}; | ^~~~~~ -
dft_filter.c:32:26: warning: passing argument 1 of 'lsx_calloc' as unsigned due to prototype [-Wtraditional-conversion] 32 | f->coefs = lsx_calloc(f->dft_length, sizeof(*f->coefs)); | ~^~~~~~~~~~~~ -
dither.h:47:19: warning: left shift of negative value [-Wshift-negative-value] 47 | if (i < (-1 << (p->prec-1))) | ^~ -
firfit.c:52:27: warning: passing argument 2 of 'lsx_realloc_array' as unsigned due to prototype [-Wtraditional-conversion] 52 | lsx_valloc(log_freqs , p->num_knots); | ~^~~~~~~~~~~ -
firfit.c:53:22: warning: passing argument 2 of 'lsx_realloc_array' as unsigned due to prototype [-Wtraditional-conversion] 53 | lsx_valloc(gains, p->num_knots); | ~^~~~~~~~~~~ -
firfit.c:54:20: warning: passing argument 2 of 'lsx_realloc_array' as unsigned due to prototype [-Wtraditional-conversion] 54 | lsx_valloc(d , p->num_knots); | ~^~~~~~~~~~~ -
firfit.c:62:30: warning: passing argument 1 of 'lsx_calloc' as unsigned due to prototype [-Wtraditional-conversion] 62 | work = lsx_calloc(work_len + 2, sizeof(*work)); | ~~~~~~~~~^~~ -
firfit.c:63:18: warning: passing argument 2 of 'lsx_realloc_array' as unsigned due to prototype [-Wtraditional-conversion] 63 | lsx_valloc(h, p->n); | ~^~~ -
firfit.c:100:47: warning: passing argument 2 of 'lsx_realloc_array' as unsigned due to prototype [-Wtraditional-conversion] 100 | lsx_revalloc(p->knots, ++p->num_knots + 1); | ~~~~~~~~~~~~~~~^~~ -
loudness.c:78:21: warning: passing argument 1 of 'lsx_calloc' as unsigned due to prototype [-Wtraditional-conversion] 78 | work = lsx_calloc(work_len, sizeof(*work)); | ^~~~~~~~ -
loudness.c:79:18: warning: passing argument 1 of 'lsx_calloc' as unsigned due to prototype [-Wtraditional-conversion] 79 | h = lsx_calloc(n, sizeof(*h)); | ^ -
rate.c:232:23: warning: passing argument 1 of 'lsx_calloc' as unsigned due to prototype [-Wtraditional-conversion] 232 | f->coefs = calloc(dft_length, sizeof(*f->coefs)); | ^~~~~~~~~~ -
hilbert.c:67:23: warning: passing argument 2 of 'lsx_realloc_array' as unsigned due to prototype [-Wtraditional-conversion] 67 | lsx_valloc(p->h, p->taps); | ~^~~~~~ -
effects_i_dsp.c:360:23: warning: passing argument 1 of 'calloc' as unsigned due to prototype [-Wtraditional-conversion] 360 | double * h = calloc(num_taps, sizeof(*h)), sum = 0; | ^~~~~~~~ -
dither.c:319:20: warning: left shift of negative value [-Wshift-negative-value] 319 | if (i <= (-1 << (p->prec-1))) | ^~ -
ladspa.c:163:7: warning: this 'else' clause does not guard... [-Wmisleading-indentation] 163 | } else | ^~~~ -
effects_i_dsp.c:518:30: warning: passing argument 1 of 'lsx_calloc' as unsigned due to prototype [-Wtraditional-conversion] 518 | double * h1 = lsx_calloc(N, sizeof(*h1)); | ^ -
silence.c:280:43: warning: left shift of negative value [-Wshift-negative-value] 280 | sox_sample_t masked_value = value & (-1 << (32 - effp->in_signal.precision)); | ^~ -
effects_i_dsp.c:585:41: warning: right-hand operand of comma expression has no effect [-Wunused-value] 585 | #define _ dest[i] = lrint32(src[i]), ++i, | ^ -
rate.c:340:36: warning: passing argument 1 of 'lsx_calloc' as unsigned due to prototype [-Wtraditional-conversion] 340 | p->stages = calloc(p->num_stages + 1, sizeof(*p->stages)); | ~~~~~~~~~~~~~~^~~ -
spectrogram.c:202:51: warning: right-hand operand of comma expression has no effect [-Wunused-value] 202 | #define _ re += in[i] * *q++, im += in[i++] * *q++, | ^ -
spectrogram.c:367:39: warning: passing argument 1 of 'lsx_calloc' as unsigned due to prototype [-Wtraditional-conversion] 367 | sox_sample_t * ibuf = lsx_calloc(p->dft_size, sizeof(*ibuf)); | ~^~~~~~~~~~ -
spectrogram.c:368:39: warning: passing argument 1 of 'lsx_calloc' as unsigned due to prototype [-Wtraditional-conversion] 368 | sox_sample_t * obuf = lsx_calloc(p->dft_size, sizeof(*obuf)); | ~^~~~~~~~~~ -
au.c:25:4: warning: initializer-string for array of 'char' truncates NUL terminator but destination lacks 'nonstring' attribute (5 chars into 4 available) [-Wunterminated-string-initialization] 25 | {"\x2e\x73\x6e\x64", MACHINE_IS_LITTLEENDIAN, "big-endian `.snd'"}, | ^~~~~~~~~~~~~~~~~~ -
au.c:26:4: warning: initializer-string for array of 'char' truncates NUL terminator but destination lacks 'nonstring' attribute (5 chars into 4 available) [-Wunterminated-string-initialization] 26 | {"\x64\x6e\x73\x2e", MACHINE_IS_BIGENDIAN , "little-endian `.snd'"}, | ^~~~~~~~~~~~~~~~~~ -
au.c:27:4: warning: initializer-string for array of 'char' truncates NUL terminator but destination lacks 'nonstring' attribute (5 chars into 4 available) [-Wunterminated-string-initialization] 27 | {"\x00\x64\x73\x2e", MACHINE_IS_BIGENDIAN , "little-endian `\\0ds.' (for DEC)"}, | ^~~~~~~~~~~~~~~~~~ -
au.c:28:4: warning: initializer-string for array of 'char' truncates NUL terminator but destination lacks 'nonstring' attribute (5 chars into 4 available) [-Wunterminated-string-initialization] 28 | {"\x2e\x73\x64\x00", MACHINE_IS_LITTLEENDIAN, "big-endian `\\0ds.'"}, | ^~~~~~~~~~~~~~~~~~ -
au.c:29:4: warning: initializer-string for array of 'char' truncates NUL terminator but destination lacks 'nonstring' attribute (5 chars into 4 available) [-Wunterminated-string-initialization] 29 | {" ", 0, NULL} | ^~~~~~ -
au.c:146:30: warning: implicit conversion from 'sox_bool' to 'sox_option_t' [-Wenum-conversion] 146 | ft->encoding.reverse_bytes = id[i].reverse_bytes; | ^ -
hcom.c:462:14: warning: right shift count >= width of type [-Wshift-count-overflow] 462 | if (p->pos >> 32 > 0) | ^~ -
sf.c:25:4: warning: initializer-string for array of 'char' truncates NUL terminator but destination lacks 'nonstring' attribute (5 chars into 4 available) [-Wunterminated-string-initialization] 25 | {"\144\243\001\0", MACHINE_IS_BIGENDIAN , "little-endian VAX (native)"}, | ^~~~~~~~~~~~~~~~ -
sf.c:26:4: warning: initializer-string for array of 'char' truncates NUL terminator but destination lacks 'nonstring' attribute (5 chars into 4 available) [-Wunterminated-string-initialization] 26 | {"\0\001\243\144", MACHINE_IS_LITTLEENDIAN, "big-endian VAX"}, | ^~~~~~~~~~~~~~~~ -
sf.c:27:4: warning: initializer-string for array of 'char' truncates NUL terminator but destination lacks 'nonstring' attribute (5 chars into 4 available) [-Wunterminated-string-initialization] 27 | {"\144\243\002\0", MACHINE_IS_LITTLEENDIAN, "big-endian Sun (native)"}, | ^~~~~~~~~~~~~~~~ -
sf.c:28:4: warning: initializer-string for array of 'char' truncates NUL terminator but destination lacks 'nonstring' attribute (5 chars into 4 available) [-Wunterminated-string-initialization] 28 | {"\0\002\243\144", MACHINE_IS_BIGENDIAN , "little-endian Sun"}, | ^~~~~~~~~~~~~~~~ -
sf.c:29:4: warning: initializer-string for array of 'char' truncates NUL terminator but destination lacks 'nonstring' attribute (5 chars into 4 available) [-Wunterminated-string-initialization] 29 | {"\144\243\003\0", MACHINE_IS_BIGENDIAN , "little-endian MIPS (DEC)"}, | ^~~~~~~~~~~~~~~~ -
sf.c:30:4: warning: initializer-string for array of 'char' truncates NUL terminator but destination lacks 'nonstring' attribute (5 chars into 4 available) [-Wunterminated-string-initialization] 30 | {"\0\003\243\144", MACHINE_IS_LITTLEENDIAN, "big-endian MIPS (SGI)"}, | ^~~~~~~~~~~~~~~~ -
sf.c:31:4: warning: initializer-string for array of 'char' truncates NUL terminator but destination lacks 'nonstring' attribute (5 chars into 4 available) [-Wunterminated-string-initialization] 31 | {"\144\243\004\0", MACHINE_IS_LITTLEENDIAN, "big-endian NeXT"}, | ^~~~~~~~~~~~~~~~ -
sf.c:32:4: warning: initializer-string for array of 'char' truncates NUL terminator but destination lacks 'nonstring' attribute (5 chars into 4 available) [-Wunterminated-string-initialization] 32 | {" ", 0, NULL} | ^~~~~~ -
sf.c:88:30: warning: implicit conversion from 'sox_bool' to 'sox_option_t' [-Wenum-conversion] 88 | ft->encoding.reverse_bytes = id[i].reverse_bytes; | ^ -
soundtool.c:22:28: warning: initializer-string for array of 'char' truncates NUL terminator but destination lacks 'nonstring' attribute (7 chars into 6 available) [-Wunterminated-string-initialization] 22 | static char const ID1[6] = "SOUND\x1a"; | ^~~~~~~~~~~ -
voc.c:655:9: warning: this statement may fall through [-Wimplicit-fallthrough=] 655 | lsx_readb(ft, &uc); | ^~~~~~~~~~~~~~~~~~ -
sox_sample_test.h:40:37: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare] 40 | assert(sample * SOX_INT_MAX(bits) == SOX_UNSIGNED_TO_SAMPLE(bits,1)); \ | ^~ -
sox_sample_test.h:97:37: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare] 97 | assert(sample * SOX_INT_MAX(bits) == SOX_SIGNED_TO_SAMPLE(bits,SOX_INT_MIN(bits)+1)); \ | ^~ -
wav.c:388:80: warning: format '%ld' expects argument of type 'long int', but argument 4 has type 'uint64_t' {aka 'long long unsigned int'} [-Wformat=] 388 | lsx_fail_errno(ft, SOX_EHDR, "WAV chunk appears to have invalid size %ld.", *len); | ~~^ ~~~~ | | | | | uint64_t {aka long long unsigned int} | long int | %lld -
wav.c:395:79: warning: format '%ld' expects argument of type 'long int', but argument 4 has type 'uint64_t' {aka 'long long unsigned int'} [-Wformat=] 395 | lsx_fail_errno(ft,SOX_EHDR, "WAV chunk appears to have invalid size %ld.", *len); | ~~^ ~~~~ | | | | | uint64_t {aka long long unsigned int} | long int | %lld -
wav.c:408:67: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'off_t' {aka 'long long int'} [-Wformat=] 408 | lsx_debug("File had libsndfile bug, working around tell=%ld", lsx_tell(ft)); | ~~^ ~~~~~~~~~~~~ | | | | | off_t {aka long long int} | long int | %lld -
wav.c:476:69: warning: format '%ld' expects argument of type 'long int', but argument 4 has type 'uint64_t' {aka 'long long unsigned int'} [-Wformat=] 476 | "WAV chunk appears to have invalid size %ld.", *len); | ~~^ ~~~~ | | | | | uint64_t {aka long long unsigned int} | long int | %lld -
wav.c:933:35: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'uint64_t' {aka 'long long unsigned int'} [-Wformat=] 933 | lsx_debug_more("datalen %ld, numSamples %lu",qwDataLength, (unsigned long)wav->numSamples); | ~~^ ~~~~~~~~~~~~ | | | | long int uint64_t {aka long long unsigned int} | %lld -
wve.c:23:29: warning: initializer-string for array of 'char' truncates NUL terminator but destination lacks 'nonstring' attribute (19 chars into 18 available) [-Wunterminated-string-initialization] 23 | static char const ID1[18] = "ALawSoundFile**\0\017\020"; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ -
wav.c:944:35: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'uint64_t' {aka 'long long unsigned int'} [-Wformat=] 944 | lsx_debug_more("datalen %ld, numSamples %lu",qwDataLength, (unsigned long)wav->numSamples); | ~~^ ~~~~~~~~~~~~ | | | | long int uint64_t {aka long long unsigned int} | %lld -
wav.c:975:69: warning: format '%lu' expects argument of type 'long unsigned int', but argument 5 has type 'uint64_t' {aka 'long long unsigned int'} [-Wformat=] 975 | lsx_debug(" %d byte/sec, %d block align, %d bits/samp, %lu data bytes", | ~~^ | | | long unsigned int | %llu 976 | dwAvgBytesPerSec, wav->blockAlign, wBitsPerSample, qwDataLength); | ~~~~~~~~~~~~ | | | uint64_t {aka long long unsigned int} -
wav.c:1100:103: warning: format '%ld' expects argument of type 'long int', but argument 6 has type 'uint64_t' {aka 'long long unsigned int'} [-Wformat=] 1100 | lsx_debug("Attempting to seek beyond unsupported chunk `%c%c%c%c' of length %ld bytes", magic[0], magic[1], magic[2], magic[3], len); | ~~^ ~~~ | | | | long int uint64_t {aka long long unsigned int} | %lld -
wav.c:1531:9: warning: initializer-string for array of 'unsigned char' truncates NUL terminator but destination lacks 'nonstring' attribute (15 chars into 14 available) [-Wunterminated-string-initialization] 1531 | "\x00\x00\x00\x00\x10\x00\x80\x00\x00\xAA\x00\x38\x9B\x71", /* wav */ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
wav.c:1532:9: warning: initializer-string for array of 'unsigned char' truncates NUL terminator but destination lacks 'nonstring' attribute (15 chars into 14 available) [-Wunterminated-string-initialization] 1532 | "\x00\x00\x21\x07\xd3\x11\x86\x44\xc8\xc1\xca\x00\x00\x00"}; /* amb */ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
wav.c:1277:13: warning: this statement may fall through [-Wimplicit-fallthrough=] 1277 | lsx_ima_init_table(); | ^~~~~~~~~~~~~~~~~~~~ -
ao.c:84:31: warning: passing argument 1 of '__bswap_16' with different width due to prototype [-Wtraditional-conversion] 84 | datum = lsx_swapw(datum); | ^~~~~ -
ao.c:100:51: warning: implicit conversion from 'sox_option_t' to 'sox_bool' [-Wenum-conversion] 100 | sox_sw_write_buf(ao->buf, buf, len, ft->encoding.reverse_bytes, | ~~~~~~~~~~~~^~~~~~~~~~~~~~ -
vorbis.c:320:49: warning: passing argument 2 of 'vorbis_encode_init_vbr' as signed due to prototype [-Wtraditional-conversion] 320 | if (vorbis_encode_init_vbr(&ve->vi, ft->signal.channels, ft->signal.rate + .5, quality / 10)) | ~~~~~~~~~~^~~~~~~~~ -
vorbis.c:320:76: warning: passing argument 3 of 'vorbis_encode_init_vbr' as integer rather than floating due to prototype [-Wtraditional-conversion] 320 | if (vorbis_encode_init_vbr(&ve->vi, ft->signal.channels, ft->signal.rate + .5, quality / 10)) | ~~~~~~~~~~~~~~~~^~~~ -
flac.c:515:10: warning: implicit conversion from 'FLAC__StreamEncoderInitStatus' to 'FLAC__StreamEncoderState' [-Wenum-conversion] 515 | status = FLAC__stream_encoder_init_stream(p->encoder, flac_stream_encoder_write_callback, | ^ -
mp3-util.h:128:34: warning: passing argument 2 of 'lsx_seeki' with different width due to prototype [-Wtraditional-conversion] 128 | if (0 != lsx_seeki(info->ft, size, SEEK_CUR) || | ^~~~ -
mp3-util.h:199:26: warning: passing argument 2 of 'lsx_seeki' with different width due to prototype [-Wtraditional-conversion] 199 | if (0 == lsx_seeki(ft, -128, SEEK_END)) { | ^~~~ -
mp3-util.h:204:26: warning: passing argument 2 of 'lsx_seeki' with different width due to prototype [-Wtraditional-conversion] 204 | if (0 == lsx_seeki(ft, 0, SEEK_SET)) { | ^ -
mp3-util.h:207:43: warning: passing argument 2 of 'lsx_seeki' with different width due to prototype [-Wtraditional-conversion] 207 | if (0 == lsx_seeki(ft, has_id3v1 ? -138 : -10, SEEK_END)) { | ~~~~~~~~~~~~~~~~~^~~~~ -
alsa.c:211:57: warning: passing argument 1 of '__bswap_16' with different width due to prototype [-Wtraditional-conversion] 211 | *buf++ = SOX_SIGNED_16BIT_TO_SAMPLE(lsx_swapw(*buf1++),); | ^~~~~~~ -
alsa.c:219:59: warning: passing argument 1 of '__bswap_16' with different width due to prototype [-Wtraditional-conversion] 219 | *buf++ = SOX_UNSIGNED_16BIT_TO_SAMPLE(lsx_swapw(*buf1++),); | ^~~~~~~ -
alsa.c:285:21: warning: passing argument 1 of '__bswap_16' with different width due to prototype [-Wtraditional-conversion] 285 | *buf1++ = lsx_swapw(SOX_SAMPLE_TO_SIGNED_16BIT(*buf++, ft->clips)); | ^~~~~~~~~ -
alsa.c:293:21: warning: passing argument 1 of '__bswap_16' with different width due to prototype [-Wtraditional-conversion] 293 | *buf1++ = lsx_swapw(SOX_SAMPLE_TO_UNSIGNED_16BIT(*buf++, ft->clips)); | ^~~~~~~~~ -
mp3.c:189:26: warning: 'twolame_library_names' defined but not used [-Wunused-const-variable=] 189 | static const char* const twolame_library_names[] = | ^~~~~~~~~~~~~~~~~~~~~