libomxil-bellagio: fix build with clang

This commit is contained in:
Alyssa Ross 2023-01-24 00:09:53 +00:00
parent 920a4e1340
commit d2952f9386

View File

@ -23,9 +23,9 @@ stdenv.mkDerivation rec {
doCheck = false; # fails
# Fix for #40213, probably permanent, because upstream doesn't seem to be
# developed anymore. Alternatively, gcc7Stdenv could be used.
NIX_CFLAGS_COMPILE = "-Wno-error=array-bounds -Wno-error=stringop-overflow=8";
NIX_CFLAGS_COMPILE =
if stdenv.cc.isGNU then "-Wno-error=array-bounds -Wno-error=stringop-overflow=8"
else "-Wno-error=absolute-value -Wno-error=enum-conversion -Wno-error=logical-not-parentheses -Wno-error=non-literal-null-conversion";
meta = with lib; {
homepage = "https://omxil.sourceforge.net/";