diff options
author | Chris Packham <judge.packham@gmail.com> | 2024-10-06 16:16:08 +1300 |
---|---|---|
committer | Chris Packham <judge.packham@gmail.com> | 2024-10-15 14:22:17 +1300 |
commit | 8c1cdb94c1bd8a98337d6cfb5f94b4fef911a785 (patch) | |
tree | 2dd7c2df8b3927373c6de59fcb99dba495edada3 | |
parent | d428028db0a45d9d7351720a60f72a141df457c0 (diff) | |
download | crosstool-ng-8c1cdb94c1bd8a98337d6cfb5f94b4fef911a785.tar.gz crosstool-ng-8c1cdb94c1bd8a98337d6cfb5f94b4fef911a785.tar.bz2 crosstool-ng-8c1cdb94c1bd8a98337d6cfb5f94b4fef911a785.zip |
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 <judge.packham@gmail.com>
-rw-r--r-- | config/libc/glibc.in | 4 |
1 files 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. |