coreutils: ignore format-security warnings on clang (#449474)

This commit is contained in:
K900
2025-10-07 16:02:58 +03:00
committed by GitHub
+3
View File
@@ -207,6 +207,9 @@ stdenv.mkDerivation rec {
# Work around a bogus warning in conjunction with musl.
++ optional stdenv.hostPlatform.isMusl "-Wno-error"
++ optional stdenv.hostPlatform.isAndroid "-D__USE_FORTIFY_LEVEL=0"
# gnulib does not consider Clang-specific warnings to be bugs:
# https://lists.gnu.org/r/bug-gnulib/2025-06/msg00325.html
++ optional stdenv.cc.isClang "-Wno-error=format-security"
);
# Works around a bug with 8.26: