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

summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorLeitwolf112026-09-28 01:17:48 +0300
committerLeitwolf112026-09-28 01:17:48 +0300
commitbf6f0aba4b5fc4ee47a3dd99650993494b26e090 (patch)
treec63809525fd4f1b5beec6b4ceaa3638bbbc39f38 /src
parent97328fefe9650c84b594f1cea212c48562e1745b (diff)
downloadcatch3-bf6f0aba4b5fc4ee47a3dd99650993494b26e090.tar.gz
Fix macOS exit-guard error handling build
Diffstat (limited to 'src')
-rw-r--r--src/catch2/catch_session.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/catch2/catch_session.cpp b/src/catch2/catch_session.cpp
index 56612ba1..1c993ce1 100644
--- a/src/catch2/catch_session.cpp
+++ b/src/catch2/catch_session.cpp
@@ -237,7 +237,9 @@ namespace Catch {
int err = 0;
std::FILE* const file = openGuardFile( guardFilePath, err );
if ( file == nullptr ) {
+#if defined( _MSC_VER )
char msgBuffer[100] = {};
+#endif
std::string errMsg;
#if defined( _MSC_VER )
if ( !strerror_s( msgBuffer, err ) ) {