1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-04 08:47:11 +00:00

Pacify gcc -Wunused-variable

* src/frame.c (Fset_mouse_position, Fset_mouse_pixel_position)
(Fset_frame_position): Always use xval, yval.  Simplify #if nesting.
This commit is contained in:
Paul Eggert 2020-08-06 19:11:58 -07:00
parent 874e0e7323
commit 74606481c2

View File

@ -2565,21 +2565,18 @@ before calling this function on it, like this.
if (FRAME_WINDOW_P (XFRAME (frame)))
/* Warping the mouse will cause enternotify and focus events. */
frame_set_mouse_position (XFRAME (frame), xval, yval);
#else
#if defined (MSDOS)
#elif defined MSDOS
if (FRAME_MSDOS_P (XFRAME (frame)))
{
Fselect_frame (frame, Qnil);
mouse_moveto (xval, yval);
}
#elif defined HAVE_GPM
Fselect_frame (frame, Qnil);
term_mouse_moveto (xval, yval);
#else
#ifdef HAVE_GPM
{
Fselect_frame (frame, Qnil);
term_mouse_moveto (xval, yval);
}
#endif
#endif
(void) xval;
(void) yval;
#endif
return Qnil;
@ -2606,21 +2603,18 @@ before calling this function on it, like this.
if (FRAME_WINDOW_P (XFRAME (frame)))
/* Warping the mouse will cause enternotify and focus events. */
frame_set_mouse_pixel_position (XFRAME (frame), xval, yval);
#else
#if defined (MSDOS)
#elif defined MSDOS
if (FRAME_MSDOS_P (XFRAME (frame)))
{
Fselect_frame (frame, Qnil);
mouse_moveto (xval, yval);
}
#elif defined HAVE_GPM
Fselect_frame (frame, Qnil);
term_mouse_moveto (xval, yval);
#else
#ifdef HAVE_GPM
{
Fselect_frame (frame, Qnil);
term_mouse_moveto (xval, yval);
}
#endif
#endif
(void) xval;
(void) yval;
#endif
return Qnil;
@ -3657,6 +3651,9 @@ bottom edge of FRAME's display. */)
#ifdef HAVE_WINDOW_SYSTEM
if (FRAME_TERMINAL (f)->set_frame_offset_hook)
FRAME_TERMINAL (f)->set_frame_offset_hook (f, xval, yval, 1);
#else
(void) xval;
(void) yval;
#endif
}