summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXKeyboard.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-10-02 15:07:23 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-10-02 15:07:23 (GMT)
commit30699869c5cf8459e81c4bcedbe819d6887a02cb (patch)
treed9a6f8318d5ea92c32427f8db251c477206c50cd /macosx/tkMacOSXKeyboard.c
parentfecbf2b8553ba43518eba229753b0efc12aabd28 (diff)
downloadtk-30699869c5cf8459e81c4bcedbe819d6887a02cb.zip
tk-30699869c5cf8459e81c4bcedbe819d6887a02cb.tar.gz
tk-30699869c5cf8459e81c4bcedbe819d6887a02cb.tar.bz2
Fix more warnings, related to -Wshadow, now in MacOSX code
Diffstat (limited to 'macosx/tkMacOSXKeyboard.c')
-rw-r--r--macosx/tkMacOSXKeyboard.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/macosx/tkMacOSXKeyboard.c b/macosx/tkMacOSXKeyboard.c
index 378c30e..b9bf3be 100644
--- a/macosx/tkMacOSXKeyboard.c
+++ b/macosx/tkMacOSXKeyboard.c
@@ -151,6 +151,7 @@ static int KeyDataToUnicode(UniChar *uniChars, int maxChars,
@implementation TKApplication(TKKeyboard)
- (void) keyboardChanged: (NSNotification *) notification
{
+ (void)notification;
#ifdef TK_MAC_DEBUG_NOTIFICATIONS
TKLog(@"-[%@(%p) %s] %@", [self class], self, _cmd, notification);
#else
@@ -662,7 +663,7 @@ XKeysymToKeycode(
macKC.x.keychar = (unsigned int) data;
hPtr = Tcl_FindHashEntry(&unichar2xvirtual, INT2PTR(macKC.x.keychar));
if (hPtr != NULL) {
- unsigned long data = (unsigned long) Tcl_GetHashValue(hPtr);
+ data = (unsigned long) Tcl_GetHashValue(hPtr);
macKC.x.xvirtual = (unsigned int) data;
}
}