diff options
author | Chris Robinson <[email protected]> | 2013-10-07 08:34:54 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2013-10-07 08:34:54 -0700 |
commit | 997f6228ded27f868ffa9ca99dd544d559a92cf5 (patch) | |
tree | 8ca22515738b762d087dc29fae45ab72af6ce98b /Alc/effects/autowah.c | |
parent | 32e85d469b735260d827d50a6d37c0937d375914 (diff) |
Use the UNUSED macro in the effects
Diffstat (limited to 'Alc/effects/autowah.c')
-rw-r--r-- | Alc/effects/autowah.c | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/Alc/effects/autowah.c b/Alc/effects/autowah.c index ffec3c9c..e6e45273 100644 --- a/Alc/effects/autowah.c +++ b/Alc/effects/autowah.c @@ -66,16 +66,13 @@ typedef struct ALautowahState { ALfilterState high_pass; } ALautowahState; -static ALvoid ALautowahState_Destruct(ALautowahState *state) +static ALvoid ALautowahState_Destruct(ALautowahState *UNUSED(state)) { - (void)state; } -static ALboolean ALautowahState_deviceUpdate(ALautowahState *state, ALCdevice *device) +static ALboolean ALautowahState_deviceUpdate(ALautowahState *UNUSED(state), ALCdevice *UNUSED(device)) { return AL_TRUE; - (void)state; - (void)device; } static ALvoid ALautowahState_update(ALautowahState *state, ALCdevice *Device, const ALeffectslot *Slot) @@ -174,10 +171,9 @@ static void ALautowahState_Delete(ALautowahState *state) DEFINE_ALEFFECTSTATE_VTABLE(ALautowahState); -static ALeffectState *ALautowahStateFactory_create(ALautowahStateFactory *factory) +static ALeffectState *ALautowahStateFactory_create(ALautowahStateFactory *UNUSED(factory)) { ALautowahState *state; - (void)factory; state = malloc(sizeof(*state)); if(!state) return NULL; @@ -198,8 +194,8 @@ ALeffectStateFactory *ALautowahStateFactory_getFactory(void) } -void ALautowah_setParami(ALeffect *effect, ALCcontext *context, ALenum param, ALint val) -{ SET_ERROR_AND_RETURN(context, AL_INVALID_ENUM); (void)effect;(void)param;(void)val; } +void ALautowah_setParami(ALeffect *UNUSED(effect), ALCcontext *context, ALenum UNUSED(param), ALint UNUSED(val)) +{ SET_ERROR_AND_RETURN(context, AL_INVALID_ENUM); } void ALautowah_setParamiv(ALeffect *effect, ALCcontext *context, ALenum param, const ALint *vals) { ALautowah_setParami(effect, context, param, vals[0]); @@ -244,8 +240,8 @@ void ALautowah_setParamfv(ALeffect *effect, ALCcontext *context, ALenum param, c ALautowah_setParamf(effect, context, param, vals[0]); } -void ALautowah_getParami(ALeffect *effect, ALCcontext *context, ALenum param, ALint *val) -{ SET_ERROR_AND_RETURN(context, AL_INVALID_ENUM); (void)effect;(void)param;(void)val; } +void ALautowah_getParami(ALeffect *UNUSED(effect), ALCcontext *context, ALenum UNUSED(param), ALint *UNUSED(val)) +{ SET_ERROR_AND_RETURN(context, AL_INVALID_ENUM); } void ALautowah_getParamiv(ALeffect *effect, ALCcontext *context, ALenum param, ALint *vals) { ALautowah_getParami(effect, context, param, vals); |