aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/effects/echo.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/echo.c
parent32e85d469b735260d827d50a6d37c0937d375914 (diff)
Use the UNUSED macro in the effects
Diffstat (limited to 'Alc/effects/echo.c')
-rw-r--r--Alc/effects/echo.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/Alc/effects/echo.c b/Alc/effects/echo.c
index a9110e35..1305921c 100644
--- a/Alc/effects/echo.c
+++ b/Alc/effects/echo.c
@@ -176,10 +176,9 @@ static void ALechoState_Delete(ALechoState *state)
DEFINE_ALEFFECTSTATE_VTABLE(ALechoState);
-ALeffectState *ALechoStateFactory_create(ALechoStateFactory *factory)
+ALeffectState *ALechoStateFactory_create(ALechoStateFactory *UNUSED(factory))
{
ALechoState *state;
- (void)factory;
state = malloc(sizeof(*state));
if(!state) return NULL;
@@ -213,8 +212,8 @@ ALeffectStateFactory *ALechoStateFactory_getFactory(void)
}
-void ALecho_setParami(ALeffect *effect, ALCcontext *context, ALenum param, ALint val)
-{ SET_ERROR_AND_RETURN(context, AL_INVALID_ENUM); (void)effect;(void)param;(void)val; }
+void ALecho_setParami(ALeffect *UNUSED(effect), ALCcontext *context, ALenum UNUSED(param), ALint UNUSED(val))
+{ SET_ERROR_AND_RETURN(context, AL_INVALID_ENUM); }
void ALecho_setParamiv(ALeffect *effect, ALCcontext *context, ALenum param, const ALint *vals)
{
ALecho_setParami(effect, context, param, vals[0]);
@@ -263,8 +262,8 @@ void ALecho_setParamfv(ALeffect *effect, ALCcontext *context, ALenum param, cons
ALecho_setParamf(effect, context, param, vals[0]);
}
-void ALecho_getParami(ALeffect *effect, ALCcontext *context, ALenum param, ALint *val)
-{ SET_ERROR_AND_RETURN(context, AL_INVALID_ENUM); (void)effect;(void)param;(void)val; }
+void ALecho_getParami(ALeffect *UNUSED(effect), ALCcontext *context, ALenum UNUSED(param), ALint *UNUSED(val))
+{ SET_ERROR_AND_RETURN(context, AL_INVALID_ENUM); }
void ALecho_getParamiv(ALeffect *effect, ALCcontext *context, ALenum param, ALint *vals)
{
ALecho_getParami(effect, context, param, vals);