diff options
| author | Paul Eggert | 2011-04-01 19:02:18 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-04-01 19:02:18 -0700 |
| commit | 6abdaa4a9fff89473f0c577057680198613993b8 (patch) | |
| tree | 7352e1a41b22d8d37fa2831d1ebcc87c2cd5dc1c /src | |
| parent | 0ce7538dd218ee85ac22ab7a9f5aae87f34a5e26 (diff) | |
| download | emacs-6abdaa4a9fff89473f0c577057680198613993b8.tar.gz emacs-6abdaa4a9fff89473f0c577057680198613993b8.zip | |
* xselect.c (x_get_local_selection, x_handle_property_notify):
Remove vars that are set but not used.
(make_invisible_cursor): Initialize a possibly-uninitialized variable.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 6 | ||||
| -rw-r--r-- | src/xselect.c | 10 |
2 files changed, 9 insertions, 7 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 437924fe4a7..17cc06bfe32 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,6 +1,12 @@ | |||
| 1 | 2011-04-02 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | * xselect.c (x_get_local_selection, x_handle_property_notify): | ||
| 4 | Remove vars that are set but not used. | ||
| 5 | |||
| 1 | 2011-04-01 Paul Eggert <eggert@cs.ucla.edu> | 6 | 2011-04-01 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 7 | ||
| 3 | * xfns.c (x_create_tip_frame): Remove var that is set but not used. | 8 | * xfns.c (x_create_tip_frame): Remove var that is set but not used. |
| 9 | (make_invisible_cursor): Initialize a possibly-uninitialized variable. | ||
| 4 | 10 | ||
| 5 | * xterm.c (x_scroll_bar_to_input_event) [!USE_GTK]: | 11 | * xterm.c (x_scroll_bar_to_input_event) [!USE_GTK]: |
| 6 | Remove var that is set but not used. | 12 | Remove var that is set but not used. |
diff --git a/src/xselect.c b/src/xselect.c index 451b2a0b13f..430b7232659 100644 --- a/src/xselect.c +++ b/src/xselect.c | |||
| @@ -391,7 +391,7 @@ static Lisp_Object | |||
| 391 | x_get_local_selection (Lisp_Object selection_symbol, Lisp_Object target_type, int local_request) | 391 | x_get_local_selection (Lisp_Object selection_symbol, Lisp_Object target_type, int local_request) |
| 392 | { | 392 | { |
| 393 | Lisp_Object local_value; | 393 | Lisp_Object local_value; |
| 394 | Lisp_Object handler_fn, value, type, check; | 394 | Lisp_Object handler_fn, value, check; |
| 395 | int count; | 395 | int count; |
| 396 | 396 | ||
| 397 | local_value = assq_no_quit (selection_symbol, Vselection_alist); | 397 | local_value = assq_no_quit (selection_symbol, Vselection_alist); |
| @@ -469,7 +469,6 @@ x_get_local_selection (Lisp_Object selection_symbol, Lisp_Object target_type, in | |||
| 469 | check = value; | 469 | check = value; |
| 470 | if (CONSP (value) | 470 | if (CONSP (value) |
| 471 | && SYMBOLP (XCAR (value))) | 471 | && SYMBOLP (XCAR (value))) |
| 472 | type = XCAR (value), | ||
| 473 | check = XCDR (value); | 472 | check = XCDR (value); |
| 474 | 473 | ||
| 475 | if (STRINGP (check) | 474 | if (STRINGP (check) |
| @@ -1203,9 +1202,9 @@ wait_for_property_change (struct prop_location *location) | |||
| 1203 | void | 1202 | void |
| 1204 | x_handle_property_notify (XPropertyEvent *event) | 1203 | x_handle_property_notify (XPropertyEvent *event) |
| 1205 | { | 1204 | { |
| 1206 | struct prop_location *prev = 0, *rest = property_change_wait_list; | 1205 | struct prop_location *rest; |
| 1207 | 1206 | ||
| 1208 | while (rest) | 1207 | for (rest = property_change_wait_list; rest; rest = rest->next) |
| 1209 | { | 1208 | { |
| 1210 | if (!rest->arrived | 1209 | if (!rest->arrived |
| 1211 | && rest->property == event->atom | 1210 | && rest->property == event->atom |
| @@ -1226,9 +1225,6 @@ x_handle_property_notify (XPropertyEvent *event) | |||
| 1226 | 1225 | ||
| 1227 | return; | 1226 | return; |
| 1228 | } | 1227 | } |
| 1229 | |||
| 1230 | prev = rest; | ||
| 1231 | rest = rest->next; | ||
| 1232 | } | 1228 | } |
| 1233 | } | 1229 | } |
| 1234 | 1230 | ||