Fix 'defined but not used' warning

The warning occurred when !CATCH_CONFIG_WINDOWS_SEH
&& !CATCH_CONFIG_POSIX_SIGNALS.
This commit is contained in:
Tomas Zeman 2018-02-28 16:17:26 +01:00 committed by Martin Hořeňovský
parent 05cd05743a
commit 865d5f59b4
1 changed files with 4 additions and 0 deletions

View File

@ -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 {