[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
emacs-27 186152b 3/3: Pacify gcc -Wunused-function on Ubuntu 18.04.3
From: |
Paul Eggert |
Subject: |
emacs-27 186152b 3/3: Pacify gcc -Wunused-function on Ubuntu 18.04.3 |
Date: |
Tue, 31 Dec 2019 20:03:54 -0500 (EST) |
branch: emacs-27
commit 186152ba400b58d2d278c52d2e3d896decae767e
Author: Paul Eggert <address@hidden>
Commit: Paul Eggert <address@hidden>
Pacify gcc -Wunused-function on Ubuntu 18.04.3
This improves on 2019-12-25T20:01:07Z!address@hidden,
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.
---
src/xfns.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/xfns.c b/src/xfns.c
index 021efaf..b94666d 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -4572,6 +4572,8 @@ On MS Windows, this just returns nil. */)
return Qnil;
}
+#ifndef USE_GTK
+
/* Store the geometry of the workarea on display DPYINFO into *RECT.
Return false if and only if the workarea information cannot be
obtained via the _NET_WORKAREA root window property. */
@@ -4634,8 +4636,6 @@ x_get_net_workarea (struct x_display_info *dpyinfo,
XRectangle *rect)
return result;
}
-#ifndef USE_GTK
-
/* Return monitor number where F is "most" or closest to. */
static int
x_get_monitor_for_frame (struct frame *f,