diff --git a/src/knx/logger.cpp b/src/knx/logger.cpp index 5e0e0086..2aa5a9e0 100644 --- a/src/knx/logger.cpp +++ b/src/knx/logger.cpp @@ -9,6 +9,7 @@ void KnxLogger::log(const char* message, va_list& values) return; } printf(message, values); + // new line ! } void KnxLogger::setCallback(KnxLoggerCallback callback) diff --git a/src/knx/logger.h b/src/knx/logger.h index d2eafc86..118cb5fc 100644 --- a/src/knx/logger.h +++ b/src/knx/logger.h @@ -60,6 +60,9 @@ constexpr uint64_t KNX_LOG_MEM = 0x0012; constexpr uint64_t LOGLEVEL = KNX_LOG_LVL; constexpr uint64_t LOGAREAS = KNX_LOG_AREAS; + +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wc++17-extensions" template __attribute__((always_inline)) constexpr void KNX_LOG_TRACE(Args&&... args) { @@ -86,4 +89,5 @@ template { if constexpr((LOGLEVEL >= KNX_LOG_LVL_ERROR) && (x & LOGAREAS)) knxLogger.log(std::forward(args)...); -} \ No newline at end of file +} +#pragma GCC diagnostic pop \ No newline at end of file