Skip to content

Commit 186152b

Browse files
committed
Pacify gcc -Wunused-function on Ubuntu 18.04.3
This improves on 2019-12-25T20:01:[email protected], 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.
1 parent 4cd143a commit 186152b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/xfns.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4572,6 +4572,8 @@ On MS Windows, this just returns nil. */)
45724572
return Qnil;
45734573
}
45744574

4575+
#ifndef USE_GTK
4576+
45754577
/* Store the geometry of the workarea on display DPYINFO into *RECT.
45764578
Return false if and only if the workarea information cannot be
45774579
obtained via the _NET_WORKAREA root window property. */
@@ -4634,8 +4636,6 @@ x_get_net_workarea (struct x_display_info *dpyinfo, XRectangle *rect)
46344636
return result;
46354637
}
46364638

4637-
#ifndef USE_GTK
4638-
46394639
/* Return monitor number where F is "most" or closest to. */
46404640
static int
46414641
x_get_monitor_for_frame (struct frame *f,

0 commit comments

Comments
 (0)