summaryrefslogtreecommitdiff
path: root/lib-src
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2024-04-30 01:20:12 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2024-04-30 01:26:22 -0700
commitca4f0705be544986f11971bd8ee7dc30a8d444f1 (patch)
tree4a45cdc7d2d0be0dfa8fdf88efc5c94a75be2c1d /lib-src
parent7e2309c6fc67b8149cc4c75f8d7f5f93e60b86c7 (diff)
downloademacs-ca4f0705be544986f11971bd8ee7dc30a8d444f1.tar.gz
etags: work around GCC bug 114882
* 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.
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/etags.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib-src/etags.c b/lib-src/etags.c
index 57ffbce380c..84dfa527e98 100644
--- a/lib-src/etags.c
+++ b/lib-src/etags.c
@@ -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)