diff options
author | skidoo23 <18039569+skidoo23@users.noreply.github.com> | 2018-10-12 01:02:34 +0200 |
---|---|---|
committer | skidoo23 <18039569+skidoo23@users.noreply.github.com> | 2018-10-12 01:02:34 +0200 |
commit | f80ebf68b0498fba5523e2cb63b24fd70b1effcc (patch) | |
tree | b4ed12ecee73cdfe5c323c28888f2e66ddc2e68e | |
parent | 1155a2909620f53237f8cf13056eb31496ee78f6 (diff) |
decoder/wavpack: fix warning 'unused variable is_dsd' when compiled with --enable-dsd=no
-rw-r--r-- | src/decoder/plugins/WavpackDecoderPlugin.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/decoder/plugins/WavpackDecoderPlugin.cxx b/src/decoder/plugins/WavpackDecoderPlugin.cxx index 85e0417f3..1e65c0fcd 100644 --- a/src/decoder/plugins/WavpackDecoderPlugin.cxx +++ b/src/decoder/plugins/WavpackDecoderPlugin.cxx @@ -1,5 +1,5 @@ /* - * Copyright 2003-2017 The Music Player Daemon Project + * Copyright 2003-2018 The Music Player Daemon Project * http://www.musicpd.org * * This program is free software; you can redistribute it and/or modify @@ -192,8 +192,6 @@ CheckAudioFormat(WavpackContext *wpc) const bool is_float = (WavpackGetMode(wpc) & MODE_FLOAT) != 0; #if defined(OPEN_DSD_AS_PCM) && defined(ENABLE_DSD) const bool is_dsd = (WavpackGetQualifyMode(wpc) & QMODE_DSD_AUDIO) != 0; -#else - constexpr bool is_dsd = false; #endif SampleFormat sample_format = wavpack_bits_to_sample_format(is_float, |