summaryrefslogtreecommitdiffstats
path: root/unix/tkUnix.c
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2021-07-12 19:52:08 (GMT)
committerfvogel <fvogelnew1@free.fr>2021-07-12 19:52:08 (GMT)
commite94c58052e80a6675810ae948c48a297c33e1a30 (patch)
treed4fc7434e94d8b747ac39def1c16ff729e099bcf /unix/tkUnix.c
parent0093962104e9c604b7d299866aebcde3349e4e61 (diff)
downloadtk-e94c58052e80a6675810ae948c48a297c33e1a30.zip
tk-e94c58052e80a6675810ae948c48a297c33e1a30.tar.gz
tk-e94c58052e80a6675810ae948c48a297c33e1a30.tar.bz2
Remove compiler warning:
./unix/tkUnix.c: In function ‘Tk_GetUserInactiveTime’: ./unix/tkUnix.c:207:14: warning: unused parameter ‘dpy’ [-Wunused-parameter] Display *dpy) /* The display for which to query the inactive ~~~~~~~~~^~~ (This can be seen with the main branch).
Diffstat (limited to 'unix/tkUnix.c')
-rw-r--r--unix/tkUnix.c6
1 files changed, 5 insertions, 1 deletions
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