summaryrefslogtreecommitdiffstats
path: root/macosx
diff options
context:
space:
mode:
authorculler <culler>2020-11-04 21:30:52 (GMT)
committerculler <culler>2020-11-04 21:30:52 (GMT)
commit1330eaa493dda6e64d66e26836cbdf72f0c00ac4 (patch)
tree72c9545d70b2ce546798dd5d6d113b3afb3fba44 /macosx
parent11b802275a5a9f21ec48760751532a840b23599c (diff)
downloadtk-1330eaa493dda6e64d66e26836cbdf72f0c00ac4.zip
tk-1330eaa493dda6e64d66e26836cbdf72f0c00ac4.tar.gz
tk-1330eaa493dda6e64d66e26836cbdf72f0c00ac4.tar.bz2
Fix compiler warnings on macOS 10.9
Diffstat (limited to 'macosx')
-rw-r--r--macosx/tkMacOSXWm.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/macosx/tkMacOSXWm.c b/macosx/tkMacOSXWm.c
index 77da97d..0b8ef81 100644
--- a/macosx/tkMacOSXWm.c
+++ b/macosx/tkMacOSXWm.c
@@ -5913,7 +5913,14 @@ WmWinTabbingId(
int objc, /* Number of arguments. */
Tcl_Obj * const objv[]) /* Argument objects. */
{
-#if !(MAC_OS_X_VERSION_MAX_ALLOWED < 101200)
+#if MAC_OS_X_VERSION_MAX_ALLOWED < 101200
+ (void) interp;
+ (void) winPtr;
+ (void) objc;
+ (void) objv;
+ return TCL_OK;
+#endif
+#if MAC_OS_X_VERSION_MAX_ALLOWED >= 101200
Tcl_Obj *result = NULL;
NSString *idString;
NSWindow *win = TkMacOSXGetNSWindowForDrawable(winPtr->window);
@@ -5992,6 +5999,13 @@ WmWinAppearance(
int objc, /* Number of arguments. */
Tcl_Obj * const objv[]) /* Argument objects. */
{
+#if MAC_OS_X_VERSION_MAX_ALLOWED <= 1090
+ (void) interp;
+ (void) winPtr;
+ (void) objc;
+ (void) objv;
+ return TCL_OK;
+#endif
#if MAC_OS_X_VERSION_MAX_ALLOWED > 1090
static const char *const appearanceStrings[] = {
"aqua", "darkaqua", "auto", NULL