RFR [XXS] : JDK-8081616: build fixes for --disable-warnings-as-errors

Bertrand Delsart bertrand.delsart at oracle.com
Mon Jun 1 17:23:10 UTC 2015

Hi all,

A small open webrev to fix some issues around 
--disable-warnings-as-errors (this is not a full cleanup):


Without the fix, -Werror is used to compiled native JDK libraries even 
when the --disable-warnings-as-errors is used.

A lot of these libs are addressed by clearing CFLAGS_WARNINGS_ARE_ERRORS 
in flags.m4

Lib-jdk.sctp.gmk is a special case because it uses directly -Werror. 
Instead of modifying SCTP to use CFLAGS_WARNINGS_ARE_ERRORS, I use the 
mechanism put in place in that file to disable -Werror and control it 
through the WARNINGS_AS_ERRORS configured value.

Best regards,


Bertrand Delsart,                     Grenoble Engineering Center
Oracle,         180 av. de l'Europe,          ZIRST de Montbonnot
38330 Montbonnot Saint Martin,                             FRANCE
bertrand.delsart at oracle.com             Phone : +33 4 76 18 81 23

NOTICE: This email message is for the sole use of the intended
recipient(s) and may contain confidential and privileged
information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the intended recipient,
please contact the sender by reply email and destroy all copies of
the original message.

More information about the build-dev mailing list