diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2023-05-14 18:51:22 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2023-05-14 19:28:11 -0700 |
commit | 7166737b5c928c82aedaa4946d6fb9cc50fae336 (patch) | |
tree | e6d85c0beba5d7ce0af4d4ea2dc6014270004840 | |
parent | 67ee74f8e55476a45db750f1e22903b218b04ab9 (diff) | |
download | emacs-7166737b5c928c82aedaa4946d6fb9cc50fae336.tar.gz |
Work around GCC bug 109577
* src/lisp.h (SAFE_ALLOCA_LISP_EXTRA):
Ignore -Wanalyzer-allocation-size, as it generates many
false alarms in GCC 13.
-rw-r--r-- | src/lisp.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lisp.h b/src/lisp.h index 72d2c1a8f91..8f7d44bfb0d 100644 --- a/src/lisp.h +++ b/src/lisp.h @@ -5399,6 +5399,14 @@ safe_free_unbind_to (specpdl_ref count, specpdl_ref sa_count, Lisp_Object val) return unbind_to (count, val); } +/* Work around GCC bug 109577 + https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109577 + which causes GCC to mistakenly complain about the + memory allocation in SAFE_ALLOCA_LISP_EXTRA. */ +#if GNUC_PREREQ (13, 0, 0) +# pragma GCC diagnostic ignored "-Wanalyzer-allocation-size" +#endif + /* Set BUF to point to an allocated array of NELT Lisp_Objects, immediately followed by EXTRA spare bytes. */ |