packcc: fix failing test due to clang 16

Downgrade -Wstrict-prototypes and -Wint-conversion to non-errors, so the
code_generation.d test does not fail unexpectedly.
This commit is contained in:
Randy Eckenrode 2023-11-08 18:58:03 -05:00
parent 3925a35d86
commit 75f3285530
No known key found for this signature in database
GPG key ID: 64C1CD4EC2A600D9

View file

@ -35,6 +35,8 @@ stdenv.mkDerivation rec {
# Disable a failing test.
rm -rf ../../tests/style.d
'' + lib.optionalString stdenv.cc.isClang ''
export NIX_CFLAGS_COMPILE+=' -Wno-error=strict-prototypes -Wno-error=int-conversion'
'';
installPhase = ''