OpenJDK / jdk9 / jdk9
changeset 969:3a5d5a168722
8030350: Enable additional compiler warnings for GCC
Reviewed-by: dholmes, coleenp, tbell, erikj, ihse
author | mduigou |
---|---|
date | Wed, 12 Feb 2014 17:03:39 -0800 |
parents | 16d312a2fcac |
children | 26ce5b43f3de |
files | common/autoconf/generated-configure.sh common/autoconf/toolchain.m4 |
diffstat | 2 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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