From e94c58052e80a6675810ae948c48a297c33e1a30 Mon Sep 17 00:00:00 2001 From: fvogel Date: Mon, 12 Jul 2021 19:52:08 +0000 Subject: =?UTF-8?q?Remove=20compiler=20warning:=20./unix/tkUnix.c:=20In=20?= =?UTF-8?q?function=20=E2=80=98Tk=5FGetUserInactiveTime=E2=80=99:=20./unix?= =?UTF-8?q?/tkUnix.c:207:14:=20warning:=20unused=20parameter=20=E2=80=98dp?= =?UTF-8?q?y=E2=80=99=20[-Wunused-parameter]=20=20=20=20=20=20Display=20*d?= =?UTF-8?q?py)=20=20/*=20The=20display=20for=20which=20to=20query=20the=20?= =?UTF-8?q?inactive=20=20=20=20=20=20~~~~~~~~~^~~=20(This=20can=20be=20see?= =?UTF-8?q?n=20with=20the=20main=20branch).?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- unix/tkUnix.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/unix/tkUnix.c b/unix/tkUnix.c index 2de6e98..ed024d1 100644 --- a/unix/tkUnix.c +++ b/unix/tkUnix.c @@ -199,8 +199,12 @@ TkpBuildRegionFromAlphaData( long Tk_GetUserInactiveTime( - Display *dpy) /* The display for which to query the inactive + #ifdef HAVE_XSS + Display *dpy) /* The display for which to query the inactive * time. */ +#else + TCL_UNUSED(Display *)) +#endif /* HAVE_XSS */ { long inactiveTime = -1; #ifdef HAVE_XSS -- cgit v0.12