RFR: [8u] Build failed on Ubuntu 18.04 due to deprecated-declarations warnings

Jie Fu fujie at loongson.cn
Tue Mar 19 12:25:51 UTC 2019


Hi all,

To fix build failures caused by deprecated-declarations warnings, can we 
make this change to jdk8u?
------------------------------------------
diff -r 6e2900603bc6 make/linux/makefiles/gcc.make
--- a/make/linux/makefiles/gcc.make     Mon Mar 18 08:33:53 2019 +0100
+++ b/make/linux/makefiles/gcc.make     Tue Mar 19 20:20:17 2019 +0800
@@ -209,6 +209,8 @@
    WARNINGS_ARE_ERRORS += -Wno-switch 
-Wno-tautological-constant-out-of-range-compare -Wno-tautological-compare
    WARNINGS_ARE_ERRORS += -Wno-delete-non-virtual-dtor -Wno-deprecated 
-Wno-format -Wno-dynamic-class-memaccess
    WARNINGS_ARE_ERRORS += -Wno-return-type -Wno-empty-body
+else
+  WARNINGS_ARE_ERRORS += -Wno-deprecated-declarations
  endif

  WARNING_FLAGS = -Wpointer-arith -Wsign-compare -Wundef 
-Wunused-function -Wunused-value
------------------------------------------

Thanks a lot.

Best regards,
Jie




More information about the jdk8u-dev mailing list