Merge pull request #311810 from ExpidusOS/fix/llvm/libomxil-bellagio

libomxil-bellagio: fix compiling with llvm

authored by Pol Dellaiera and committed by GitHub 2b789f60 318ef286

+3 -1
+3 -1
pkgs/development/libraries/libomxil-bellagio/default.nix
··· 35 35 env.NIX_CFLAGS_COMPILE = 36 36 # stringop-truncation: see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1028978 37 37 if stdenv.cc.isGNU then "-Wno-error=array-bounds -Wno-error=stringop-overflow=8 -Wno-error=stringop-truncation" 38 - else "-Wno-error=absolute-value -Wno-error=enum-conversion -Wno-error=logical-not-parentheses -Wno-error=non-literal-null-conversion"; 38 + else let 39 + isLLVM17 = stdenv.cc.bintools.isLLVM && lib.versionAtLeast stdenv.cc.bintools.version "17"; 40 + in "-Wno-error=absolute-value -Wno-error=enum-conversion -Wno-error=logical-not-parentheses -Wno-error=non-literal-null-conversion${lib.optionalString (isLLVM17) " -Wno-error=unused-but-set-variable"}"; 39 41 40 42 meta = with lib; { 41 43 homepage = "https://omxil.sourceforge.net/";