Commit f80ebf68 authored by skidoo23's avatar skidoo23

decoder/wavpack: fix warning 'unused variable is_dsd' when compiled with --enable-dsd=no

parent 1155a290
/*
* 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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment