From 7be258536ed8b90c307947d11852660666b2f811 Mon Sep 17 00:00:00 2001 From: Phil Nash Date: Mon, 14 Aug 2017 12:12:28 +0100 Subject: [PATCH] Suppress strncpy copy warnings on MSVC --- include/internal/catch_stringref.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/internal/catch_stringref.cpp b/include/internal/catch_stringref.cpp index a6389bd4..f6a1fc2a 100644 --- a/include/internal/catch_stringref.cpp +++ b/include/internal/catch_stringref.cpp @@ -11,6 +11,8 @@ #include #include +#define _CRT_SECURE_NO_WARNINGS // Suppress warnings from MSVC about strncpy not being secure + namespace Catch { auto getEmptyStringRef() -> StringRef {