From 8bdf0ad4098bb8b13473894625860c4ea7e5de7e Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Sat, 30 Nov 2013 22:16:09 +0000 Subject: Tag arguments to decodeXXX routines as unused iff we don't support the codec. svn path=/trunk/; revision=53680 --- codecs/G722/G722decode.c | 10 +++++++++- codecs/G726/G726decode.c | 10 +++++++++- 2 files changed, 18 insertions(+), 2 deletions(-) (limited to 'codecs') diff --git a/codecs/G722/G722decode.c b/codecs/G722/G722decode.c index 2286bd0a61..73bc10dbc8 100644 --- a/codecs/G722/G722decode.c +++ b/codecs/G722/G722decode.c @@ -22,6 +22,8 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +#include "config.h" + #include #ifdef HAVE_SPANDSP @@ -43,8 +45,14 @@ initG722(void) #endif } +#ifdef HAVE_SPANDSP +#define _U_NOSPANDSP_ +#else +#define _U_NOSPANDSP_ _U_ +#endif int -decodeG722(void *input, int inputSizeBytes, void *output, int *outputSizeBytes) +decodeG722(void *input _U_NOSPANDSP_, int inputSizeBytes _U_NOSPANDSP_, + void *output _U_NOSPANDSP_, int *outputSizeBytes _U_NOSPANDSP_) { #ifdef HAVE_SPANDSP *outputSizeBytes = g722_decode(&state, output, input, inputSizeBytes); diff --git a/codecs/G726/G726decode.c b/codecs/G726/G726decode.c index d97e386272..edc337840f 100644 --- a/codecs/G726/G726decode.c +++ b/codecs/G726/G726decode.c @@ -22,6 +22,8 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +#include "config.h" + #include #ifdef HAVE_SPANDSP #include "telephony.h" @@ -49,8 +51,14 @@ void initG726_32(void) /* Packing should be user defined (via the decode dialog) since due to historical reasons two diverging * de facto standards are in use today (see RFC3551). */ +#ifdef HAVE_SPANDSP +#define _U_NOSPANDSP_ +#else +#define _U_NOSPANDSP_ _U_ +#endif int -decodeG726_32(void *input, int inputSizeBytes, void *output, int *outputSizeBytes) +decodeG726_32(void *input _U_NOSPANDSP_, int inputSizeBytes _U_NOSPANDSP_, + void *output _U_NOSPANDSP_, int *outputSizeBytes _U_NOSPANDSP_) { #ifdef HAVE_SPANDSP *outputSizeBytes = 2 * g726_decode(&state, output, (void*) input, inputSizeBytes); -- cgit v1.2.3