kfr

Fast, modern C++ DSP framework, FFT, Sample Rate Conversion, FIR/IIR/Biquad Filters (SSE, AVX, AVX-512, ARM NEON)
Log | Files | Refs | README

commit 20b590366e83ade457d7a40c1d0f95215ceabcec
parent 6e8eb1fe332a3a8aa2ad2d9d14d86ac05de7a541
Author: d.levin256@gmail.com <d.levin256@gmail.com>
Date:   Mon, 17 Oct 2016 06:35:10 +0300

Ignore overflow warning for allones

Diffstat:
Minclude/kfr/base/constants.hpp | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/include/kfr/base/constants.hpp b/include/kfr/base/constants.hpp @@ -79,6 +79,9 @@ public: #if CMT_COMPILER_GNU +CMT_PRAGMA_GNU(GCC diagnostic push) +CMT_PRAGMA_GNU(GCC diagnostic ignored "-Woverflow") + constexpr static Tsub allones() { if (is_same<Tsub, f32>::value) @@ -128,6 +131,7 @@ public: return static_cast<Tsub>((1ull << (sizeof(Tsub) * 8 - 1)) - 1); } } +CMT_PRAGMA_GNU(GCC diagnostic pop) #else static Tsub allones()