diff options
| author | Martin Hořeňovský | 2017-02-22 14:14:59 +0100 |
|---|---|---|
| committer | Martin Hořeňovský | 2017-02-22 14:14:59 +0100 |
| commit | a8a6b3159d84892edefd298dc2b6f40b859903f8 (patch) | |
| tree | 146f19d038fb0af3ee5230b07ec53970d682bba6 /include | |
| parent | 9e2616aeac483dee9ac2b8cda517591030749b24 (diff) | |
| download | catch3-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.hpp | 1 |
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> |