aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_hilbert.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-11-07 05:47:12 -0500
committerDavid Robillard <d@drobilla.net>2022-11-07 06:03:51 -0500
commitc002ebc4245e805d7a2a0ddaf2fd9f6ff58d22a4 (patch)
treeb238cdaba2e4e9eb54a36097bf24273fe14a04a7 /test/test_hilbert.cpp
parent39b9586ee07bf77e8d1042c865876d87d2754e22 (diff)
downloadchilbert-c002ebc4245e805d7a2a0ddaf2fd9f6ff58d22a4.tar.gz
chilbert-c002ebc4245e805d7a2a0ddaf2fd9f6ff58d22a4.tar.bz2
chilbert-c002ebc4245e805d7a2a0ddaf2fd9f6ff58d22a4.zip
Fix warnings in MacOS build
Diffstat (limited to 'test/test_hilbert.cpp')
-rw-r--r--test/test_hilbert.cpp13
1 files changed, 13 insertions, 0 deletions
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 <gmp.h>
#include <gmpxx.h>
+#if defined(__clang__)
+_Pragma("clang diagnostic pop")
+#endif
+
#include <array>
#include <cassert>
#include <climits>