mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-05 21:03:40 +00:00
libiscsi: Enable -Wno-error flags on riscv
The cast-align error also happens on riscv64. https://hydra.chir.rs/build/64483/nixlog/20/tail
This commit is contained in:
@@ -23,16 +23,19 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
|
||||
nativeBuildInputs = [ autoreconfHook ];
|
||||
|
||||
env = lib.optionalAttrs (stdenv.hostPlatform.is32bit || stdenv.hostPlatform.isDarwin) {
|
||||
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"
|
||||
# multithreading.c:257:16: error: 'sem_init' is deprecated [-Werror,-Wdeprecated-declarations]
|
||||
"-Wno-error=deprecated-declarations"
|
||||
# scsi-lowlevel.c:1244:11: error: cast from 'uint8_t *' (aka 'unsigned char *') to 'uint16_t *' (aka 'unsigned short *') increases required alignment from 1 to 2 [-Werror,-Wcast-align]
|
||||
"-Wno-error=cast-align"
|
||||
];
|
||||
};
|
||||
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"
|
||||
# multithreading.c:257:16: error: 'sem_init' is deprecated [-Werror,-Wdeprecated-declarations]
|
||||
"-Wno-error=deprecated-declarations"
|
||||
# scsi-lowlevel.c:1244:11: error: cast from 'uint8_t *' (aka 'unsigned char *') to 'uint16_t *' (aka 'unsigned short *') increases required alignment from 1 to 2 [-Werror,-Wcast-align]
|
||||
"-Wno-error=cast-align"
|
||||
];
|
||||
};
|
||||
|
||||
meta = {
|
||||
description = "iSCSI client library and utilities";
|
||||
|
||||
Reference in New Issue
Block a user