mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-25 23:06:10 +01:00
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
This commit is contained in:
parent
9e2616aeac
commit
a8a6b3159d
@ -11,6 +11,7 @@
|
|||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
#pragma warning(push)
|
#pragma warning(push)
|
||||||
#pragma warning(disable:4389) // '==' : signed/unsigned mismatch
|
#pragma warning(disable:4389) // '==' : signed/unsigned mismatch
|
||||||
|
#pragma warning(disable:4312) // Converting int to T* using reinterpret_cast (issue on x64 platform)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <cstddef>
|
#include <cstddef>
|
||||||
|
Loading…
Reference in New Issue
Block a user