]> git.ipfire.org Git - thirdparty/gnulib.git/commitdiff
manywarnings: add -Wstringop-overflow=4
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 10 May 2026 20:52:28 +0000 (13:52 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 10 May 2026 22:56:14 +0000 (15:56 -0700)
* 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
m4/manywarnings.m4

index b72794c0f1eaa27bd00863077953bcf08138849e..83c053b734d027ceeb3d63480bdcc0a838949f4b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2026-05-10  Paul Eggert  <eggert@cs.ucla.edu>
+
+       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  <eggert@cs.ucla.edu>
 
        careadlinkat: pacify GCC 16 -flto
index 6e08abd68fb17a93429609ac0fec372728e90da8..ea0442d0396f755439f47bed462726a28fd1c996 100644 (file)
@@ -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'])