From: Martin Quinson Date: Wed, 29 Jun 2016 08:12:17 +0000 (+0200) Subject: disable the logging mechanism when doing SonarQube analysis X-Git-Tag: v3_14~837^2~1 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/cb983f6b7a34e03f968331478bab4d7304b065d5 disable the logging mechanism when doing SonarQube analysis --- 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