coreutils: ignore format-security warnings on clang

As raised by https://lists.gnu.org/r/bug-gnulib/2025-06/msg00325.html
and https://lists.gnu.org/r/bug-gnulib/2025-06/msg00327.html on the
upstream mailing list, gnulib does not consider clang-specific warnings
to be bugs.
GCC itself works around present instances of this warning by treating
gettext as a built-in.
This commit is contained in:
Niklas Korz
2025-10-07 13:14:28 +02:00
parent a51905a613
commit fdf2edc775
+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: