summaryrefslogtreecommitdiffstats
path: root/unix/tkUnix.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-10-01 14:49:14 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-10-01 14:49:14 (GMT)
commitfecbf2b8553ba43518eba229753b0efc12aabd28 (patch)
tree23d757b95ad331974ce291af1104a153a96ff49f /unix/tkUnix.c
parent231368f73de8a15b94a1cd60793e52c8d6f6d052 (diff)
downloadtk-fecbf2b8553ba43518eba229753b0efc12aabd28.zip
tk-fecbf2b8553ba43518eba229753b0efc12aabd28.tar.gz
tk-fecbf2b8553ba43518eba229753b0efc12aabd28.tar.bz2
Fix some gcc warnings (when using -Wshadow, deprecated XKeycodeToKeysym(), XScreenSaverQueryInfo weak symbol on MacOS)
Diffstat (limited to 'unix/tkUnix.c')
-rw-r--r--unix/tkUnix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/unix/tkUnix.c b/unix/tkUnix.c
index c6fff82..2de6e98 100644
--- a/unix/tkUnix.c
+++ b/unix/tkUnix.c
@@ -16,7 +16,7 @@
# include <X11/extensions/scrnsaver.h>
# ifdef __APPLE__
/* Support for weak-linked libXss. */
-# define HaveXSSLibrary() (XScreenSaverQueryInfo != NULL)
+# define HaveXSSLibrary() (&XScreenSaverQueryInfo != NULL)
# else
/* Other platforms always link libXss. */
# define HaveXSSLibrary() (1)