From: Paul Eggert Date: Tue, 30 Apr 2024 08:20:12 +0000 (-0700) Subject: etags: work around GCC bug 114882 X-Git-Tag: archive/raspbian/1%30.1+1-3+rpi1^2~2^2~20^2~1724 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=ca4f0705be544986f11971bd8ee7dc30a8d444f1;p=emacs.git 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. --- 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 + . */ +#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)