Commit c43843aa authored by Paul Eggert's avatar Paul Eggert

Fix minor problems found by --enable-gcc-warnings.

* frame.c (Fhandle_focus_in, Fhandle_focus_out): Return a value.
* keyboard.c (kbd_buffer_get_event): Remove unused local.
parent 77aea2fb
2013-07-16 Paul Eggert <eggert@cs.ucla.edu>
Fix minor problems found by --enable-gcc-warnings.
* frame.c (Fhandle_focus_in, Fhandle_focus_out): Return a value.
* keyboard.c (kbd_buffer_get_event): Remove unused local.
2013-07-16 Jan Djärv <jan.h.d@swipnet.se>
* xterm.c (x_focus_changed): Always generate FOCUS_IN_EVENT.
......
......@@ -895,7 +895,7 @@ is not generated.
This function checks if blink-cursor timers should be turned on again. */)
(Lisp_Object event)
{
call0 (intern ("blink-cursor-check"));
return call0 (intern ("blink-cursor-check"));
}
DEFUN ("handle-focus-out", Fhandle_focus_out, Shandle_focus_out, 1, 1, "e",
......@@ -905,7 +905,7 @@ Focus out events occur when no frame has focus.
This function checks if blink-cursor timers should be turned off. */)
(Lisp_Object event)
{
call0 (intern ("blink-cursor-suspend"));
return call0 (intern ("blink-cursor-suspend"));
}
DEFUN ("handle-switch-frame", Fhandle_switch_frame, Shandle_switch_frame, 1, 1, "e",
......
......@@ -4092,7 +4092,7 @@ kbd_buffer_get_event (KBOARD **kbp,
#else
struct x_display_info *di;
#endif
Lisp_Object rest, frame = event->frame_or_window;
Lisp_Object frame = event->frame_or_window;
bool focused = false;
for (di = x_display_list; di && ! focused; di = di->next)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment