From 6b043475f6e870c9abec0cc41761ecc2a6fb4b47 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sat, 2 Apr 2011 00:34:01 -0700 Subject: [PATCH] * keyboard.c (timer_check_2): Mark vars as initialized. --- src/ChangeLog | 1 + src/keyboard.c | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 269ab7cf785..15ad975eff5 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -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. diff --git a/src/keyboard.c b/src/keyboard.c index 8f3db9a8c4f..f38c1c88a7e 100644 --- a/src/keyboard.c +++ b/src/keyboard.c @@ -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)) -- 2.39.2