Commit 46df61a5 authored by ThomasKuehne's avatar ThomasKuehne Committed by Alan Coopersmith
Browse files

fix -Wunused-[...] compiler warnings



xdpyinfo.c:148:1: warning: ‘silent_errors’ defined but not used [-Wunused-function]
  148 | silent_errors(_X_UNUSED Display *dpy, _X_UNUSED XErrorEvent *ev)
xdpyinfo.c:155:14: warning: ‘old_handler’ defined but not used [-Wunused-variable]
  155 | static int (*old_handler)(Display *, XErrorEvent *) = NULL;
Signed-off-by: ThomasKuehne's avatarThomas Kuehne <thomas@kuehne.cn>
parent 4158bd9d
Pipeline #551461 passed with stages
in 1 minute and 2 seconds
......@@ -144,6 +144,7 @@ in this Software without prior written authorization from The Open Group.
static char *ProgramName;
static Bool queryExtensions = False;
#if defined(XF86MISC) || defined(XFreeXDGA)
static int
silent_errors(_X_UNUSED Display *dpy, _X_UNUSED XErrorEvent *ev)
{
......@@ -151,6 +152,7 @@ silent_errors(_X_UNUSED Display *dpy, _X_UNUSED XErrorEvent *ev)
}
static int (*old_handler)(Display *, XErrorEvent *) = NULL;
#endif
static int print_event_mask(char *buf, int lastcol, int indent, long mask);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment