summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXMenu.c
diff options
context:
space:
mode:
authordas <das@noemail.net>2008-12-07 16:36:25 (GMT)
committerdas <das@noemail.net>2008-12-07 16:36:25 (GMT)
commitb695ea1afcce756125c084bca592b8d025f5a9f7 (patch)
tree8343c03839d48107a18cd481a76218ca027be613 /macosx/tkMacOSXMenu.c
parent8ac1711064a7ba1625e8ce3d92b9aa554e9a1917 (diff)
downloadtk-b695ea1afcce756125c084bca592b8d025f5a9f7.zip
tk-b695ea1afcce756125c084bca592b8d025f5a9f7.tar.gz
tk-b695ea1afcce756125c084bca592b8d025f5a9f7.tar.bz2
Remove/disable dead code flagged by clang static analyzer
FossilOrigin-Name: 0ac08e282590c53d833f775d3c419cf4c2358f84
Diffstat (limited to 'macosx/tkMacOSXMenu.c')
-rw-r--r--macosx/tkMacOSXMenu.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/macosx/tkMacOSXMenu.c b/macosx/tkMacOSXMenu.c
index 366b222..73ccbae 100644
--- a/macosx/tkMacOSXMenu.c
+++ b/macosx/tkMacOSXMenu.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: tkMacOSXMenu.c,v 1.47 2008/12/07 16:30:09 das Exp $
+ * RCS: @(#) $Id: tkMacOSXMenu.c,v 1.48 2008/12/07 16:36:26 das Exp $
*/
#include "tkMacOSXPrivate.h"
@@ -3194,8 +3194,8 @@ TkpComputeStandardMenuGeometry(
&activeBorderWidth);
x = y = borderWidth;
indicatorSpace = labelWidth = accelWidth = maxAccelTextWidth = 0;
- windowHeight = windowWidth = maxWidth = lastColumnBreak = 0;
- maxModifierWidth = nonAccelMargin = maxNonAccelMargin = 0;
+ windowHeight = maxWidth = lastColumnBreak = 0;
+ maxModifierWidth = maxNonAccelMargin = 0;
maxEntryWithAccelWidth = maxEntryWithoutAccelWidth = 0;
maxIndicatorSpace = 0;
@@ -3265,7 +3265,7 @@ TkpComputeStandardMenuGeometry(
lastColumnBreak = i;
y = borderWidth;
}
- geometryPtr = (EntryGeometry *) mePtr->platformEntryData;
+ /*geometryPtr = (EntryGeometry *) mePtr->platformEntryData;*/ /* dead code */
if (mePtr->type == SEPARATOR_ENTRY) {
GetMenuSeparatorGeometry(menuPtr, mePtr, tkfont,