From 75f32855304ecf6306ee7060bb93c22220a8d202 Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Wed, 8 Nov 2023 18:58:03 -0500 Subject: [PATCH] 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. --- pkgs/development/tools/packcc/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/development/tools/packcc/default.nix b/pkgs/development/tools/packcc/default.nix index b16b0491c9b6..4f618665573c 100644 --- a/pkgs/development/tools/packcc/default.nix +++ b/pkgs/development/tools/packcc/default.nix @@ -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 = ''