diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 2022-09-10 06:17:40 -0400 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 2022-09-11 12:26:20 -0400 |
commit | df5f1f04a7d123a521f0d4bfc88c3b65253491bc (patch) | |
tree | 105a766dc2cdf9e13eb9111b6aeba995b440abd9 /src | |
parent | f43df87188375440dbad33d7c0beed2a607b8d1d (diff) |
use _X_UNUSED for compiler-warnings
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
Diffstat (limited to 'src')
-rw-r--r-- | src/Poly.c | 6 | ||||
-rw-r--r-- | src/Xrender.c | 2 | ||||
-rw-r--r-- | src/Xrenderint.h | 4 |
3 files changed, 8 insertions, 4 deletions
@@ -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 <X11/extensions/renderproto.h> #include "Xrender.h" +#ifndef _X_UNUSED +#define _X_UNUSED /* nothing */ +#endif + typedef struct { Visual *visual; XRenderPictFormat *format; |