From: Arnaud Giersch Date: Mon, 16 Oct 2017 19:49:06 +0000 (+0200) Subject: Sonar doesn't like #undef. X-Git-Tag: v3.18~438 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/8a114fef4e92f8f74493f72fc1dbac595a220724 Sonar doesn't like #undef. --- diff --git a/src/xbt/log.c b/src/xbt/log.c index ce083fbbf8..85e102be13 100644 --- a/src/xbt/log.c +++ b/src/xbt/log.c @@ -336,7 +336,7 @@ void xbt_log_postexit(void) log_cat_exit(&_XBT_LOGV(XBT_LOG_ROOT_CAT)); } - /* Size of the static string in which we build the log string */ +/* Size of the static string in which we build the log string */ #define XBT_LOG_STATIC_BUFFER_SIZE 2048 /* Minimum size of the dynamic string in which we build the log string (should be greater than XBT_LOG_STATIC_BUFFER_SIZE) */ @@ -391,9 +391,6 @@ void _xbt_log_event_log(xbt_log_event_t ev, const char *fmt, ...) } } -#undef XBT_LOG_DYNAMIC_BUFFER_SIZE -#undef XBT_LOG_STATIC_BUFFER_SIZE - /* NOTE: * * The standard logging macros use _XBT_LOG_ISENABLED, which calls _xbt_log_cat_init(). Thus, if we want to avoid an