summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorVladimír Čunát <vcunat@gmail.com>2018-02-10 12:06:02 +0100
committerVladimír Čunát <vcunat@gmail.com>2018-02-10 12:06:02 +0100
commit0a941e0b66ab86cf359d4f158bda86c9742c4b2b (patch)
tree746305dc3a020e8e46b892a89a23b694d3babbb9 /pkgs
parent5699a12b80c84af7474d7c83c2bbda5cd5df3f74 (diff)
downloadnixpkgs-0a941e0b66ab86cf359d4f158bda86c9742c4b2b.tar
nixpkgs-0a941e0b66ab86cf359d4f158bda86c9742c4b2b.tar.gz
nixpkgs-0a941e0b66ab86cf359d4f158bda86c9742c4b2b.tar.bz2
nixpkgs-0a941e0b66ab86cf359d4f158bda86c9742c4b2b.tar.lz
nixpkgs-0a941e0b66ab86cf359d4f158bda86c9742c4b2b.tar.xz
nixpkgs-0a941e0b66ab86cf359d4f158bda86c9742c4b2b.tar.zst
nixpkgs-0a941e0b66ab86cf359d4f158bda86c9742c4b2b.zip
treewide: avoid fatal warnings from gcc7
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/compilers/openjdk/7.nix5
-rw-r--r--pkgs/development/libraries/libwps/default.nix2
-rw-r--r--pkgs/development/libraries/usbredir/default.nix3
3 files changed, 8 insertions, 2 deletions
diff --git a/pkgs/development/compilers/openjdk/7.nix b/pkgs/development/compilers/openjdk/7.nix
index 372bb153269..13f8bcfdb1d 100644
--- a/pkgs/development/compilers/openjdk/7.nix
+++ b/pkgs/development/compilers/openjdk/7.nix
@@ -69,7 +69,10 @@ let
         fontconfig perl file bootjdk
       ];
 
-    NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-declarations";
+    NIX_CFLAGS_COMPILE = [
+      "-Wno-error=deprecated-declarations"
+      "-Wno-error=format-overflow" # newly detected by gcc7
+    ];
 
     NIX_LDFLAGS = if minimal then null else "-lfontconfig -lXcursor -lXinerama";
 
diff --git a/pkgs/development/libraries/libwps/default.nix b/pkgs/development/libraries/libwps/default.nix
index 73fe5b55ab4..37ff9d098c5 100644
--- a/pkgs/development/libraries/libwps/default.nix
+++ b/pkgs/development/libraries/libwps/default.nix
@@ -12,6 +12,8 @@ stdenv.mkDerivation rec {
   nativeBuildInputs = [ pkgconfig ];
   buildInputs = [ boost librevenge zlib ];
 
+  NIX_CFLAGS_COMPILE = [ "-Wno-error=implicit-fallthrough" ]; # newly detected by gcc-7
+
   meta = with stdenv.lib; {
     homepage = http://libwps.sourceforge.net/;
     description = "Microsoft Works document format import filter library";
diff --git a/pkgs/development/libraries/usbredir/default.nix b/pkgs/development/libraries/usbredir/default.nix
index 4735375de1f..507c494ea27 100644
--- a/pkgs/development/libraries/usbredir/default.nix
+++ b/pkgs/development/libraries/usbredir/default.nix
@@ -10,7 +10,8 @@ stdenv.mkDerivation rec {
   };
 
   # Works around bunch of "format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'uint64_t {aka long long unsigned int}'" warnings
-  NIX_CFLAGS_COMPILE = stdenv.lib.optionalString (!stdenv.is64bit) "-Wno-error=format";
+  NIX_CFLAGS_COMPILE = stdenv.lib.optional (!stdenv.is64bit) "-Wno-error=format"
+    ++ [ "-Wno-error=format-truncation" ]; # newly detected with gcc-7
 
   nativeBuildInputs = [ pkgconfig ];
   buildInputs = [ libusb ];