aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert2020-01-01 01:03:14 +0000
committerPaul Eggert2020-01-01 01:03:14 +0000
commit186152ba400b58d2d278c52d2e3d896decae767e (patch)
tree950dd9d9433c8459bb9277ab765341cecfea08c7
parent4cd143aded5e40fe801575c669dd464210caaf7e (diff)
downloademacs-186152ba400b58d2d278c52d2e3d896decae767e.tar.gz
emacs-186152ba400b58d2d278c52d2e3d896decae767e.zip
Pacify gcc -Wunused-function on Ubuntu 18.04.3
This improves on 2019-12-25T20:01:07Z!eggert@cs.ucla.edu, by fixing a GCC warning on Ubuntu 18.04.3 “‘x_get_net_workarea’ defined but not used”. * src/xfns.c (x_get_net_workarea) [!USE_GTK]: Do not define.
-rw-r--r--src/xfns.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xfns.c b/src/xfns.c
index 021efafd579..b94666d5548 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -4572,6 +4572,8 @@ On MS Windows, this just returns nil. */)
4572 return Qnil; 4572 return Qnil;
4573} 4573}
4574 4574
4575#ifndef USE_GTK
4576
4575/* Store the geometry of the workarea on display DPYINFO into *RECT. 4577/* Store the geometry of the workarea on display DPYINFO into *RECT.
4576 Return false if and only if the workarea information cannot be 4578 Return false if and only if the workarea information cannot be
4577 obtained via the _NET_WORKAREA root window property. */ 4579 obtained via the _NET_WORKAREA root window property. */
@@ -4634,8 +4636,6 @@ x_get_net_workarea (struct x_display_info *dpyinfo, XRectangle *rect)
4634 return result; 4636 return result;
4635} 4637}
4636 4638
4637#ifndef USE_GTK
4638
4639/* Return monitor number where F is "most" or closest to. */ 4639/* Return monitor number where F is "most" or closest to. */
4640static int 4640static int
4641x_get_monitor_for_frame (struct frame *f, 4641x_get_monitor_for_frame (struct frame *f,