diff options
| author | Karoly Lorentey | 2004-03-11 02:31:12 +0000 |
|---|---|---|
| committer | Karoly Lorentey | 2004-03-11 02:31:12 +0000 |
| commit | 80d4c82434c43cec0d673aebce49d911b7ddfe87 (patch) | |
| tree | ba9ec160f6fd7e215e28c846933114b16ce55b5b /src | |
| parent | cd5355f9715629c7365bb313ef9fb1d209c35dec (diff) | |
| download | emacs-80d4c82434c43cec0d673aebce49d911b7ddfe87.tar.gz emacs-80d4c82434c43cec0d673aebce49d911b7ddfe87.zip | |
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
Diffstat (limited to 'src')
| -rw-r--r-- | src/keyboard.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/keyboard.c b/src/keyboard.c index 5e8397e7458..a6a30d3d675 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -1335,12 +1335,12 @@ command_loop_1 () | |||
| 1335 | Lisp_Object keybuf[30]; | 1335 | Lisp_Object keybuf[30]; |
| 1336 | int i; | 1336 | int i; |
| 1337 | int no_direct; | 1337 | int no_direct; |
| 1338 | int prev_modiff; | 1338 | int prev_modiff = 0; |
| 1339 | struct buffer *prev_buffer = NULL; | 1339 | struct buffer *prev_buffer = NULL; |
| 1340 | #ifdef MULTI_KBOARD | 1340 | #ifdef MULTI_KBOARD |
| 1341 | int was_locked = single_kboard; | 1341 | int was_locked = single_kboard; |
| 1342 | #endif | 1342 | #endif |
| 1343 | int already_adjusted; | 1343 | int already_adjusted = 0; |
| 1344 | 1344 | ||
| 1345 | current_kboard->Vprefix_arg = Qnil; | 1345 | current_kboard->Vprefix_arg = Qnil; |
| 1346 | current_kboard->Vlast_prefix_arg = Qnil; | 1346 | current_kboard->Vlast_prefix_arg = Qnil; |
| @@ -6610,9 +6610,8 @@ static int | |||
| 6610 | read_avail_input (expected) | 6610 | read_avail_input (expected) |
| 6611 | int expected; | 6611 | int expected; |
| 6612 | { | 6612 | { |
| 6613 | register int i; | ||
| 6614 | int nread = 0; | 6613 | int nread = 0; |
| 6615 | int err; | 6614 | int err = 0; |
| 6616 | struct display *d; | 6615 | struct display *d; |
| 6617 | 6616 | ||
| 6618 | /* Loop through the available displays, and call their input hooks. */ | 6617 | /* Loop through the available displays, and call their input hooks. */ |
| @@ -6623,7 +6622,6 @@ read_avail_input (expected) | |||
| 6623 | 6622 | ||
| 6624 | if (d->read_socket_hook) | 6623 | if (d->read_socket_hook) |
| 6625 | { | 6624 | { |
| 6626 | int discard = 0; | ||
| 6627 | int nr; | 6625 | int nr; |
| 6628 | 6626 | ||
| 6629 | struct input_event hold_quit; | 6627 | struct input_event hold_quit; |