mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-25 23:06:10 +01:00
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:
parent
4acc51828f
commit
ed4acded38
@ -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() {
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user