Suppress unused variable warning when compiling without a window system.

This commit is contained in:
Daniel Colascione 2013-09-22 01:48:21 -08:00
parent 3e0b94e7ff
commit cd9356f211
2 changed files with 7 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2013-09-22 Daniel Colascione <dancol@dancol.org>
* xfns.c (x_get_monitor_attributes): Suppress unused variable
warning when compiling without a window system.
2013-09-22 Daniel Colascione <dancol@dancol.org>
* data.c (Qbool_vector_p): New symbol.

View file

@ -3949,6 +3949,8 @@ x_get_monitor_attributes (struct x_display_info *dpyinfo)
Lisp_Object attributes_list = Qnil;
Display *dpy = dpyinfo->display;
(void) dpy; /* Suppress unused variable warning. */
#ifdef HAVE_XRANDR
int xrr_event_base, xrr_error_base;
bool xrr_ok = false;