diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2021-07-12 19:57:41 +0000 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2021-07-26 07:07:07 -1000 |
commit | 79fe9e4313f9dbad8ee4619031900ccabd4f8824 (patch) | |
tree | 4fa2ad4f263ff17e0bc7d5d66fce39147aed298e /hw/audio | |
parent | fe4bd9170c92e5557f9c49ac08acc54c0d752aba (diff) |
hw/audio/adlib: Remove unused variable in adlib_callback
From clang-13:
hw/audio/adlib.c:189:18: error: variable 'net' set but not used \
[-Werror,-Wunused-but-set-variable]
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'hw/audio')
-rw-r--r-- | hw/audio/adlib.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/hw/audio/adlib.c b/hw/audio/adlib.c index 42d50d2fdc..5f979b1487 100644 --- a/hw/audio/adlib.c +++ b/hw/audio/adlib.c @@ -186,7 +186,7 @@ static int write_audio (AdlibState *s, int samples) static void adlib_callback (void *opaque, int free) { AdlibState *s = opaque; - int samples, net = 0, to_play, written; + int samples, to_play, written; samples = free >> SHIFT; if (!(s->active && s->enabled) || !samples) { @@ -219,7 +219,6 @@ static void adlib_callback (void *opaque, int free) written = write_audio (s, samples); if (written) { - net += written; samples -= written; s->pos = (s->pos + written) % s->samples; } |