--- old/buildSrc/linux.gradle 2015-05-28 14:22:53.903480578 -0400 +++ new/buildSrc/linux.gradle 2015-05-28 14:22:53.799480579 -0400 @@ -42,13 +42,21 @@ // A set of common parameters to use for both compiling and linking def commonFlags = [ - "-fno-strict-aliasing", "-fPIC", "-fno-omit-frame-pointer", // optimization flags - "-W", "-Wall", "-Wno-unused", "-Wno-parentheses", "-Werror=implicit-function-declaration"] // warning flags + "-fno-strict-aliasing", "-fPIC", "-fno-omit-frame-pointer" // optimization flags + ] if (!IS_64) { commonFlags += "-m32" } +if (!IS_DEBUG_NATIVE) { + commonFlags += "-Wextra" + commonFlags += "-Wall" + commonFlags += "-Wno-unused" + commonFlags += "-Wno-parentheses" + commonFlags += "-Werror=implicit-function-declaration" +} + // Specify the compilation parameters and link parameters def ccFlags = [ commonFlags, "-I$JDK_HOME/include", "-I$JDK_HOME/include/linux", "-c",