aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/effects/distortion.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2013-10-07 08:34:54 -0700
committerChris Robinson <[email protected]>2013-10-07 08:34:54 -0700
commit997f6228ded27f868ffa9ca99dd544d559a92cf5 (patch)
tree8ca22515738b762d087dc29fae45ab72af6ce98b /Alc/effects/distortion.c
parent32e85d469b735260d827d50a6d37c0937d375914 (diff)
Use the UNUSED macro in the effects
Diffstat (limited to 'Alc/effects/distortion.c')
-rw-r--r--Alc/effects/distortion.c18
1 files changed, 7 insertions, 11 deletions
diff --git a/Alc/effects/distortion.c b/Alc/effects/distortion.c
index 9a18ad46..4ceb9648 100644
--- a/Alc/effects/distortion.c
+++ b/Alc/effects/distortion.c
@@ -50,16 +50,13 @@ typedef struct ALdistortionState {
ALfloat edge_coeff;
} ALdistortionState;
-static ALvoid ALdistortionState_Destruct(ALdistortionState *state)
+static ALvoid ALdistortionState_Destruct(ALdistortionState *UNUSED(state))
{
- (void)state;
}
-static ALboolean ALdistortionState_deviceUpdate(ALdistortionState *state, ALCdevice *device)
+static ALboolean ALdistortionState_deviceUpdate(ALdistortionState *UNUSED(state), ALCdevice *UNUSED(device))
{
return AL_TRUE;
- (void)state;
- (void)device;
}
static ALvoid ALdistortionState_update(ALdistortionState *state, ALCdevice *Device, const ALeffectslot *Slot)
@@ -188,10 +185,9 @@ static void ALdistortionState_Delete(ALdistortionState *state)
DEFINE_ALEFFECTSTATE_VTABLE(ALdistortionState);
-static ALeffectState *ALdistortionStateFactory_create(ALdistortionStateFactory *factory)
+static ALeffectState *ALdistortionStateFactory_create(ALdistortionStateFactory *UNUSED(factory))
{
ALdistortionState *state;
- (void)factory;
state = malloc(sizeof(*state));
if(!state) return NULL;
@@ -219,8 +215,8 @@ ALeffectStateFactory *ALdistortionStateFactory_getFactory(void)
}
-void ALdistortion_setParami(ALeffect *effect, ALCcontext *context, ALenum param, ALint val)
-{ SET_ERROR_AND_RETURN(context, AL_INVALID_ENUM); (void)effect;(void)param;(void)val; }
+void ALdistortion_setParami(ALeffect *UNUSED(effect), ALCcontext *context, ALenum UNUSED(param), ALint UNUSED(val))
+{ SET_ERROR_AND_RETURN(context, AL_INVALID_ENUM); }
void ALdistortion_setParamiv(ALeffect *effect, ALCcontext *context, ALenum param, const ALint *vals)
{
ALdistortion_setParami(effect, context, param, vals[0]);
@@ -269,8 +265,8 @@ void ALdistortion_setParamfv(ALeffect *effect, ALCcontext *context, ALenum param
ALdistortion_setParamf(effect, context, param, vals[0]);
}
-void ALdistortion_getParami(ALeffect *effect, ALCcontext *context, ALenum param, ALint *val)
-{ SET_ERROR_AND_RETURN(context, AL_INVALID_ENUM); (void)effect;(void)param;(void)val; }
+void ALdistortion_getParami(ALeffect *UNUSED(effect), ALCcontext *context, ALenum UNUSED(param), ALint *UNUSED(val))
+{ SET_ERROR_AND_RETURN(context, AL_INVALID_ENUM); }
void ALdistortion_getParamiv(ALeffect *effect, ALCcontext *context, ALenum param, ALint *vals)
{
ALdistortion_getParami(effect, context, param, vals);