From: Arnaud Giersch Date: Thu, 31 Jan 2013 16:27:08 +0000 (+0100) Subject: Enable compile warnings for Java too. X-Git-Tag: v3_9_90~569^2~7 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/d601dbd71dbcb5b7e879a30bddfe963dc91082ed?ds=sidebyside Enable compile warnings for Java too. --- diff --git a/buildtools/Cmake/Flags.cmake b/buildtools/Cmake/Flags.cmake index e8e8401f00..28a0cb4014 100644 --- a/buildtools/Cmake/Flags.cmake +++ b/buildtools/Cmake/Flags.cmake @@ -19,6 +19,8 @@ if(enable_compile_warnings) endif() set(CMAKE_Fortran_FLAGS "-Wall") # FIXME: Q&D hack + + set(CMAKE_JAVA_COMPILE_FLAGS "-Xlint") endif() if(enable_compile_optimizations)