Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
as linking may be done through c++, add flags to remove some old/new warnings to...
authorAugustin Degomme <augustin.degomme@imag.fr>
Fri, 27 Jun 2014 14:20:34 +0000 (16:20 +0200)
committerAugustin Degomme <augustin.degomme@imag.fr>
Fri, 27 Jun 2014 14:20:34 +0000 (16:20 +0200)
buildtools/Cmake/Flags.cmake

index a40d5ea..475da98 100644 (file)
@@ -19,7 +19,7 @@ if(enable_compile_warnings)
     endif()
   endif()
 
     endif()
   endif()
 
-  set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wno-unused-function -Wno-unused-parameter -Wno-strict-aliasing -Wno-format-nonliteral -Werror")
+  set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wno-unused-function -Wno-unused-parameter -Wno-strict-aliasing -Wclobbered -Wno-error=clobbered -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