]> git.eshelyaron.com Git - emacs.git/commitdiff
* keyboard.c (read_char): Make a var volatile so longjmp won't clobber
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 16 Apr 2011 20:27:04 +0000 (13:27 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 16 Apr 2011 20:27:04 +0000 (13:27 -0700)
it.

src/ChangeLog
src/keyboard.c

index d555e74c2197a513a7357d6c2b482d7e73186ffe..a2848ead2cc69dc792c67000ef346e5234d8c152 100644 (file)
@@ -1,5 +1,8 @@
 2011-04-16  Paul Eggert  <eggert@cs.ucla.edu>
 
+       * keyboard.c (read_char): Make a var volatile so longjmp won't clobber
+       it.
+
        * emacs.c (MAX_HEAP_BSS_DIFF, my_edata): Move to where they're used,
        so that we aren't warned about unused symbols.
 
index b2efadc851043725372747f470c03ad47e6ee6fa..c601649ebcae06473afc46ae60253448558fe038 100644 (file)
@@ -2259,7 +2259,7 @@ read_char (int commandflag, int nmaps, Lisp_Object *maps, Lisp_Object prev_event
   volatile Lisp_Object also_record;
   volatile int reread;
   struct gcpro gcpro1, gcpro2;
-  int polling_stopped_here = 0;
+  int volatile polling_stopped_here = 0;
   struct kboard *orig_kboard = current_kboard;
 
   also_record = Qnil;