From 4daef1a332b32f250f84a5ce48ac3a9c5b0e8647 Mon Sep 17 00:00:00 2001 From: Konstantin LEONTEV Date: Thu, 10 Nov 2022 19:23:10 +0300 Subject: [PATCH] [bos #32517][EDF] Dynamic logging: Removed balanced (void)0 part from the macros, so they could be used without ; at the end. --- src/SALOMELocalTrace/utilities.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/SALOMELocalTrace/utilities.h b/src/SALOMELocalTrace/utilities.h index 52945c85d..aeea32f8d 100644 --- a/src/SALOMELocalTrace/utilities.h +++ b/src/SALOMELocalTrace/utilities.h @@ -105,23 +105,23 @@ // --- the following MACROS can be enabled in debug and release versions // --- by SALOME_VERBOSE environment variable -#define INFOS_COMPILATION if (SALOME::VerbosityActivated()) { MESS_BEGIN("COMPILED with ") << COMPILER \ +#define INFOS_COMPILATION { if (SALOME::VerbosityActivated()) { MESS_BEGIN("COMPILED with ") << COMPILER \ << ", " << __DATE__ \ - << " at " << __TIME__ << MESS_END } else (void)0 + << " at " << __TIME__ << MESS_END }} -#define MESSAGE(msg) if (SALOME::VerbosityActivated()) {MESS_BEGIN("- Trace ") << msg << MESS_END} else (void)0 -#define SCRUTE(var) if (SALOME::VerbosityActivated()) {MESS_BEGIN("- Trace ") << #var << "=" << var <