diff options
author | Akihiko Odaki <akihiko.odaki@gmail.com> | 2022-03-16 15:10:53 +0900 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2022-03-18 09:32:48 +0100 |
commit | 832061a2fa33b933bf3e080cbc3625ec99bacd30 (patch) | |
tree | efd810e73878c9a826264ffa71b3006043ac7071 | |
parent | 6c08964b415a7bfd3b3ed65e7309cc3ffdb096b8 (diff) | |
download | qemu-832061a2fa33b933bf3e080cbc3625ec99bacd30.zip qemu-832061a2fa33b933bf3e080cbc3625ec99bacd30.tar.gz qemu-832061a2fa33b933bf3e080cbc3625ec99bacd30.tar.bz2 |
audio/mixeng: Do not declare unused variables
The unused variables when FLOAT_MIXENG is defined caused warnings on
Apple clang version 13.1.6 (clang-1316.0.21.2).
Signed-off-by: Akihiko Odaki <akihiko.odaki@gmail.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20220316061053.60587-1-akihiko.odaki@gmail.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
-rw-r--r-- | audio/mixeng.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/audio/mixeng.c b/audio/mixeng.c index f27deb1..100a306 100644 --- a/audio/mixeng.c +++ b/audio/mixeng.c @@ -342,13 +342,13 @@ f_sample *mixeng_clip_float[2] = { void audio_sample_to_uint64(const void *samples, int pos, uint64_t *left, uint64_t *right) { - const struct st_sample *sample = samples; - sample += pos; #ifdef FLOAT_MIXENG error_report( "Coreaudio and floating point samples are not supported by replay yet"); abort(); #else + const struct st_sample *sample = samples; + sample += pos; *left = sample->l; *right = sample->r; #endif @@ -357,13 +357,13 @@ void audio_sample_to_uint64(const void *samples, int pos, void audio_sample_from_uint64(void *samples, int pos, uint64_t left, uint64_t right) { - struct st_sample *sample = samples; - sample += pos; #ifdef FLOAT_MIXENG error_report( "Coreaudio and floating point samples are not supported by replay yet"); abort(); #else + struct st_sample *sample = samples; + sample += pos; sample->l = left; sample->r = right; #endif |