triggers bogus nonnull warnings treated as errors. noticed already by
icedtea (infra down):
http://openjdk.5641.n7.nabble.com/Bug-3838-New-IcedTea8-Bogus-Wnonnull-warning-on-Zero-builds-td463114.html
possibly caused by gcc 11 regression:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96003
--- /dev/null
+# DP: Turn off -Werror for hotspot, overwrites -fpermissive.
+
+--- a/hotspot/make/linux/makefiles/gcc.make
++++ b/hotspot/make/linux/makefiles/gcc.make
+@@ -202,7 +202,7 @@ else
+ endif
+
+ # Compiler warnings are treated as errors
+-WARNINGS_ARE_ERRORS = -Werror
++WARNINGS_ARE_ERRORS =
+
+ ifeq ($(USE_CLANG), true)
+ # However we need to clean the code up before we can unrestrictedly enable this option with Clang
Patch10: link-with-as-needed.patch
Patch11: aarch32.patch
Patch12: atomic.patch
Patch10: link-with-as-needed.patch
Patch11: aarch32.patch
Patch12: atomic.patch
+Patch13: hotspot-disable-werror.patch
URL: http://openjdk.java.net/
BuildRequires: /usr/bin/jar
BuildRequires: alsa-lib-devel
URL: http://openjdk.java.net/
BuildRequires: /usr/bin/jar
BuildRequires: alsa-lib-devel
%patch11 -p1
%patch12 -p1
%endif
%patch11 -p1
%patch12 -p1
%endif
%build
# Make sure we have /proc mounted - otherwise idlc will fail later.
%build
# Make sure we have /proc mounted - otherwise idlc will fail later.