Don't define tryTranslators function if exception are disabled

"-Wunused-function -Wall" produces if this function is defined when exceptions are disabled
This commit is contained in:
Vitalii Trubchaninov 2023-07-31 14:26:03 -04:00 committed by Martin Hořeňovský
parent 4acc51828f
commit ed4acded38
1 changed files with 2 additions and 0 deletions

View File

@ -15,6 +15,7 @@
namespace Catch {
#if !defined(CATCH_CONFIG_DISABLE_EXCEPTIONS)
namespace {
static std::string tryTranslators(
std::vector<
@ -28,6 +29,7 @@ namespace Catch {
}
}
#endif //!defined(CATCH_CONFIG_DISABLE_EXCEPTIONS)
ExceptionTranslatorRegistry::~ExceptionTranslatorRegistry() {
}