From 865d5f59b49c3e823c471dc2022116a10f33b0c4 Mon Sep 17 00:00:00 2001 From: Tomas Zeman Date: Wed, 28 Feb 2018 16:17:26 +0100 Subject: [PATCH] Fix 'defined but not used' warning The warning occurred when !CATCH_CONFIG_WINDOWS_SEH && !CATCH_CONFIG_POSIX_SIGNALS. --- include/internal/catch_fatal_condition.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/internal/catch_fatal_condition.cpp b/include/internal/catch_fatal_condition.cpp index a356b7f5..ca72d980 100644 --- a/include/internal/catch_fatal_condition.cpp +++ b/include/internal/catch_fatal_condition.cpp @@ -17,6 +17,8 @@ # pragma GCC diagnostic ignored "-Wmissing-field-initializers" #endif +#if defined( CATCH_CONFIG_WINDOWS_SEH ) || defined( CATCH_CONFIG_POSIX_SIGNALS ) + namespace { // Report the error condition void reportFatal( char const * const message ) { @@ -24,6 +26,8 @@ namespace { } } +#endif // signals/SEH handling + #if defined( CATCH_CONFIG_WINDOWS_SEH ) namespace Catch {