]> git.eshelyaron.com Git - emacs.git/commit
Pacify GCC 14 on recent read_char change
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 17 Aug 2024 18:09:17 +0000 (11:09 -0700)
committerEshel Yaron <me@eshelyaron.com>
Tue, 20 Aug 2024 14:11:02 +0000 (16:11 +0200)
commit6a63485ffb4b921205d7038d58d89ebbcd426159
tree9b6b24f94e4930cf1d3dc14b0089bcc445c143d5
parentad9a25d1871d21e432079a55e15310b00c70df7f
Pacify GCC 14 on recent read_char change

* src/keyboard.c (read_char): Initialize c_volatile before
calling setjmp.  Although not necessary for correctness,
and not needed for gcc 14.2.1 20240801 (Red Hat 14.2.1-1)
on x86-64 when built with --enable-gcc-warnings,
some GCC 14 x86-64 configurations issue a false positive
without this change.
Problem reported by Andrea Corallo in:
https://lists.gnu.org/r/emacs-devel/2024-08/msg00620.html
and fix suggested by Pip Cet in:
https://lists.gnu.org/r/emacs-devel/2024-08/msg00627.html

(cherry picked from commit 4f1987cf77bc8e0f0180a665b3cab732021e25ab)
src/keyboard.c