From cb983f6b7a34e03f968331478bab4d7304b065d5 Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Wed, 29 Jun 2016 10:12:17 +0200 Subject: [PATCH] disable the logging mechanism when doing SonarQube analysis --- include/xbt/log.h | 3 +-- sonar-project.properties | 3 +++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/include/xbt/log.h b/include/xbt/log.h index 840bd7d7e1..4c24f32120 100644 --- a/include/xbt/log.h +++ b/include/xbt/log.h @@ -22,8 +22,7 @@ */ /* XBT_LOG_MAYDAY: define this to replace the logging facilities with basic - printf function. Useful to debug the logging facilities themselves */ -#undef XBT_LOG_MAYDAY + printf function. Useful to debug the logging facilities themselves, or to not make source analysis tools mad */ //#define XBT_LOG_MAYDAY #ifndef _XBT_LOG_H_ diff --git a/sonar-project.properties b/sonar-project.properties index 00c62705ab..e83783f37f 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -31,5 +31,8 @@ sonar.sourceEncoding=UTF-8 sonar.cpp.std=gnu++11 sonar.c.std=gnu11 +# Disable the whole logging mechanism during SonarQube analysis +sonar.cfamily.predefinedMacros=XBT_LOG_MAYDAY + # Talk to me (travis don't like it, it's too much) # sonar.verbose=true -- 2.20.1