jdk/make/Setup.gmk
changeset 22567 5816a47fa4dd
parent 22284 b2b1848b52ab
child 22584 eed64ee05369
equal deleted inserted replaced
22566:4ebe53dd7814 22567:5816a47fa4dd
     1 #
     1 #
     2 # Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
     2 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
     3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4 #
     4 #
     5 # This code is free software; you can redistribute it and/or modify it
     5 # This code is free software; you can redistribute it and/or modify it
     6 # under the terms of the GNU General Public License version 2 only, as
     6 # under the terms of the GNU General Public License version 2 only, as
     7 # published by the Free Software Foundation.  Oracle designates this
     7 # published by the Free Software Foundation.  Oracle designates this
    25 
    25 
    26 DISABLE_WARNINGS := -Xlint:all,-deprecation,-unchecked,-rawtypes,-cast,-serial,-dep-ann,-static,-fallthrough,-try,-varargs,-empty,-finally
    26 DISABLE_WARNINGS := -Xlint:all,-deprecation,-unchecked,-rawtypes,-cast,-serial,-dep-ann,-static,-fallthrough,-try,-varargs,-empty,-finally
    27 
    27 
    28 # To build with all warnings enabled, do the following:
    28 # To build with all warnings enabled, do the following:
    29 # make JAVAC_WARNINGS="-Xlint:all -Xmaxwarns 10000"
    29 # make JAVAC_WARNINGS="-Xlint:all -Xmaxwarns 10000"
    30 JAVAC_WARNINGS := -Xlint:-unchecked,-deprecation,-overrides,auxiliaryclass,classfile,dep-ann,divzero,empty,overloads,try,varargs -Werror
    30 JAVAC_WARNINGS := -Xlint:-unchecked,-deprecation,-overrides,auxiliaryclass,classfile,dep-ann,divzero,empty,overloads,static,try,varargs -Werror
    31 
    31 
    32 # Any java code executed during a JDK build to build other parts of the JDK must be 
    32 # Any java code executed during a JDK build to build other parts of the JDK must be 
    33 # executed by the bootstrap JDK (probably with -Xbootclasspath/p: ) and for this 
    33 # executed by the bootstrap JDK (probably with -Xbootclasspath/p: ) and for this 
    34 # purpose must be built with -target PREVIOUS for bootstrapping purposes, which 
    34 # purpose must be built with -target PREVIOUS for bootstrapping purposes, which 
    35 # requires restricting to language level and api of previous JDK.
    35 # requires restricting to language level and api of previous JDK.