Mercurial > hg > release > icedtea7-forest-2.3 > langtools
changeset 1294:4ccca0a55ed6 icedtea-2.3.1
PR1095: Allow -Werror to be turned off.
author | andrew |
---|---|
date | Wed, 22 Aug 2012 16:39:30 +0100 |
parents | 528ce55d1259 |
children | 0cf6181d44db |
files | make/Makefile make/build.properties |
diffstat | 2 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/make/Makefile Wed Aug 15 19:38:23 2012 +0100 +++ b/make/Makefile Wed Aug 22 16:39:30 2012 +0100 @@ -111,6 +111,12 @@ ANT_OPTIONS += -Ddebug.classfiles=true endif +ifeq ($(JAVAC_WARNINGS_FATAL), true) + ANT_OPTIONS += -Dwarnings.fatal=-Werror +else + ANT_OPTIONS += -Dwarnings.fatal= +endif + # Note: jdk/make/common/Defs.gmk uses LANGUAGE_VERSION (-source NN) # and the somewhat misnamed CLASS_VERSION (-target NN) ifdef TARGET_CLASS_VERSION
--- a/make/build.properties Wed Aug 15 19:38:23 2012 +0100 +++ b/make/build.properties Wed Aug 22 16:39:30 2012 +0100 @@ -68,7 +68,7 @@ # set the following to -version to verify the versions of javac being used javac.version.opt = # in time, there should be no exceptions to -Xlint:all -javac.lint.opts = -Xlint:all,-deprecation -Werror +javac.lint.opts = -Xlint:all,-deprecation ${warnings.fatal} # options for the <javadoc> task for javac #javadoc.jls3.url=http://java.sun.com/docs/books/jls/