# HG changeset patch # User Karoly Lorentey # Date 1078972272 0 # Node ID 40fd42596e179c8665b9bebc02a5f6216df0a783 # Parent 5eaa708b8d47d626be0c8d9dc9ff9051804ac542 Fixed compiler warnings for keyboard.c. src/keyboard.c (command_loop_1): Initialize already_adjusted and prev_modiff. (read_avail_input): Removed obsolete local variables. Initialize err. git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-117 diff -r 5eaa708b8d47 -r 40fd42596e17 src/keyboard.c --- a/src/keyboard.c Thu Mar 11 01:55:50 2004 +0000 +++ b/src/keyboard.c Thu Mar 11 02:31:12 2004 +0000 @@ -1335,12 +1335,12 @@ Lisp_Object keybuf[30]; int i; int no_direct; - int prev_modiff; + int prev_modiff = 0; struct buffer *prev_buffer = NULL; #ifdef MULTI_KBOARD int was_locked = single_kboard; #endif - int already_adjusted; + int already_adjusted = 0; current_kboard->Vprefix_arg = Qnil; current_kboard->Vlast_prefix_arg = Qnil; @@ -6610,9 +6610,8 @@ read_avail_input (expected) int expected; { - register int i; int nread = 0; - int err; + int err = 0; struct display *d; /* Loop through the available displays, and call their input hooks. */ @@ -6623,7 +6622,6 @@ if (d->read_socket_hook) { - int discard = 0; int nr; struct input_event hold_quit;