From aed3b8190aca198ac4ef7f7951ee67da61569598 Mon Sep 17 00:00:00 2001 From: =?utf8?q?P=C3=A1draig=20Brady?= Date: Thu, 18 May 2023 11:40:19 +0100 Subject: [PATCH] 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. --- configure.ac | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/configure.ac b/configure.ac index f61076d2b9..27e7431576 100644 --- a/configure.ac +++ b/configure.ac @@ -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]) -- 2.47.2