]> Savannah Git Hosting - gnulib.git/commitdiff
savedir: work around GCC bug 113963
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 18 Feb 2024 05:07:33 +0000 (21:07 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 18 Feb 2024 05:07:33 +0000 (21:07 -0800)
* lib/savedir.c: Ignore -Wanalyzer-malloc-leak and
-Wanalyzer-null-dereference.

ChangeLog
lib/savedir.c

index 250db951e551e92e276ecd8100b4a7e24254ff2d..4680deb9db0536f76de41724ab306c6c76515ca6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2024-02-17  Paul Eggert  <eggert@cs.ucla.edu>
 
+       savedir: work around GCC bug 113963
+       * lib/savedir.c: Ignore -Wanalyzer-malloc-leak and
+       -Wanalyzer-null-dereference.
+
        Solaris EOL update
        * doc/solaris-versions: Solaris 11.4 EOL update.  Also mention 11.3.
 
index ca53bed7368808c74e4638696a86b43f54588cfd..80049ca1def46d7bfc712dcca862d96efb9ff74b 100644 (file)
 #include "attribute.h"
 #include "xalloc.h"
 
+/* Pacify GCC bug <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113963>.  */
+#if 13 <= __GNUC__
+# pragma GCC diagnostic ignored "-Wanalyzer-malloc-leak"
+# pragma GCC diagnostic ignored "-Wanalyzer-null-dereference"
+#endif
+
 typedef struct
 {
   /* Offset of file name in name_space.  */