etags: work around GCC bug 114882
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 30 Apr 2024 08:20:12 +0000 (01:20 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 30 Apr 2024 08:26:22 +0000 (01:26 -0700)
* lib-src/etags.c: Ignore -Wanalyzer-use-of-uninitialized-value.
This applies to the whole source file, not just to areas where GCC
has bugs, as it was too tricky to ignore more selectively.

lib-src/etags.c

index 57ffbce380c2e9129be0af30d2816eff074f34dd..84dfa527e986121e899aefc990944d53e2819e02 100644 (file)
@@ -143,6 +143,12 @@ University of California, as described above. */
 # define MERCURY_HEURISTICS_RATIO 0.5
 #endif
 
+/* Work around GCC bug 114882
+   <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114882>.  */
+#if GNUC_PREREQ (14, 0, 0)
+# pragma GCC diagnostic ignored "-Wanalyzer-use-of-uninitialized-value"
+#endif
+
 /* COPY to DEST from SRC (containing LEN bytes), and append a NUL byte.  */
 static void
 memcpyz (void *dest, void const *src, ptrdiff_t len)