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 authored and Martin Hořeňovský committed 2023-08-04 15:28:55 +02:00
1 parent 4acc51828f
commit ed4acded38
1 file changed
+2
@@ -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() {
}