Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
disable the same warnings in C++ than in C
[simgrid.git] / buildtools / Cmake / Flags.cmake
index 4ecae06..5e959e3 100644 (file)
@@ -19,7 +19,7 @@ if(enable_compile_warnings)
     endif()
   endif()
 
     endif()
   endif()
 
-  set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Werror")
+  set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wno-unused-function -Wno-unused-parameter -Wno-strict-aliasing -Wno-format-nonliteral -Werror")
 
   set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -Wall") # FIXME: Q&D hack
 
 
   set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -Wall") # FIXME: Q&D hack