Skip to content

Commit

Permalink
cdb: fix -Werror messages
Browse files Browse the repository at this point in the history
Who enabled -Werror? I want to do bad things to them!!
  • Loading branch information
Profpatsch committed Jan 9, 2025
1 parent bced68b commit aaff6cb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkgs/development/tools/database/cdb/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ stdenv.mkDerivation {
"out"
];

env.NIX_CFLAGS_COMPILE = toString [
"-Wno-error=implicit-int"
"-Wno-error=implicit-function-declaration"
];

postPatch = ''
# A little patch, borrowed from Archlinux AUR, borrowed from Gentoo Portage
sed -e 's/^extern int errno;$/#include <errno.h>/' -i error.h
Expand Down

0 comments on commit aaff6cb

Please sign in to comment.