From 6e16a274610317abc3956291aa498b1ecdccc900 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Wed, 16 Nov 2022 19:18:18 -0800 Subject: 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 --- configure.ac | 2 +- src/Xdamage.c | 3 ++- 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 #endif #include "xdamageint.h" +#include 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); } -- cgit v1.2.1