Commit 423f2df5 authored by Max Kellermann's avatar Max Kellermann

pcm/Volume: drop support for GCC older than 8

parent 0122dc84
......@@ -32,22 +32,13 @@
#include <string.h>
#if GCC_OLDER_THAN(8,0)
/* GCC 6.3 emits this bogus warning in PcmVolumeConvert() because it
checks an unreachable branch */
#pragma GCC diagnostic ignored "-Wshift-count-overflow"
#endif
/**
* Apply software volume, converting to a different sample type.
*/
template<SampleFormat SF, SampleFormat DF,
class STraits=SampleTraits<SF>,
class DTraits=SampleTraits<DF>>
#if !GCC_OLDER_THAN(8,0)
constexpr
#endif
static typename DTraits::value_type
static constexpr typename DTraits::value_type
PcmVolumeConvert(typename STraits::value_type _sample, int volume) noexcept
{
typename STraits::long_type sample(_sample);
......
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