diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-11-21 11:54:58 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-11-21 11:54:58 -0800 |
commit | 352885a4ff166cd065da1944649a4f12801dd4d2 (patch) | |
tree | 33d8ae93f54c96ce1e93e9641d4f61582dd48f8a /src | |
parent | 544392051e5f566c4eb29fa2e40dbce748935728 (diff) |
XCompositeCloseDisplay: Mark codes as unused
Quiets clang warning:
Xcomposite.c:91:50: warning: unused parameter 'codes' [-Wunused-parameter]
XCompositeCloseDisplay (Display *dpy, XExtCodes *codes)
^
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/Xcomposite.c | 2 | ||||
-rw-r--r-- | src/xcompositeint.h | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/Xcomposite.c b/src/Xcomposite.c index 81cda1c..4208263 100644 --- a/src/Xcomposite.c +++ b/src/Xcomposite.c @@ -88,7 +88,7 @@ XCompositeExtRemoveDisplay (XCompositeExtInfo *extinfo, const Display *dpy) } static int -XCompositeCloseDisplay (Display *dpy, XExtCodes *codes) +XCompositeCloseDisplay (Display *dpy, _X_UNUSED XExtCodes *codes) { return XCompositeExtRemoveDisplay (&XCompositeExtensionInfo, dpy); } diff --git a/src/xcompositeint.h b/src/xcompositeint.h index c2247bf..6e48105 100644 --- a/src/xcompositeint.h +++ b/src/xcompositeint.h @@ -46,6 +46,7 @@ #define _XCOMPOSITEINT_H_ #include <stdio.h> +#include <X11/Xfuncproto.h> #include <X11/Xlib.h> #include <X11/Xlibint.h> #include <X11/Xutil.h> |