]> 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)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 23 Aug 2024 20:51:02 +0000 (13:51 -0700)
* 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 5e0e0c013a4a4bf8758cf6826deecedd022ba0db..00db30f0782d157237fa1133aba58a88d266ced9 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-23  Bruno Haible  <bruno@clisp.org>
 
        host-cpu-c-abi: Update comment, working around FreeBSD breakage.
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
 
 /*