src/*.c: New format specifiers for psf_binheader_writef 31/162531/1 tizen_4.0_tv accepted/tizen/4.0/unified/20171219.072304 submit/tizen_4.0/20171218.045843 tizen_4.0.IoT.p2_release
authorErik de Castro Lopo <erikd@mega-nerd.com>
Sun, 16 Jul 2017 01:58:17 +0000 (11:58 +1000)
committerSeungbae Shin <seungbae.shin@samsung.com>
Thu, 30 Nov 2017 06:11:06 +0000 (15:11 +0900)
commite24b15a21e9dc259479a0f23a11cf66748ea22e3
tree179821c7b6e814e33c1c8eed84021e05e5aec798
parent401a34510e5d399e3725c214100e2659f029d0eb
src/*.c: New format specifiers for psf_binheader_writef

There was a long standing problem where the compiler was not able to
check format speficiers for `psf_binheader_writef`. This is a standard
problem with using non-standard format specifiers with stdargs.

This solution wraps all non-format parameters pass to that functions
with a macro which performs an explicit type cast. The second step is
to have a Python program make sure these macro wrappers match the
format specifiers.

Change-Id: I8bc65d9671c98d11f87e07979372877f4e9ff048
Closes: https://github.com/erikd/libsndfile/issues/241
24 files changed:
src/aiff.c
src/au.c
src/avr.c
src/caf.c
src/common.h
src/htk.c
src/ircam.c
src/mat4.c
src/mat5.c
src/mpc2k.c
src/ms_adpcm.c
src/nist.c
src/paf.c
src/rf64.c
src/sd2.c
src/sds.c
src/svx.c
src/test_binheader_writef.c
src/voc.c
src/w64.c
src/wav.c
src/wavlike.c
src/wve.c
src/xi.c