about summary refs log tree commit diff
path: root/pkgs/development/libraries/json-c
diff options
context:
space:
mode:
authorVladimír Čunát <vcunat@gmail.com>2017-11-12 12:34:53 +0100
committerVladimír Čunát <vcunat@gmail.com>2017-11-12 12:36:30 +0100
commit9e7021c97d9a3bb5901fb397385c66f9308dd2d1 (patch)
tree87737cb2ce08a2a6666dae984b80c0e1e3d57e87 /pkgs/development/libraries/json-c
parentc65c1f64341d985d8b7fe02cd41164e380133dd5 (diff)
json-c*: fixup build with gcc-7 (ignore warning)
Diffstat (limited to 'pkgs/development/libraries/json-c')
-rw-r--r--pkgs/development/libraries/json-c/0.11.nix3
-rw-r--r--pkgs/development/libraries/json-c/default.nix3
2 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/development/libraries/json-c/0.11.nix b/pkgs/development/libraries/json-c/0.11.nix
index 029921ee08c0b..8c4eab9ede6e1 100644
--- a/pkgs/development/libraries/json-c/0.11.nix
+++ b/pkgs/development/libraries/json-c/0.11.nix
@@ -6,6 +6,9 @@ stdenv.mkDerivation rec {
     url    = "https://github.com/json-c/json-c/archive/json-c-0.11-20130402.tar.gz";
     sha256 = "1m8fy7lbahv1r7yqbhw4pl057sxmmgjihm1fsvc3h66710s2i24r";
   };
+
+  NIX_CFLAGS_COMPILE = [ "-Wno-error=implicit-fallthrough" ];
+
   meta = with stdenv.lib; {
     description = "A JSON implementation in C";
     homepage    = https://github.com/json-c/json-c/wiki;
diff --git a/pkgs/development/libraries/json-c/default.nix b/pkgs/development/libraries/json-c/default.nix
index b8c72d9669e07..7317efc53f862 100644
--- a/pkgs/development/libraries/json-c/default.nix
+++ b/pkgs/development/libraries/json-c/default.nix
@@ -11,6 +11,9 @@ stdenv.mkDerivation rec {
 
   nativeBuildInputs = [ autoreconfHook ]; # won't configure without it, no idea why
 
+  # probably OK after update: https://github.com/json-c/json-c/pull/365
+  NIX_CFLAGS_COMPILE = [ "-Wno-error=implicit-fallthrough" ];
+
   # compatibility hack (for mypaint at least)
   postInstall = ''
     ln -s json-c.pc "$dev/lib/pkgconfig/json.pc"