diff options
author | fvogel <fvogelnew1@free.fr> | 2021-07-12 19:52:08 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2021-07-12 19:52:08 (GMT) |
commit | e94c58052e80a6675810ae948c48a297c33e1a30 (patch) | |
tree | d4fc7434e94d8b747ac39def1c16ff729e099bcf | |
parent | 0093962104e9c604b7d299866aebcde3349e4e61 (diff) | |
download | tk-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).
-rw-r--r-- | unix/tkUnix.c | 6 |
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 |