diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-11-19 12:09:43 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-11-19 12:09:43 -0800 |
commit | 332394278b7110a774b5277bb3cfc58c42cd888c (patch) | |
tree | 2fbfedf4feac3e71a0f7ee0c743f43d3d65cb765 | |
parent | 64fc7592fd27bbee300085773247dd1737a5af1b (diff) |
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 <alan.coopersmith@oracle.com>
-rw-r--r-- | configure.ac | 3 | ||||
-rw-r--r-- | 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 <config.h> #endif +#include <X11/Xfuncproto.h> #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); } |