Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
disable the logging mechanism when doing SonarQube analysis
authorMartin Quinson <martin.quinson@loria.fr>
Wed, 29 Jun 2016 08:12:17 +0000 (10:12 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Wed, 29 Jun 2016 08:12:24 +0000 (10:12 +0200)
include/xbt/log.h
sonar-project.properties

index 840bd7d..4c24f32 100644 (file)
@@ -22,8 +22,7 @@
  */
 
 /* XBT_LOG_MAYDAY: define this to replace the logging facilities with basic
  */
 
 /* 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_
 //#define XBT_LOG_MAYDAY
 
 #ifndef _XBT_LOG_H_
index 00c6270..e83783f 100644 (file)
@@ -31,5 +31,8 @@ sonar.sourceEncoding=UTF-8
 sonar.cpp.std=gnu++11
 sonar.c.std=gnu11
 
 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
 # Talk to me (travis don't like it, it's too much)
 # sonar.verbose=true