* keyboard.c (timer_check_2): Mark vars as initialized.
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 2 Apr 2011 07:34:01 +0000 (00:34 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 2 Apr 2011 07:34:01 +0000 (00:34 -0700)
src/ChangeLog
src/keyboard.c

index 269ab7c..15ad975 100644 (file)
@@ -3,6 +3,7 @@
        * keyboard.c (menu_bar_items, read_char_minibuf_menu_prompt):
        Remove vars that are set but not used.
        (timer_check_2): Don't assume timer-list and idle-timer-list are lists.
+       (timer_check_2): Mark vars as initialized.
 
        * gtkutil.c (xg_get_file_with_chooser): Mark var as initialized.
 
index 8f3db9a..f38c1c8 100644 (file)
@@ -4233,7 +4233,8 @@ static EMACS_TIME
 timer_check_2 (void)
 {
   EMACS_TIME nexttime;
-  EMACS_TIME now, idleness_now;
+  EMACS_TIME now;
+  EMACS_TIME idleness_now IF_LINT (= {0});
   Lisp_Object timers, idle_timers, chosen_timer;
   struct gcpro gcpro1, gcpro2, gcpro3;
 
@@ -4270,7 +4271,9 @@ timer_check_2 (void)
       Lisp_Object *vector;
       Lisp_Object timer = Qnil, idle_timer = Qnil;
       EMACS_TIME timer_time, idle_timer_time;
-      EMACS_TIME difference, timer_difference, idle_timer_difference;
+      EMACS_TIME difference;
+      EMACS_TIME timer_difference IF_LINT (= {0});
+      EMACS_TIME idle_timer_difference IF_LINT (= {0});
 
       /* Skip past invalid timers and timers already handled.  */
       if (CONSP (timers))