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
Fix macOS exit-guard error handling build
- Commit
bf6f0aba4b5fc4ee47a3dd99650993494b26e090- Author
- Leitwolf11 ·
- Parents
97328fefe965
Changes
src/catch2/catch_session.cpp | 2 ++ 1 file changed, 2 insertions(+) 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 ) ) {