]> Savannah Git Hosting - gnulib.git/commitdiff
manywarnings: enable some malloc warnings
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 2 Aug 2021 23:49:01 +0000 (16:49 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 2 Aug 2021 23:49:45 +0000 (16:49 -0700)
* m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Stop adding
-Wno-analyzer-double-free, -Wno-analyzer-null-dereference, and
-Wno-analyzer-use-after-free, as these false alarms don’t seem
to be as much of an issue now that we’ve pacified a couple
of individual modules and GCC has some bug fixes.

ChangeLog
m4/manywarnings.m4

index d4025b64e865ae5d24e76398b57d2a5e28cd5839..06f139a54e713ca706cc8b86addf7a9f06158ad1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2021-08-02  Paul Eggert  <eggert@cs.ucla.edu>
 
+       manywarnings: enable some malloc warnings
+       * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Stop adding
+       -Wno-analyzer-double-free, -Wno-analyzer-null-dereference, and
+       -Wno-analyzer-use-after-free, as these false alarms don’t seem
+       to be as much of an issue now that we’ve pacified a couple
+       of individual modules and GCC has some bug fixes.
+
        dfa: omit unneeded malloc+free
        Problem indirectly found by Coverity.
        * lib/dfa.c (enlistnew): New function, with most of the body of
index 611484f3133105dcd332f02955f864f4fa064f33..872ea58e62a77dada637919d7af50d113e08fe75 100644 (file)
@@ -1,4 +1,4 @@
-# manywarnings.m4 serial 22
+# manywarnings.m4 serial 23
 dnl Copyright (C) 2008-2021 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -195,15 +195,9 @@ AC_DEFUN([gl_MANYWARN_ALL_GCC(C)],
     gl_AS_VAR_APPEND([$1], [' -Wno-uninitialized'])
   fi
 
-  # Some warnings have too many false alarms in GCC 10.1.
-  # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93695
-  gl_AS_VAR_APPEND([$1], [' -Wno-analyzer-double-free'])
-  # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101713  (GCC 11.2.1)
+  # This warning have too many false alarms in GCC 11.2.1.
+  # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101713
   gl_AS_VAR_APPEND([$1], [' -Wno-analyzer-malloc-leak'])
-  # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94851
-  gl_AS_VAR_APPEND([$1], [' -Wno-analyzer-null-dereference'])
-  # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95758
-  gl_AS_VAR_APPEND([$1], [' -Wno-analyzer-use-after-free'])
 
   AC_LANG_POP([C])
 ])