aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2011-04-02 00:34:01 -0700
committerPaul Eggert2011-04-02 00:34:01 -0700
commit6b043475f6e870c9abec0cc41761ecc2a6fb4b47 (patch)
tree6ff2f3a7ba478a68892c9198a2c4a18cf29aeef4 /src
parent8d84a6ebe09bb9e7850f471054cafeeceee55e3c (diff)
downloademacs-6b043475f6e870c9abec0cc41761ecc2a6fb4b47.tar.gz
emacs-6b043475f6e870c9abec0cc41761ecc2a6fb4b47.zip
* keyboard.c (timer_check_2): Mark vars as initialized.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog1
-rw-r--r--src/keyboard.c7
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 @@
3 * keyboard.c (menu_bar_items, read_char_minibuf_menu_prompt): 3 * keyboard.c (menu_bar_items, read_char_minibuf_menu_prompt):
4 Remove vars that are set but not used. 4 Remove vars that are set but not used.
5 (timer_check_2): Don't assume timer-list and idle-timer-list are lists. 5 (timer_check_2): Don't assume timer-list and idle-timer-list are lists.
6 (timer_check_2): Mark vars as initialized.
6 7
7 * gtkutil.c (xg_get_file_with_chooser): Mark var as initialized. 8 * gtkutil.c (xg_get_file_with_chooser): Mark var as initialized.
8 9
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
4233timer_check_2 (void) 4233timer_check_2 (void)
4234{ 4234{
4235 EMACS_TIME nexttime; 4235 EMACS_TIME nexttime;
4236 EMACS_TIME now, idleness_now; 4236 EMACS_TIME now;
4237 EMACS_TIME idleness_now IF_LINT (= {0});
4237 Lisp_Object timers, idle_timers, chosen_timer; 4238 Lisp_Object timers, idle_timers, chosen_timer;
4238 struct gcpro gcpro1, gcpro2, gcpro3; 4239 struct gcpro gcpro1, gcpro2, gcpro3;
4239 4240
@@ -4270,7 +4271,9 @@ timer_check_2 (void)
4270 Lisp_Object *vector; 4271 Lisp_Object *vector;
4271 Lisp_Object timer = Qnil, idle_timer = Qnil; 4272 Lisp_Object timer = Qnil, idle_timer = Qnil;
4272 EMACS_TIME timer_time, idle_timer_time; 4273 EMACS_TIME timer_time, idle_timer_time;
4273 EMACS_TIME difference, timer_difference, idle_timer_difference; 4274 EMACS_TIME difference;
4275 EMACS_TIME timer_difference IF_LINT (= {0});
4276 EMACS_TIME idle_timer_difference IF_LINT (= {0});
4274 4277
4275 /* Skip past invalid timers and timers already handled. */ 4278 /* Skip past invalid timers and timers already handled. */
4276 if (CONSP (timers)) 4279 if (CONSP (timers))