aboutsummaryrefslogtreecommitdiffstats
path: root/src/keyboard.c
diff options
context:
space:
mode:
authorPaul Eggert2016-07-20 10:31:33 +0200
committerPaul Eggert2016-07-20 10:32:24 +0200
commit3e71e4379ce7b53afe51ead4c94e6bb016bc6e7a (patch)
treef1a28805fc683c4b9cf712c73283ec4115fcdd75 /src/keyboard.c
parent63750fd4ed4ff8bb9b3ff8868d4e36e3422adb21 (diff)
downloademacs-3e71e4379ce7b53afe51ead4c94e6bb016bc6e7a.tar.gz
emacs-3e71e4379ce7b53afe51ead4c94e6bb016bc6e7a.zip
Work around GCC bug 54561 in a better way
The new approach is less selective, but also less intrusive on C code. * src/bytecode.c, src/image.c, src/keyboard.c: Ignore -Wclobbered. * src/conf_post.h (NONVOLATILE): Remove. All uses removed.
Diffstat (limited to 'src/keyboard.c')
-rw-r--r--src/keyboard.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/keyboard.c b/src/keyboard.c
index 653f52732a7..8901ff055e7 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -70,6 +70,11 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
70#include TERM_HEADER 70#include TERM_HEADER
71#endif /* HAVE_WINDOW_SYSTEM */ 71#endif /* HAVE_WINDOW_SYSTEM */
72 72
73/* Work around GCC bug 54561. */
74#if GNUC_PREREQ (4, 3, 0)
75# pragma GCC diagnostic ignored "-Wclobbered"
76#endif
77
73/* Variables for blockinput.h: */ 78/* Variables for blockinput.h: */
74 79
75/* Positive if interrupt input is blocked right now. */ 80/* Positive if interrupt input is blocked right now. */
@@ -2320,7 +2325,7 @@ read_char (int commandflag, Lisp_Object map,
2320 Lisp_Object prev_event, 2325 Lisp_Object prev_event,
2321 bool *used_mouse_menu, struct timespec *end_time) 2326 bool *used_mouse_menu, struct timespec *end_time)
2322{ 2327{
2323 Lisp_Object NONVOLATILE c; 2328 Lisp_Object c;
2324 ptrdiff_t jmpcount; 2329 ptrdiff_t jmpcount;
2325 sys_jmp_buf local_getcjmp; 2330 sys_jmp_buf local_getcjmp;
2326 sys_jmp_buf save_jump; 2331 sys_jmp_buf save_jump;