From 17c9570bd000caaa9c1b422e7283504ec0abc288 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-No=C3=ABl=20Grad?= <jgrad@icp.uni-stuttgart.de> Date: Thu, 4 May 2023 18:41:47 +0200 Subject: [PATCH] Fix compiler errors when logging is disabled --- src/core/logging/Logging.h | 12 ++++++------ src/core/logging/Tracing.h | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/core/logging/Logging.h b/src/core/logging/Logging.h index de8aa91d8..e891ecf5d 100644 --- a/src/core/logging/Logging.h +++ b/src/core/logging/Logging.h @@ -654,7 +654,7 @@ public: }\ } #else -#define WALBERLA_LOG_INFO(msg) (void(0)) +#define WALBERLA_LOG_INFO(msg) (void(0)); #endif #ifdef WALBERLA_LOGLEVEL_INFO #define WALBERLA_LOG_INFO_ON_ROOT(msg){\ @@ -666,7 +666,7 @@ public: }}\ } #else -#define WALBERLA_LOG_INFO_ON_ROOT(msg) (void(0)) +#define WALBERLA_LOG_INFO_ON_ROOT(msg) (void(0)); #endif ////////////// @@ -682,7 +682,7 @@ public: }\ } #else -#define WALBERLA_LOG_PROGRESS(msg) (void(0)) +#define WALBERLA_LOG_PROGRESS(msg) (void(0)); #endif #ifdef WALBERLA_LOGLEVEL_PROGRESS #define WALBERLA_LOG_PROGRESS_ON_ROOT(msg){\ @@ -694,7 +694,7 @@ public: }}\ } #else -#define WALBERLA_LOG_PROGRESS_ON_ROOT(msg) (void(0)) +#define WALBERLA_LOG_PROGRESS_ON_ROOT(msg) (void(0)); #endif //////////// @@ -710,7 +710,7 @@ public: }\ } #else -#define WALBERLA_LOG_DETAIL(msg) (void(0)) +#define WALBERLA_LOG_DETAIL(msg) (void(0)); #endif #ifdef WALBERLA_LOGLEVEL_DETAIL #define WALBERLA_LOG_DETAIL_ON_ROOT(msg){\ @@ -722,7 +722,7 @@ public: }}\ } #else -#define WALBERLA_LOG_DETAIL_ON_ROOT(msg) (void(0)) +#define WALBERLA_LOG_DETAIL_ON_ROOT(msg) (void(0)); #endif ///////////// diff --git a/src/core/logging/Tracing.h b/src/core/logging/Tracing.h index 7d5a4633a..1a4ee2f05 100644 --- a/src/core/logging/Tracing.h +++ b/src/core/logging/Tracing.h @@ -38,7 +38,7 @@ #ifdef WALBERLA_LOGLEVEL_TRACING # define WALBERLA_TRACE_IN walberla::logging::Tracer walberlaTracingObject( __FUNCTION__, __FILE__, __LINE__ ) #else -# define WALBERLA_TRACE_IN (void(0)) +# define WALBERLA_TRACE_IN (void(0)); #endif -- GitLab