From 8c1cdb94c1bd8a98337d6cfb5f94b4fef911a785 Mon Sep 17 00:00:00 2001 From: Chris Packham Date: Sun, 6 Oct 2024 16:16:08 +1300 Subject: [PATCH] glibc: Turn implicit-int back into warning As of GCC14 implicit-int has been upgraded to an error. While this is generally a good idea it trips up some older code (particularly in autoconf generated configure scripts). Add -Wno-implicit-int to CFLAGS for glibc when using an old GLIBC with a new GCC. Fixes #2208 Signed-off-by: Chris Packham --- config/libc/glibc.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/libc/glibc.in b/config/libc/glibc.in index 16ffe4ed..8f1e0672 100644 --- a/config/libc/glibc.in +++ b/config/libc/glibc.in @@ -197,8 +197,8 @@ config GLIBC_ENABLE_DEBUG config GLIBC_EXTRA_CFLAGS string prompt "extra target CFLAGS" - default "-Wno-missing-attributes -Wno-array-bounds -Wno-array-parameter -Wno-stringop-overflow -Wno-maybe-uninitialized" if GLIBC_2_29_or_older && GCC_11_or_later - default "" + default "-Wno-missing-attributes -Wno-array-bounds -Wno-array-parameter -Wno-stringop-overflow -Wno-maybe-uninitialized" if GLIBC_2_29_or_older && GCC_11_or_later && !GCC_14_or_later + default "-Wno-missing-attributes -Wno-array-bounds -Wno-array-parameter -Wno-stringop-overflow -Wno-maybe-uninitialized -Wno-implicit-int" if GLIBC_2_29_or_older && GCC_14_or_later help Extra target CFLAGS to use when building.