emacs-diffs
[Top][All Lists]
Advanced

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

master 8baa13ed99: Clean up some MAYBE_UNUSED functions


From: Po Lu
Subject: master 8baa13ed99: Clean up some MAYBE_UNUSED functions
Date: Tue, 10 May 2022 21:09:40 -0400 (EDT)

branch: master
commit 8baa13ed999f5c7895013f86009a983047b12cec
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>

    Clean up some MAYBE_UNUSED functions
    
    * src/xterm.c (x_clear_area1): Wrap in the conditions where it
    will actually be used.
---
 src/xterm.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/xterm.c b/src/xterm.c
index d44554df7b..4c1720ca94 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -8848,13 +8848,15 @@ x_delete_glyphs (struct frame *f, int n)
 /* Like XClearArea, but check that WIDTH and HEIGHT are reasonable.
    If they are <= 0, this is probably an error.  */
 
-MAYBE_UNUSED static void
+#if defined USE_GTK || !defined USE_CAIRO
+static void
 x_clear_area1 (Display *dpy, Window window,
                int x, int y, int width, int height, int exposures)
 {
   eassert (width > 0 && height > 0);
   XClearArea (dpy, window, x, y, width, height, exposures);
 }
+#endif
 
 void
 x_clear_area (struct frame *f, int x, int y, int width, int height)



reply via email to

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