diff options
| author | Paul Eggert | 2024-02-17 23:48:20 -0800 |
|---|---|---|
| committer | Paul Eggert | 2024-02-18 00:38:15 -0800 |
| commit | 659770fdf535ca683a97d965d2e4ed0f9f321145 (patch) | |
| tree | 1fc7731b3e31bea9fe0c5bc7e5569b9ea94eea35 /src | |
| parent | 42c6cf4e5804312defa9d9caac8882500bd38179 (diff) | |
| download | emacs-659770fdf535ca683a97d965d2e4ed0f9f321145.tar.gz emacs-659770fdf535ca683a97d965d2e4ed0f9f321145.zip | |
Do not ignore -Wanalyzer-allocation-size in GCC 14
* src/lisp.h (SAFE_ALLOCA_LISP_EXTRA): Use pragma to ignore the
warning only in GCC 13, as the GCC developers say GCC bug 109577
is fixed in GCC 14.
Diffstat (limited to 'src')
| -rw-r--r-- | src/lisp.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lisp.h b/src/lisp.h index bf96bfd39f7..79a6a054b81 100644 --- a/src/lisp.h +++ b/src/lisp.h | |||
| @@ -5525,7 +5525,7 @@ safe_free_unbind_to (specpdl_ref count, specpdl_ref sa_count, Lisp_Object val) | |||
| 5525 | https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109577 | 5525 | https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109577 |
| 5526 | which causes GCC to mistakenly complain about the | 5526 | which causes GCC to mistakenly complain about the |
| 5527 | memory allocation in SAFE_ALLOCA_LISP_EXTRA. */ | 5527 | memory allocation in SAFE_ALLOCA_LISP_EXTRA. */ |
| 5528 | #if GNUC_PREREQ (13, 0, 0) | 5528 | #if GNUC_PREREQ (13, 0, 0) && !GNUC_PREREQ (14, 0, 0) |
| 5529 | # pragma GCC diagnostic ignored "-Wanalyzer-allocation-size" | 5529 | # pragma GCC diagnostic ignored "-Wanalyzer-allocation-size" |
| 5530 | #endif | 5530 | #endif |
| 5531 | 5531 | ||