diff options
author | Max Kellermann <max@duempel.org> | 2008-08-26 08:27:02 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-08-26 08:27:02 +0200 |
commit | a383f4511734b978020b1f8b4360ef9ad438e929 (patch) | |
tree | 36eed149dc77683414b81e91b463a5a4376d000e /src/pcm_utils.c | |
parent | d05c8fd422266f5769ba8bde1ee23a20a73578a7 (diff) | |
download | mpd-a383f4511734b978020b1f8b4360ef9ad438e929.tar.gz mpd-a383f4511734b978020b1f8b4360ef9ad438e929.tar.xz mpd-a383f4511734b978020b1f8b4360ef9ad438e929.zip |
enable -Wpointer-arith, -Wstrict-prototypes
Also enable -Wunused-parameter - this forces us to add the gcc
"unused" attribute to a lot of parameters (mostly library callback
functions), but it's worth it during code refactorizations.
Diffstat (limited to 'src/pcm_utils.c')
-rw-r--r-- | src/pcm_utils.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/pcm_utils.c b/src/pcm_utils.c index 3cf57def1..f716c279d 100644 --- a/src/pcm_utils.c +++ b/src/pcm_utils.c @@ -258,9 +258,11 @@ static size_t pcm_convertSampleRate(mpd_sint8 channels, mpd_uint32 inSampleRate, #else /* !HAVE_LIBSAMPLERATE */ /* resampling code blatantly ripped from ESD */ static size_t pcm_convertSampleRate(mpd_sint8 channels, mpd_uint32 inSampleRate, - const char *inBuffer, size_t inSize, + const char *inBuffer, + mpd_unused size_t inSize, mpd_uint32 outSampleRate, char *outBuffer, - size_t outSize, ConvState *convState) + size_t outSize, + mpd_unused ConvState *convState) { mpd_uint32 rd_dat = 0; mpd_uint32 wr_dat = 0; |