Progmasoft Git

catch3

Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.

Clonegit clone https://git.progmasoft.com/catch3

Suppress strncpy copy warnings on MSVC

Commit
7be258536ed8b90c307947d11852660666b2f811
Author
Phil Nash ·
Parents
94d347b05939

Files · Download .tar.gz

Changes

 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 <ostream>
 #include <cassert>
 
+#define _CRT_SECURE_NO_WARNINGS // Suppress warnings from MSVC about strncpy not being secure
+
 namespace Catch {
 
     auto getEmptyStringRef() -> StringRef {