aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert2024-04-30 01:20:12 -0700
committerPaul Eggert2024-04-30 01:26:22 -0700
commitca4f0705be544986f11971bd8ee7dc30a8d444f1 (patch)
tree4a45cdc7d2d0be0dfa8fdf88efc5c94a75be2c1d
parent7e2309c6fc67b8149cc4c75f8d7f5f93e60b86c7 (diff)
downloademacs-ca4f0705be544986f11971bd8ee7dc30a8d444f1.tar.gz
emacs-ca4f0705be544986f11971bd8ee7dc30a8d444f1.zip
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.
-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. */
143# define MERCURY_HEURISTICS_RATIO 0.5 143# define MERCURY_HEURISTICS_RATIO 0.5
144#endif 144#endif
145 145
146/* Work around GCC bug 114882
147 <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114882>. */
148#if GNUC_PREREQ (14, 0, 0)
149# pragma GCC diagnostic ignored "-Wanalyzer-use-of-uninitialized-value"
150#endif
151
146/* COPY to DEST from SRC (containing LEN bytes), and append a NUL byte. */ 152/* COPY to DEST from SRC (containing LEN bytes), and append a NUL byte. */
147static void 153static void
148memcpyz (void *dest, void const *src, ptrdiff_t len) 154memcpyz (void *dest, void const *src, ptrdiff_t len)