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,cast,classfile,dep-ann,divzero,empty,overloads,static,try,varargs -Werror |
30 JAVAC_WARNINGS := -Xlint:-unchecked,-deprecation,-overrides,auxiliaryclass,cast,classfile,dep-ann,divzero,empty,overloads,serial,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. |