From 423f2df5e05c0e8e8271de0c9a83812ad6feaecb Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 20 Apr 2021 20:01:29 +0200 Subject: pcm/Volume: drop support for GCC older than 8 --- src/pcm/Volume.cxx | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'src') 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 -#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, class DTraits=SampleTraits> -#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); -- cgit v1.2.3