changeset 83077:40fd42596e17

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
author Karoly Lorentey <lorentey@elte.hu>
date Thu, 11 Mar 2004 02:31:12 +0000
parents 5eaa708b8d47
children fac24544c283
files src/keyboard.c
diffstat 1 files changed, 3 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- 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;