summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/helpers.hpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/helpers.hpp b/tests/helpers.hpp
index abe6626..172f231 100644
--- a/tests/helpers.hpp
+++ b/tests/helpers.hpp
@@ -13,8 +13,17 @@ template <typename T> static void generic_bool_ops_test(const T& obj)
CHECK(obj);
CHECK(!!obj);
+#ifdef _MSC_VER
+# pragma warning(push)
+# pragma warning(disable: 4800) // forcing value to bool 'true' or 'false' (performance warning) - we really want to just cast to bool instead of !!
+#endif
+
bool b1 = null, b2 = obj;
+#ifdef _MSC_VER
+# pragma warning(pop)
+#endif
+
CHECK(!b1);
CHECK(b2);