diff options
author | Max Kellermann <max@musicpd.org> | 2021-04-20 20:01:29 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2021-04-20 20:01:43 +0200 |
commit | 423f2df5e05c0e8e8271de0c9a83812ad6feaecb (patch) | |
tree | be6a73544fc5654abd872a8d0769da93660ee7a9 /src | |
parent | 0122dc845218a99231f3fd21f1f124bf9f91144d (diff) |
pcm/Volume: drop support for GCC older than 8
Diffstat (limited to 'src')
-rw-r--r-- | src/pcm/Volume.cxx | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/pcm/Volume.cxx b/src/pcm/Volume.cxx index e380659bb..c0183cdc3 100644 --- a/src/pcm/Volume.cxx +++ b/src/pcm/Volume.cxx @@ -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); |