1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-31 09:20:54 -08:00

* xterm.c (x_iconify_frame, x_free_frame_resources): Don't declare locals

unless they are used.
This commit is contained in:
Paul Eggert 2011-03-08 23:11:42 -08:00
parent 2b07bcffb0
commit ed7bf3a5ee
2 changed files with 7 additions and 1 deletions

View file

@ -8,6 +8,8 @@
(x_calc_absolute_position): Now static.
(XTread_socket): Don't define label "out" unless it's used.
Don't declare local "event" unless it's used.
(x_iconify_frame, x_free_frame_resources): Don't declare locals
unless they are used.
* xfaces.c (clear_face_cache, Fx_list_fonts, Fface_font): Rename
or move locals to avoid shadowing.

View file

@ -9166,7 +9166,9 @@ x_make_frame_invisible (struct frame *f)
void
x_iconify_frame (struct frame *f)
{
#ifdef USE_X_TOOLKIT
int result;
#endif
Lisp_Object type;
/* Don't keep the highlight on an invisible frame. */
@ -9293,9 +9295,11 @@ void
x_free_frame_resources (struct frame *f)
{
struct x_display_info *dpyinfo = FRAME_X_DISPLAY_INFO (f);
Mouse_HLInfo *hlinfo = &dpyinfo->mouse_highlight;
#ifdef USE_X_TOOLKIT
Lisp_Object bar;
struct scroll_bar *b;
Mouse_HLInfo *hlinfo = &dpyinfo->mouse_highlight;
#endif
BLOCK_INPUT;