From 3a52b520c9ddcde14d805c5b40947a92f7ddba38 Mon Sep 17 00:00:00 2001 From: neargye Date: Sun, 24 Jan 2021 08:39:43 +0200 Subject: [PATCH] fix #31 --- include/nameof.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/nameof.hpp b/include/nameof.hpp index 9f21306..b7f4616 100644 --- a/include/nameof.hpp +++ b/include/nameof.hpp @@ -66,6 +66,8 @@ #elif defined(_MSC_VER) # pragma warning(push) # pragma warning(disable : 26495) // Variable 'cstring::chars_' is uninitialized. +# pragma warning(disable : 28020) // Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. +# pragma warning(disable : 26451) // The expression '0<=_Param_(1)&&_Param_(1)<=1-1' is not true at this call. #endif // Checks nameof_type compiler compatibility.