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

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() {
}