From: Po Lu Date: Wed, 11 May 2022 01:09:05 +0000 (+0800) Subject: Clean up some MAYBE_UNUSED functions X-Git-Tag: emacs-29.0.90~1910^2~826 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=8baa13ed999f5c7895013f86009a983047b12cec;p=emacs.git Clean up some MAYBE_UNUSED functions * src/xterm.c (x_clear_area1): Wrap in the conditions where it will actually be used. --- 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)