slurm-spank-x11: fix build with gcc-14 (#376980)

This commit is contained in:
Markus Kowalewski
2025-01-27 10:48:28 +01:00
committed by GitHub
@@ -17,6 +17,9 @@ stdenv.mkDerivation rec {
patches = [ ./hostlist.patch ];
# Required for build with gcc-14
env.NIX_CFLAGS_COMPILE = "-Wno-error=implicit-function-declaration";
buildPhase = ''
gcc -DX11_LIBEXEC_PROG="\"$out/bin/slurm-spank-x11\"" \
-g -o slurm-spank-x11 slurm-spank-x11.c