gnu: openjdk10: Fix build with gcc-14.

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

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

View file

@ -1283,7 +1283,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")
(string-append "--with-freetype="
(assoc-ref inputs "freetype"))
"--disable-freetype-bundling"