mirror of
https://https.git.savannah.gnu.org/git/coreutils.git
synced 2026-01-26 15:29:07 +00:00
build: gnulib: avoid false -Wstringop-overflow warning
Tested on gcc 13.1.1 with: make CFLAGS='-O0 -ggdb' * configure.ac: Disable -Wstringop-overflow for gnulib. This warning is far too problematic in my experience: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88443 and triggers with gcc -O0 with versions 12,13 at least.
This commit is contained in:
parent
f218412b9a
commit
aed3b8190a
@ -261,6 +261,11 @@ if test $gl_gcc_warnings != no; then
|
||||
# FP in careadlinkat.c w/gcc 10.0.1 20200205
|
||||
gl_WARN_ADD([-Wno-return-local-addr])
|
||||
|
||||
# FIXME: remove this line when gcc improves
|
||||
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88443
|
||||
# FP wth -O0 in nstrftime.c w/gcc 12, and 13 at least
|
||||
gl_WARN_ADD([-Wno-stringop-overflow])
|
||||
|
||||
gl_MANYWARN_COMPLEMENT([GNULIB_WARN_CFLAGS], [$WARN_CFLAGS], [$nw])
|
||||
AC_SUBST([GNULIB_WARN_CFLAGS])
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user