diff mbox series

inetutils: Disable format-security warning as error with clang

Message ID 20260403023647.1190673-1-khem.raj@oss.qualcomm.com
State New
Headers show
Series inetutils: Disable format-security warning as error with clang | expand

Commit Message

Khem Raj April 3, 2026, 2:36 a.m. UTC
From: Khem Raj <raj.khem@gmail.com>

GCC treats returns from _() as special since they are checked by
msgfmt-c and it knows this can be ignored, clang however does
not have this construct [1] and with latest clang-22 finds more
warnings and since in OE we turn these warnings into errors the
build fails.

Given that this is an addressed case, let clang not treat these
warnings as errors, we still see the diagnostic we just don't
break the build.

[1] https://lists.gnu.org/archive/html/bug-gnulib/2026-01/msg00093.html

Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
---
 meta/recipes-connectivity/inetutils/inetutils_2.7.bb | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/meta/recipes-connectivity/inetutils/inetutils_2.7.bb b/meta/recipes-connectivity/inetutils/inetutils_2.7.bb
index 716174e299..e555e318a8 100644
--- a/meta/recipes-connectivity/inetutils/inetutils_2.7.bb
+++ b/meta/recipes-connectivity/inetutils/inetutils_2.7.bb
@@ -50,6 +50,8 @@  EXTRA_OECONF:append:libc-musl = " --with-path-utmpx=/dev/null/utmpx --with-path-
 EXTRA_OECONF:append = " --disable-rsh --disable-rshd --disable-rcp \
         --disable-rlogin --disable-rlogind --disable-rexec --disable-rexecd"
 
+SECURITY_STRINGFORMAT:remove:toolchain-clang = "-Werror=format-security"
+
 # The configure script guesses many paths in cross builds, check for this happening
 do_configure_cross_check() {
     if grep "may be incorrect because of cross-compilation" ${B}/config.log; then