summaryrefslogtreecommitdiffstats
path: root/macosx
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2024-07-04 20:36:47 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2024-07-04 20:36:47 (GMT)
commit9f1eab15da8fe559d9e6448f80063185649108c7 (patch)
treebceb1debcf370761d6412bd28ff0a4ef13c81870 /macosx
parent0d691b8a32629beadc13ba23ce0b64185642bade (diff)
downloadtk-9f1eab15da8fe559d9e6448f80063185649108c7.zip
tk-9f1eab15da8fe559d9e6448f80063185649108c7.tar.gz
tk-9f1eab15da8fe559d9e6448f80063185649108c7.tar.bz2
Fix 2 (minor) compiler warnings
Diffstat (limited to 'macosx')
-rw-r--r--macosx/tkMacOSXColor.c6
-rw-r--r--macosx/tkMacOSXSubwindows.c2
2 files changed, 1 insertions, 7 deletions
diff --git a/macosx/tkMacOSXColor.c b/macosx/tkMacOSXColor.c
index 436597f..ffaadd9 100644
--- a/macosx/tkMacOSXColor.c
+++ b/macosx/tkMacOSXColor.c
@@ -655,12 +655,6 @@ TkpGetColor(
CGFloat rgba[4];
#if MAC_OS_X_VERSION_MAX_ALLOWED >= 101400
if (@available(macOS 10.14, *)) {
- NSAppearance *windowAppearance;
- if (view) {
- windowAppearance = [view effectiveAppearance];
- } else {
- windowAppearance = [NSApp effectiveAppearance];
- }
if ([windowAppearance name] == NSAppearanceNameDarkAqua) {
colormap = darkColormap;
} else {
diff --git a/macosx/tkMacOSXSubwindows.c b/macosx/tkMacOSXSubwindows.c
index 0d71236..1d4ffec 100644
--- a/macosx/tkMacOSXSubwindows.c
+++ b/macosx/tkMacOSXSubwindows.c
@@ -72,7 +72,7 @@ XDestroyWindow(
if (!Tk_IsTopLevel(macWin->winPtr)) {
if (macWin->winPtr->parentPtr != NULL) {
- TkMacOSXInvalClipRgns(macWin->winPtr->parentPtr);
+ TkMacOSXInvalClipRgns((Tk_Window)macWin->winPtr->parentPtr);
Tcl_CancelIdleCall(TkMacOSXRedrawViewIdleTask, (void *) view);
Tcl_DoWhenIdle(TkMacOSXRedrawViewIdleTask, (void *) view);
}