Unverified Commit 6ad78dd0 authored by dram's avatar dram Committed by GitHub
Browse files

libiscsi: Enable -Wno-error flags on riscv (#506988)

parents 5e11f7ac 93ad1fbc
Loading
Loading
Loading
Loading
+13 −10
Original line number Diff line number Diff line
@@ -23,7 +23,10 @@ stdenv.mkDerivation (finalAttrs: {

  nativeBuildInputs = [ autoreconfHook ];

  env = lib.optionalAttrs (stdenv.hostPlatform.is32bit || stdenv.hostPlatform.isDarwin) {
  env =
    lib.optionalAttrs
      (stdenv.hostPlatform.is32bit || stdenv.hostPlatform.isDarwin || stdenv.hostPlatform.isRiscV)
      {
        NIX_CFLAGS_COMPILE = toString [
          # iscsi-discard.c:223:57: error: format specifies type 'unsigned long' but the argument has type 'uint64_t' (aka 'unsigned long long') [-Werror,-Wformat]
          "-Wno-error=format"