diff options
| author | Paul Eggert | 2023-05-14 18:51:23 -0700 |
|---|---|---|
| committer | Paul Eggert | 2023-05-14 19:28:12 -0700 |
| commit | 4fedd5af4cc53666277fbcfc3417c0d7e3201c1d (patch) | |
| tree | 9121989cec9a47a530826106f0c8e8a94de3667e /src/buffer.c | |
| parent | 9eef5a678c3bb6a6248193524e67f7003f25f5af (diff) | |
| download | emacs-4fedd5af4cc53666277fbcfc3417c0d7e3201c1d.tar.gz emacs-4fedd5af4cc53666277fbcfc3417c0d7e3201c1d.zip | |
Work around GCC bug 109847 in buffer.c
* src/buffer.c: Ignore GCC 13+ -Wanalyzer-out-of-bounds.
Diffstat (limited to 'src/buffer.c')
| -rw-r--r-- | src/buffer.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/buffer.c b/src/buffer.c index 399460c47da..7951b7ac322 100644 --- a/src/buffer.c +++ b/src/buffer.c | |||
| @@ -50,6 +50,14 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */ | |||
| 50 | #include "w32heap.h" /* for mmap_* */ | 50 | #include "w32heap.h" /* for mmap_* */ |
| 51 | #endif | 51 | #endif |
| 52 | 52 | ||
| 53 | /* Work around GCC bug 109847 | ||
| 54 | https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109847 | ||
| 55 | which causes GCC to mistakenly complain about | ||
| 56 | AUTO_STRING with "*scratch*". */ | ||
| 57 | #if GNUC_PREREQ (13, 0, 0) | ||
| 58 | # pragma GCC diagnostic ignored "-Wanalyzer-out-of-bounds" | ||
| 59 | #endif | ||
| 60 | |||
| 53 | /* This structure holds the default values of the buffer-local variables | 61 | /* This structure holds the default values of the buffer-local variables |
| 54 | defined with DEFVAR_PER_BUFFER, that have special slots in each buffer. | 62 | defined with DEFVAR_PER_BUFFER, that have special slots in each buffer. |
| 55 | The default value occupies the same slot in this structure | 63 | The default value occupies the same slot in this structure |