From df5f1f04a7d123a521f0d4bfc88c3b65253491bc Mon Sep 17 00:00:00 2001 From: "Thomas E. Dickey" Date: Sat, 10 Sep 2022 06:17:40 -0400 Subject: use _X_UNUSED for compiler-warnings Signed-off-by: Thomas E. Dickey --- src/Poly.c | 6 +++--- src/Xrender.c | 2 +- src/Xrenderint.h | 4 ++++ 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/Poly.c b/src/Poly.c index 731f4a1..aa69eeb 100644 --- a/src/Poly.c +++ b/src/Poly.c @@ -89,7 +89,7 @@ XRenderComputeIntersect (XLineFixed *l1, XLineFixed *l2) static int XRenderComputeTrapezoids (Edge *edges, int nedges, - int winding, + int winding _X_UNUSED, XTrapezoid *traps, int *ntraps, int maxtraps) @@ -237,8 +237,8 @@ XRenderCompositeDoublePoly (Display *dpy, _Xconst XRenderPictFormat *maskFormat, int xSrc, int ySrc, - int xDst, - int yDst, + int xDst _X_UNUSED, + int yDst _X_UNUSED, _Xconst XPointDouble *fpoints, int npoints, int winding) diff --git a/src/Xrender.c b/src/Xrender.c index 11affad..7bd00bc 100644 --- a/src/Xrender.c +++ b/src/Xrender.c @@ -295,7 +295,7 @@ XRenderFindDisplay (Display *dpy) } static int -XRenderCloseDisplay (Display *dpy, XExtCodes *codes) +XRenderCloseDisplay (Display *dpy, XExtCodes *codes _X_UNUSED) { XRenderExtDisplayInfo *info = XRenderFindDisplay (dpy); if (info && info->info) XFree (info->info); diff --git a/src/Xrenderint.h b/src/Xrenderint.h index e424c37..1a9b864 100644 --- a/src/Xrenderint.h +++ b/src/Xrenderint.h @@ -33,6 +33,10 @@ #include #include "Xrender.h" +#ifndef _X_UNUSED +#define _X_UNUSED /* nothing */ +#endif + typedef struct { Visual *visual; XRenderPictFormat *format; -- cgit v1.2.3