* m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): Add -Wstringop-overflow=4. This option, when used with GCC 16, works with current Gnulib and with coreutils, so it seems like a good thing to add to the default list. --- ChangeLog | 8 ++++++++ m4/manywarnings.m4 | 1 + 2 files changed, 9 insertions(+)
diff --git a/ChangeLog b/ChangeLog index b72794c0f1..83c053b734 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2026-05-10 Paul Eggert <[email protected]> + + manywarnings: add -Wstringop-overflow=4 + * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): Add + -Wstringop-overflow=4. This option, when used with GCC 16, works + with current Gnulib and with coreutils, so it seems like a good + thing to add to the default list. + 2026-05-10 Paul Eggert <[email protected]> careadlinkat: pacify GCC 16 -flto diff --git a/m4/manywarnings.m4 b/m4/manywarnings.m4 index 6e08abd68f..ea0442d039 100644 --- a/m4/manywarnings.m4 +++ b/m4/manywarnings.m4 @@ -165,6 +165,7 @@ AC_DEFUN([gl_MANYWARN_ALL_GCC(C AS_VAR_APPEND([$1], [' -Wformat-truncation=2']) AS_VAR_APPEND([$1], [' -Wimplicit-fallthrough=5']) AS_VAR_APPEND([$1], [' -Wshift-overflow=2']) + AS_VAR_APPEND([$1], [' -Wstringop-overflow=4']) AS_VAR_APPEND([$1], [' -Wuse-after-free=3']) AS_VAR_APPEND([$1], [' -Wunused-const-variable=2']) AS_VAR_APPEND([$1], [' -Wvla-larger-than=4031']) -- 2.54.0
