summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2022-11-16 19:18:18 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2022-11-16 19:18:18 -0800
commit6e16a274610317abc3956291aa498b1ecdccc900 (patch)
tree45570545cd2c3f3f8cc41e6be199d5a72f359265
parent14ecba28e2d2846d0690ee86d3d01a1389558fd6 (diff)
XDamageCloseDisplay: Mark codes as unused
Quiets clang warning: Xdamage.c:207:47: warning: unused parameter 'codes' [-Wunused-parameter] XDamageCloseDisplay (Display *dpy, XExtCodes *codes) ^ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--configure.ac2
-rw-r--r--src/Xdamage.c3
2 files changed, 3 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 3f58b8d..b51a85d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -52,7 +52,7 @@ DAMAGEEXT_VERSION=[`echo $VERSION | sed 's/^\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/'
AC_SUBST(DAMAGEEXT_VERSION)
# Obtain compiler/linker options for dependencies
-PKG_CHECK_MODULES(XDAMAGE, [damageproto >= $DAMAGEEXT_VERSION] xfixes fixesproto xextproto x11)
+PKG_CHECK_MODULES(XDAMAGE, [damageproto >= $DAMAGEEXT_VERSION xfixes fixesproto xextproto x11 xproto >= 7.0.22])
AC_CONFIG_FILES([Makefile
src/Makefile
diff --git a/src/Xdamage.c b/src/Xdamage.c
index 6b131a4..61fe4e6 100644
--- a/src/Xdamage.c
+++ b/src/Xdamage.c
@@ -25,6 +25,7 @@
#include <config.h>
#endif
#include "xdamageint.h"
+#include <X11/Xfuncproto.h>
XDamageExtInfo XDamageExtensionInfo;
@@ -204,7 +205,7 @@ XDamageFindDisplay (Display *dpy)
}
static int
-XDamageCloseDisplay (Display *dpy, XExtCodes *codes)
+XDamageCloseDisplay (Display *dpy, _X_UNUSED XExtCodes *codes)
{
return XDamageExtRemoveDisplay (&XDamageExtensionInfo, dpy);
}