diff options
author | Vladimír Čunát <vcunat@gmail.com> | 2018-02-10 12:06:02 +0100 |
---|---|---|
committer | Vladimír Čunát <vcunat@gmail.com> | 2018-02-10 12:06:02 +0100 |
commit | 0a941e0b66ab86cf359d4f158bda86c9742c4b2b (patch) | |
tree | 746305dc3a020e8e46b892a89a23b694d3babbb9 /pkgs/development/libraries/usbredir | |
parent | 5699a12b80c84af7474d7c83c2bbda5cd5df3f74 (diff) |
treewide: avoid fatal warnings from gcc7
Diffstat (limited to 'pkgs/development/libraries/usbredir')
-rw-r--r-- | pkgs/development/libraries/usbredir/default.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/development/libraries/usbredir/default.nix b/pkgs/development/libraries/usbredir/default.nix index 4735375de1f91..507c494ea27d7 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 ]; |