8030350: Enable additional compiler warnings for GCC
Reviewed-by: dholmes, coleenp, tbell, erikj, ihse
--- a/common/autoconf/generated-configure.sh Thu Feb 13 00:00:20 2014 +0100
+++ b/common/autoconf/generated-configure.sh Wed Feb 12 17:03:39 2014 -0800
@@ -4080,7 +4080,7 @@
#CUSTOM_AUTOCONF_INCLUDE
# Do not change or remove the following line, it is needed for consistency checks:
-DATE_WHEN_GENERATED=1392245654
+DATE_WHEN_GENERATED=1392253412
###############################################################################
#
@@ -41874,7 +41874,8 @@
#
case $COMPILER_NAME in
gcc )
- CCXXFLAGS_JDK="$CCXXFLAGS $CCXXFLAGS_JDK -W -Wall -Wno-unused -Wno-parentheses \
+ # these options are used for both C and C++ compiles
+ CCXXFLAGS_JDK="$CCXXFLAGS $CCXXFLAGS_JDK -Wall -Wno-parentheses -Wextra -Wno-unused -Wno-unused-parameter -Wformat=2 \
-pipe \
-D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE"
case $OPENJDK_TARGET_CPU_ARCH in
--- a/common/autoconf/toolchain.m4 Thu Feb 13 00:00:20 2014 +0100
+++ b/common/autoconf/toolchain.m4 Wed Feb 12 17:03:39 2014 -0800
@@ -898,7 +898,8 @@
#
case $COMPILER_NAME in
gcc )
- CCXXFLAGS_JDK="$CCXXFLAGS $CCXXFLAGS_JDK -W -Wall -Wno-unused -Wno-parentheses \
+ # these options are used for both C and C++ compiles
+ CCXXFLAGS_JDK="$CCXXFLAGS $CCXXFLAGS_JDK -Wall -Wno-parentheses -Wextra -Wno-unused -Wno-unused-parameter -Wformat=2 \
-pipe \
-D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE"
case $OPENJDK_TARGET_CPU_ARCH in