From a8a6b3159d84892edefd298dc2b6f40b859903f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Ho=C5=99e=C5=88ovsk=C3=BD?= Date: Wed, 22 Feb 2017 14:14:59 +0100 Subject: [PATCH] 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 --- include/internal/catch_evaluate.hpp | 1 + 1 file changed, 1 insertion(+) 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