usbredir: Fix ARM build

The error from -Wformat happens on all 32-bit plaforms, not just i686.
This commit is contained in:
Tuomas Tynkkynen 2017-11-22 19:36:37 +02:00
parent f689a6d1c6
commit 3b21645529

View File

@ -10,7 +10,7 @@ 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.isi686 "-Wno-error=format";
NIX_CFLAGS_COMPILE = stdenv.lib.optionalString (!stdenv.is64bit) "-Wno-error=format";
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ libusb ];