Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorMartin Hořeňovský2017-02-22 14:14:59 +0100
committerMartin Hořeňovský2017-02-22 14:14:59 +0100
commita8a6b3159d84892edefd298dc2b6f40b859903f8 (patch)
tree146f19d038fb0af3ee5230b07ec53970d682bba6 /include
parent9e2616aeac483dee9ac2b8cda517591030749b24 (diff)
downloadcatch3-a8a6b3159d84892edefd298dc2b6f40b859903f8.tar.gz
Disabled C4312 in the evaluate layer
We reinterpret cast int to T* (because someone might compare 0 to a ptr), which causes 4312 to fire when x64 platform is set. Fixes #148
Diffstat (limited to 'include')
-rw-r--r--include/internal/catch_evaluate.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/internal/catch_evaluate.hpp b/include/internal/catch_evaluate.hpp
index b2f47cdd..87fcc17f 100644
--- a/include/internal/catch_evaluate.hpp
+++ b/include/internal/catch_evaluate.hpp
@@ -11,6 +11,7 @@
#ifdef _MSC_VER
#pragma warning(push)
#pragma warning(disable:4389) // '==' : signed/unsigned mismatch
+#pragma warning(disable:4312) // Converting int to T* using reinterpret_cast (issue on x64 platform)
#endif
#include <cstddef>