diff options
author | Vladimír Čunát <vcunat@gmail.com> | 2018-08-10 17:53:27 +0200 |
---|---|---|
committer | Vladimír Čunát <vcunat@gmail.com> | 2018-08-10 18:41:07 +0200 |
commit | 7b3036a4a2117378b199ab700c4ece2393a83df8 (patch) | |
tree | 99346b428abb9a8e4aa55849c4880d0272abad60 | |
parent | 46e52576705576c5c2e88a8fc77769d1fd682a8f (diff) | |
download | nixlib-7b3036a4a2117378b199ab700c4ece2393a83df8.tar nixlib-7b3036a4a2117378b199ab700c4ece2393a83df8.tar.gz nixlib-7b3036a4a2117378b199ab700c4ece2393a83df8.tar.bz2 nixlib-7b3036a4a2117378b199ab700c4ece2393a83df8.tar.lz nixlib-7b3036a4a2117378b199ab700c4ece2393a83df8.tar.xz nixlib-7b3036a4a2117378b199ab700c4ece2393a83df8.tar.zst nixlib-7b3036a4a2117378b199ab700c4ece2393a83df8.zip |
gdbm: avoid a warning on Darwin
This is just to minimize rebuilds. The actual bugfix doesn't seem to hurry, as the function has been returning void until now, so if the int returned isn't a meaningful value in some cases, nothing should happen yet.
-rw-r--r-- | pkgs/development/libraries/gdbm/default.nix | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/development/libraries/gdbm/default.nix b/pkgs/development/libraries/gdbm/default.nix index ecab75fb0ea9..bbebcca6e2f0 100644 --- a/pkgs/development/libraries/gdbm/default.nix +++ b/pkgs/development/libraries/gdbm/default.nix @@ -2,6 +2,8 @@ stdenv.mkDerivation rec { name = "gdbm-1.17"; + # FIXME: remove on update to > 1.17 + NIX_CFLAGS_COMPILE = if stdenv.cc.isClang then "-Wno-error=return-type" else null; src = fetchurl { url = "mirror://gnu/gdbm/${name}.tar.gz"; |