From: Arnaud Giersch Date: Tue, 19 Nov 2013 07:33:42 +0000 (+0100) Subject: Enable warnings for C++, and stop hiding potential problems. X-Git-Tag: v3_11_beta~270 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/6aef63b1290da4be0e1e1d4ae05907d0d6884a2e Enable warnings for C++, and stop hiding potential problems. --- diff --git a/buildtools/Cmake/Flags.cmake b/buildtools/Cmake/Flags.cmake index 4ba193ef38..24c7c97673 100644 --- a/buildtools/Cmake/Flags.cmake +++ b/buildtools/Cmake/Flags.cmake @@ -19,6 +19,8 @@ if(enable_compile_warnings) endif() endif() + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra") + set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -Wall") # FIXME: Q&D hack set(CMAKE_JAVA_COMPILE_FLAGS "-Xlint")