Makefile Suppress Deprecation Warnings

Ioi Lam ioi.lam at oracle.com
Mon Aug 13 02:54:35 UTC 2018


It would be helpful if you can provide information like:

+ Which version of the JDK repo are you using?

+ Which platform are you building?


The only case I found under the make/ directory is here in the latest repo:

http://hg.openjdk.java.net/jdk/jdk/file/b7eb9cc56277/make/autoconf/flags-cflags.m4#l553

but that seems to be for the clang compiler.

Older JDK sources look like this, which might apply to gcc on macos:

http://hg.openjdk.java.net/jdk/jdk10/file/7d286141598c/make/autoconf/flags.m4#l1110


- Ioi


On 8/12/18 7:11 PM, mr rupplin wrote:
> Where in the Makefile would we add this to silence to deprecated warnings from GCC compiler?
>
> -Wno-deprecated
>
> Who thought this would be fine?  To run this seem falty.  ok



More information about the core-libs-dev mailing list