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.
This commit is contained in:
parent
67ee74f8e5
commit
7166737b5c
1 changed files with 8 additions and 0 deletions
|
@ -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. */
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue