From 41f52f8a0578715ba2e9efdfb8c657d0fcbabb45 Mon Sep 17 00:00:00 2001 From: FliegendeWurst <2012gdwu+github@posteo.de> Date: Wed, 27 Nov 2024 08:55:49 +0100 Subject: [PATCH] openjdk8: fix build with GCC 14 --- pkgs/development/compilers/openjdk/generic.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/compilers/openjdk/generic.nix b/pkgs/development/compilers/openjdk/generic.nix index b18e9679c107..43ce3e68612d 100644 --- a/pkgs/development/compilers/openjdk/generic.nix +++ b/pkgs/development/compilers/openjdk/generic.nix @@ -443,6 +443,11 @@ stdenv.mkDerivation (finalAttrs: { "-std=gnu++98" "-Wno-error" ] + ++ [ + # error by default in GCC 14 + "-Wno-error=int-conversion" + "-Wno-error=incompatible-pointer-types" + ] ); NIX_LDFLAGS = lib.concatStringsSep " " (