aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/mixer_c.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2013-10-07 07:44:09 -0700
committerChris Robinson <[email protected]>2013-10-07 07:44:09 -0700
commit1518895e15262deade1b03e29b47a3d149f73c83 (patch)
tree0c3399a3edd858efd10c154753cdedb9fde128c0 /Alc/mixer_c.c
parent44172f701c0842fc1a31bfa93b617b361a6d3618 (diff)
Use an UNUSED macro instead of void-tagging unused parameters
Diffstat (limited to 'Alc/mixer_c.c')
-rw-r--r--Alc/mixer_c.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/Alc/mixer_c.c b/Alc/mixer_c.c
index da3f8318..34309b12 100644
--- a/Alc/mixer_c.c
+++ b/Alc/mixer_c.c
@@ -8,17 +8,16 @@
#include "alAuxEffectSlot.h"
-static inline ALfloat point32(const ALfloat *vals, ALuint frac)
-{ return vals[0]; (void)frac; }
+static inline ALfloat point32(const ALfloat *vals, ALuint UNUSED(frac))
+{ return vals[0]; }
static inline ALfloat lerp32(const ALfloat *vals, ALuint frac)
{ return lerp(vals[0], vals[1], frac * (1.0f/FRACTIONONE)); }
static inline ALfloat cubic32(const ALfloat *vals, ALuint frac)
{ return cubic(vals[-1], vals[0], vals[1], vals[2], frac * (1.0f/FRACTIONONE)); }
-void Resample_copy32_C(const ALfloat *data, ALuint frac,
+void Resample_copy32_C(const ALfloat *data, ALuint UNUSED(frac),
ALuint increment, ALfloat *restrict OutBuffer, ALuint BufferSize)
{
- (void)frac;
assert(increment==FRACTIONONE);
memcpy(OutBuffer, data, (BufferSize+1)*sizeof(ALfloat));
}