diff options
author | das <das> | 2008-12-07 16:36:26 (GMT) |
---|---|---|
committer | das <das> | 2008-12-07 16:36:26 (GMT) |
commit | 229640003624b9acf35b7559855fc8e418596943 (patch) | |
tree | 8343c03839d48107a18cd481a76218ca027be613 /macosx/tkMacOSXDialog.c | |
parent | 60d0a500c50280e9919498d5ff61635de5e1d453 (diff) | |
download | tk-229640003624b9acf35b7559855fc8e418596943.zip tk-229640003624b9acf35b7559855fc8e418596943.tar.gz tk-229640003624b9acf35b7559855fc8e418596943.tar.bz2 |
Remove/disable dead code flagged by clang static analyzer
Diffstat (limited to 'macosx/tkMacOSXDialog.c')
-rw-r--r-- | macosx/tkMacOSXDialog.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/macosx/tkMacOSXDialog.c b/macosx/tkMacOSXDialog.c index e592e3c..1553592 100644 --- a/macosx/tkMacOSXDialog.c +++ b/macosx/tkMacOSXDialog.c @@ -10,7 +10,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkMacOSXDialog.c,v 1.41 2008/12/07 16:34:12 das Exp $ + * RCS: @(#) $Id: tkMacOSXDialog.c,v 1.42 2008/12/07 16:36:26 das Exp $ */ #include "tkMacOSXPrivate.h" @@ -135,7 +135,6 @@ Tk_ChooseColorObjCmd( Tk_Window parent, tkwin = clientData; const char *title; int i, srcRead, dstWrote; - CMError cmerr; CMProfileRef prof; NColorPickerInfo cpinfo; static RGBColor color = {0xffff, 0xffff, 0xffff}; @@ -196,7 +195,7 @@ Tk_ChooseColorObjCmd( } } - cmerr = CMGetDefaultProfileBySpace(cmRGBData, &prof); + ChkErr(CMGetDefaultProfileBySpace, cmRGBData, &prof); cpinfo.theColor.profile = prof; cpinfo.dstProfile = prof; cpinfo.flags = kColorPickerDialogIsMoveable | kColorPickerDialogIsModal; @@ -209,7 +208,7 @@ Tk_ChooseColorObjCmd( TkMacOSXTrackingLoop(1); err = ChkErr(NPickColor, &cpinfo); TkMacOSXTrackingLoop(0); - cmerr = CMCloseProfile(prof); + ChkErr(CMCloseProfile, prof); if ((err == noErr) && (cpinfo.newColorChosen != 0)) { char colorstr[8]; @@ -1599,7 +1598,6 @@ Tk_MessageBoxObjCmd( * we do this here. */ - str = Tcl_GetString(objv[indexDefaultOption + 1]); if (Tcl_GetIndexFromObj(interp, objv[indexDefaultOption + 1], movableButtonStrings, "value", TCL_EXACT, &defaultButtonIndex) != TCL_OK) { |