diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-10-02 15:07:23 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-10-02 15:07:23 (GMT) |
commit | 30699869c5cf8459e81c4bcedbe819d6887a02cb (patch) | |
tree | d9a6f8318d5ea92c32427f8db251c477206c50cd /macosx/tkMacOSXKeyboard.c | |
parent | fecbf2b8553ba43518eba229753b0efc12aabd28 (diff) | |
download | tk-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.c | 3 |
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; } } |