From 8baa13ed999f5c7895013f86009a983047b12cec Mon Sep 17 00:00:00 2001 From: Po Lu Date: Wed, 11 May 2022 09:09:05 +0800 Subject: [PATCH] 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 d44554df7b8..4c1720ca94f 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) -- 2.39.2