commit 7a43865db8c766d8ca32e503b92a7bb8de03c422
parent eaa37f114202cd0c0327147321fdd71f22e97ff5
Author: d.levin256@gmail.com <d.levin256@gmail.com>
Date: Tue, 27 Jun 2023 20:12:39 +0100
Ignore Wpass-failed
Diffstat:
3 files changed, 14 insertions(+), 0 deletions(-)
diff --git a/include/kfr/dft/impl/dft-impl.hpp b/include/kfr/dft/impl/dft-impl.hpp
@@ -36,6 +36,9 @@ CMT_PRAGMA_GNU(GCC diagnostic ignored "-Wshadow")
#if CMT_HAS_WARNING("-Wunused-lambda-capture")
CMT_PRAGMA_GNU(GCC diagnostic ignored "-Wunused-lambda-capture")
#endif
+#if CMT_HAS_WARNING("-Wpass-failed")
+CMT_PRAGMA_GNU(GCC diagnostic ignored "-Wpass-failed")
+#endif
CMT_PRAGMA_MSVC(warning(push))
CMT_PRAGMA_MSVC(warning(disable : 4100))
diff --git a/include/kfr/dft/impl/fft-impl.hpp b/include/kfr/dft/impl/fft-impl.hpp
@@ -34,6 +34,9 @@ CMT_PRAGMA_GNU(GCC diagnostic ignored "-Wshadow")
#if CMT_HAS_WARNING("-Wunused-lambda-capture")
CMT_PRAGMA_GNU(GCC diagnostic ignored "-Wunused-lambda-capture")
#endif
+#if CMT_HAS_WARNING("-Wpass-failed")
+CMT_PRAGMA_GNU(GCC diagnostic ignored "-Wpass-failed")
+#endif
CMT_PRAGMA_MSVC(warning(push))
CMT_PRAGMA_MSVC(warning(disable : 4100))
diff --git a/include/kfr/dft/impl/ft.hpp b/include/kfr/dft/impl/ft.hpp
@@ -37,6 +37,12 @@
#include "../../base/memory.hpp"
#include "../data/sincos.hpp"
+
+CMT_PRAGMA_GNU(GCC diagnostic push)
+#if CMT_HAS_WARNING("-Wpass-failed")
+CMT_PRAGMA_GNU(GCC diagnostic ignored "-Wpass-failed")
+#endif
+
CMT_PRAGMA_MSVC(warning(push))
CMT_PRAGMA_MSVC(warning(disable : 4127))
@@ -1812,3 +1818,5 @@ KFR_INTRINSIC void cdigitreverse4_write<false, f64, 32>(complex<f64>* dest, cons
} // namespace kfr
CMT_PRAGMA_MSVC(warning(pop))
+
+CMT_PRAGMA_GNU(GCC diagnostic pop)