From c002ebc4245e805d7a2a0ddaf2fd9f6ff58d22a4 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 7 Nov 2022 05:47:12 -0500 Subject: Fix warnings in MacOS build --- test/test_hilbert.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'test') diff --git a/test/test_hilbert.cpp b/test/test_hilbert.cpp index a83ee33..d2db1e1 100644 --- a/test/test_hilbert.cpp +++ b/test/test_hilbert.cpp @@ -11,9 +11,22 @@ #include "chilbert/StaticBitVec.hpp" #include "chilbert/chilbert.ipp" +#if defined(__clang__) +_Pragma("clang diagnostic push") +_Pragma("clang diagnostic ignored \"-Wcovered-switch-default\"") +_Pragma("clang diagnostic ignored \"-Wdouble-promotion\"") +_Pragma("clang diagnostic ignored \"-Wreserved-id-macro\"") +_Pragma("clang diagnostic ignored \"-Wsign-conversion\"") +_Pragma("clang diagnostic ignored \"-Wzero-as-null-pointer-constant\"") +#endif + #include #include +#if defined(__clang__) +_Pragma("clang diagnostic pop") +#endif + #include #include #include -- cgit v1.2.1