summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Poly.c6
-rw-r--r--src/Xrender.c2
-rw-r--r--src/Xrenderint.h4
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 <X11/extensions/renderproto.h>
#include "Xrender.h"
+#ifndef _X_UNUSED
+#define _X_UNUSED /* nothing */
+#endif
+
typedef struct {
Visual *visual;
XRenderPictFormat *format;