Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
With Icc, change bogus error into warning.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Tue, 5 Feb 2019 14:28:52 +0000 (15:28 +0100)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Tue, 5 Feb 2019 14:28:55 +0000 (15:28 +0100)
src/xbt/mallocator.c(49): error #2330: argument of type "atomic_flag *" is incompatible with parameter of type "volatile void *" (dropping qualifiers)
     atomic_flag_clear(&m->lock);
     ^

tools/cmake/Flags.cmake

index c067fd1..1d3262b 100644 (file)
@@ -26,7 +26,8 @@ if(enable_compile_warnings)
     # 3179: deprecated conversion of string literal to char* (should be const char*)
     # 191: type qualifier is meaningless on cast type
     # 597: entity-kind "entity" will not be called for implicit or explicit conversions
-    set(warnCFLAGS "${warnCFLAGS} -wd1418 -wd191 -wd3179 -ww597")
+    # 2330: argument of type "type" is incompatible with parameter of type "type" (dropping qualifiers)
+    set(warnCFLAGS "${warnCFLAGS} -wd1418 -wd191 -wd3179 -ww597 -ww2330")
   endif()
 
   set(warnCXXFLAGS "${warnCFLAGS} -Wall -Wextra -Wunused -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wcomment -Wformat -Wwrite-strings -Wno-unused-function -Wno-unused-parameter -Wno-strict-aliasing")