bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#46509: 28.0.50; Unused static function in xfns.c with GTK2


From: martin rudalics
Subject: bug#46509: 28.0.50; Unused static function in xfns.c with GTK2
Date: Sun, 14 Feb 2021 18:17:00 +0100

Its definition is conditional on !USE_GTK || !HAVE_GTK3, but its use
only on !USE_GTK.  Which one is right?

The !USE_GTK one, I think.

It's a tad more complicated.  You have to do something like the below.

martin

diff --git a/src/xfns.c b/src/xfns.c
index 481ee0e225..82424ae080 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -4663,6 +4663,9 @@ x_get_net_workarea (struct x_display_info *dpyinfo, 
XRectangle *rect)
   return result;
 }

+#endif /* !defined USE_GTK || !defined HAVE_GTK3 */
+#if !defined USE_GTK
+
 /* Return monitor number where F is "most" or closest to.  */
 static int
 x_get_monitor_for_frame (struct frame *f,






reply via email to

[Prev in Thread] Current Thread [Next in Thread]