gnu: openjdk11: Fix build with gcc-14.

* gnu/packages/java.scm (openjdk11)[arguments]<#:phases>: Add
-Wno-error=int-conversion to with-extra-cflags.

Change-Id: I2facc12357b6fe4ace42c6a6369ea106df2d982f
This commit is contained in:
Zheng Junjie 2025-06-22 21:57:04 +08:00 committed by Andreas Enge
parent 0cbc920900
commit 0c151438dc
No known key found for this signature in database
GPG key ID: F7D5C9BF765C61E3

View file

@ -1356,7 +1356,9 @@ new Date();"))
;; Add flags for compilation with gcc >= 10.
#$(string-append "--with-extra-cflags=-fcommon"
" -fno-delete-null-pointer-checks"
" -fno-lifetime-dse")
" -fno-lifetime-dse"
;; flags for compilation with gcc >= 14.
" -Wno-error=int-conversion")
;; Otherwise, the '--enable-fast-install' causes an error.
"--disable-option-checking"
"--disable-warnings-as-errors"