Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/include/internal/catch_stringref.cpp
diff options
context:
space:
mode:
authorPhil Nash2017-08-14 12:12:28 +0100
committerPhil Nash2017-08-14 12:12:28 +0100
commit7be258536ed8b90c307947d11852660666b2f811 (patch)
tree0d24aa704b23094132aeb90a4ba10c99838aced1 /include/internal/catch_stringref.cpp
parent94d347b05939385a827499932f7b02ce7ccc9c45 (diff)
downloadcatch3-7be258536ed8b90c307947d11852660666b2f811.tar.gz
Suppress strncpy copy warnings on MSVC
Diffstat (limited to 'include/internal/catch_stringref.cpp')
-rw-r--r--include/internal/catch_stringref.cpp2
1 files changed, 2 insertions, 0 deletions
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 {