Remove NDEBUG check

This commit is contained in:
Alexey Rybalchenko
2020-07-10 13:56:17 +02:00
parent 35ebc10204
commit ce64f628b0
3 changed files with 3 additions and 8 deletions

View File

@@ -13,10 +13,6 @@
#warning "The symbol 'DEBUG' is used in FairRoot Logger. undefining..."
#endif
#if !defined(FAIR_MIN_SEVERITY) && defined(NDEBUG)
#define FAIR_MIN_SEVERITY info
#endif
#ifdef FAIRLOGGER_USE_BOOST_PRETTY_FUNCTION
#include <boost/current_function.hpp>
#endif
@@ -324,7 +320,7 @@ class Logger
static bool fIsDestructed;
static struct DestructionHelper { ~DestructionHelper() { Logger::fIsDestructed = true; }} fDestructionHelper;
static bool constexpr SuppressSeverity(Severity sev)
static bool constexpr SuppressSeverity(Severity sev __attribute__((unused)))
{
#ifdef FAIR_MIN_SEVERITY
return sev < Severity::FAIR_MIN_SEVERITY;