Merge pull request #37891 from dtzWill/fix/usbredir-werror

usbredir: -Wno-error
This commit is contained in:
Will Dietz 2018-03-26 16:34:16 -05:00 committed by GitHub
commit 69cdf22aef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,9 +9,7 @@ stdenv.mkDerivation rec {
sha256 = "1wsnmk4wjpdhbn1zaxg6bmyxspcki2zgy0am9lk037rnl4krwzj0";
};
# 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.optional (!stdenv.is64bit) "-Wno-error=format"
++ [ "-Wno-error=format-truncation" ]; # newly detected with gcc-7
NIX_CFLAGS_COMPILE = [ "-Wno-error" ];
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ libusb ];