]> Savannah Git Hosting - gnulib.git/commitdiff
diffseq: port to GCC 14.2.1 in ‘patch’
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 23 Aug 2024 20:50:32 +0000 (13:50 -0700)
committerBruno Haible <bruno@clisp.org>
Tue, 17 Sep 2024 12:42:40 +0000 (14:42 +0200)
* lib/diffseq.h: Also suppress -Wanalyzer-use-of-uninitialized-value.
This fixes an unwanted diagnostic when compiling GNU ‘patch’
with gcc (GCC) 14.2.1 20240801 (Red Hat 14.2.1-1) x86-64.

ChangeLog
lib/diffseq.h

index 042d29a82f93dbebf85f07e4850d7e7660f95b10..df74aab4cf37bd41bcd733850f45fe44ce59e56a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2024-08-23  Paul Eggert  <eggert@cs.ucla.edu>
+
+       diffseq: port to GCC 14.2.1 in ‘patch’
+       * lib/diffseq.h: Also suppress -Wanalyzer-use-of-uninitialized-value.
+       This fixes an unwanted diagnostic when compiling GNU ‘patch’
+       with gcc (GCC) 14.2.1 20240801 (Red Hat 14.2.1-1) x86-64.
+
 2024-08-21  Paul Eggert  <eggert@cs.ucla.edu>
 
        mcel: port to uClibc-ng
index 0c5bc9cbc6da69e56f5bbbca3d7b472d57c76af8..362df177afc12a385c16aefd50998f8ea33711d3 100644 (file)
 #endif
 
 /* Suppress gcc's "...may be used before initialized" warnings,
-   generated by GCC versions up to at least GCC 13.2.  */
-#if __GNUC__ + (__GNUC_MINOR__ >= 7) > 4
+   generated by GCC versions up to at least GCC 14.2.
+   Likewise for gcc -fanalyzer's "use of uninitialized value" warnings.  */
+#if 4 <= __GNUC__ + (7 <= __GNUC_MINOR__)
 # pragma GCC diagnostic push
 # pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
+# if 13 <= __GNUC__
+#  pragma GCC diagnostic ignored "-Wanalyzer-use-of-uninitialized-value"
+# endif
 #endif
 
 /*