From: Daniel Colascione Date: Sun, 22 Sep 2013 09:48:21 +0000 (-0800) Subject: Suppress unused variable warning when compiling without a window system. X-Git-Tag: emacs-24.3.90~173^2^2~42^2~45^2~387^2~1482 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=cd9356f211b24948a934ce08b60f61301d866835;p=emacs.git Suppress unused variable warning when compiling without a window system. --- diff --git a/src/ChangeLog b/src/ChangeLog index 7c3a29c5d86..d679a0ae9c9 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2013-09-22 Daniel Colascione + + * xfns.c (x_get_monitor_attributes): Suppress unused variable + warning when compiling without a window system. + 2013-09-22 Daniel Colascione * data.c (Qbool_vector_p): New symbol. diff --git a/src/xfns.c b/src/xfns.c index 38aa5b3bbfe..2b895642942 100644 --- a/src/xfns.c +++ b/src/xfns.c @@ -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;