diff options
author | culler <culler> | 2019-10-10 01:20:46 (GMT) |
---|---|---|
committer | culler <culler> | 2019-10-10 01:20:46 (GMT) |
commit | f36ff38c4296c99b07a7fc7b46b33eed920b8554 (patch) | |
tree | 6ea998f1e22ce3be235fd7eb6e8d615d821a3976 /macosx/tkMacOSXColor.c | |
parent | d34505a8e178a83ba9d646c00008a093a2ccb781 (diff) | |
download | tk-f36ff38c4296c99b07a7fc7b46b33eed920b8554.zip tk-f36ff38c4296c99b07a7fc7b46b33eed920b8554.tar.gz tk-f36ff38c4296c99b07a7fc7b46b33eed920b8554.tar.bz2 |
Fix one compiler warning in Snow Leopard.
Diffstat (limited to 'macosx/tkMacOSXColor.c')
-rw-r--r-- | macosx/tkMacOSXColor.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/macosx/tkMacOSXColor.c b/macosx/tkMacOSXColor.c index 015c164..80b368f 100644 --- a/macosx/tkMacOSXColor.c +++ b/macosx/tkMacOSXColor.c @@ -276,7 +276,7 @@ SetCGColorComponents( CGColorRef *c) { OSStatus err = noErr; - NSColor *bgColor, *color; + NSColor *bgColor, *color = nil; CGFloat rgba[4] = {0, 0, 0, 1}; #if MAC_OS_X_VERSION_MAX_ALLOWED < 101400 NSInteger colorVariant; @@ -340,7 +340,9 @@ SetCGColorComponents( break; case 2: if ([NSApp macMinorVersion] > 9) { +#if MAC_OS_X_VERSION_MAX_ALLOWED > 1090 color = [[NSColor labelColor] colorUsingColorSpace: deviceRGB]; +#endif } else { color = [[NSColor textColor] colorUsingColorSpace: deviceRGB]; } |