From 332394278b7110a774b5277bb3cfc58c42cd888c Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sat, 19 Nov 2022 12:09:43 -0800 Subject: XFixesCloseDisplay: Mark codes as unused Quiets clang warning: Xfixes.c:206:46: warning: unused parameter 'codes' [-Wunused-parameter] XFixesCloseDisplay (Display *dpy, XExtCodes *codes) ^ Raises minimum required version of xproto to 7.0.22 (released June 2011) for the definition of _X_UNUSED Signed-off-by: Alan Coopersmith --- configure.ac | 3 ++- src/Xfixes.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index dbfc90b..8c18026 100644 --- a/configure.ac +++ b/configure.ac @@ -55,7 +55,8 @@ FIXESEXT_VERSION=[`echo $VERSION | sed 's/^\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/'` AC_SUBST(FIXESEXT_VERSION) # Obtain compiler/linker options for dependencies -PKG_CHECK_MODULES(FIXESEXT, xproto [fixesproto >= $FIXESEXT_VERSION] xextproto [x11 >= 1.6]) +PKG_CHECK_MODULES(FIXESEXT, + [xproto >= 7.0.22] [fixesproto >= $FIXESEXT_VERSION] xextproto [x11 >= 1.6]) AC_CONFIG_FILES([Makefile diff --git a/src/Xfixes.c b/src/Xfixes.c index 30ae729..557b21d 100644 --- a/src/Xfixes.c +++ b/src/Xfixes.c @@ -24,6 +24,7 @@ #ifdef HAVE_CONFIG_H #include #endif +#include #include "Xfixesint.h" XFixesExtInfo XFixesExtensionInfo; @@ -203,7 +204,7 @@ XFixesFindDisplay (Display *dpy) } static int -XFixesCloseDisplay (Display *dpy, XExtCodes *codes) +XFixesCloseDisplay (Display *dpy, _X_UNUSED XExtCodes *codes) { return XFixesExtRemoveDisplay (&XFixesExtensionInfo, dpy); } -- cgit v1.2.3