summaryrefslogtreecommitdiffstats
path: root/generic/tkConsole.c
diff options
context:
space:
mode:
authordas <das>2009-09-07 07:29:03 (GMT)
committerdas <das>2009-09-07 07:29:03 (GMT)
commitb1a164c0a1f1822b82ed874aa176a5e3da80122e (patch)
tree482f0c745521d3a4c67098b23132148476c35fbc /generic/tkConsole.c
parent71419c7600e07b055614f65a8617ff25e63c1603 (diff)
downloadtk-b1a164c0a1f1822b82ed874aa176a5e3da80122e.zip
tk-b1a164c0a1f1822b82ed874aa176a5e3da80122e.tar.gz
tk-b1a164c0a1f1822b82ed874aa176a5e3da80122e.tar.bz2
* generic/tkFocus.c: fix potential null dereference flagged by clang
* generic/tkMenu.c: static analyzer. * generic/tkTextBTree.c: * generic/tkTextDisp.c: * generic/tkTextIndex.c: * generic/tkConsole.c: silence false positives from clang static * generic/tkTest.c: analyzer about potential null dereference. * generic/tkText.c: * generic/tkTextBTree.c: * generic/tkTextTag.c: * generic/tkVisual.c:
Diffstat (limited to 'generic/tkConsole.c')
-rw-r--r--generic/tkConsole.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/generic/tkConsole.c b/generic/tkConsole.c
index a6825ea..79f16f0 100644
--- a/generic/tkConsole.c
+++ b/generic/tkConsole.c
@@ -10,10 +10,10 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkConsole.c,v 1.38 2008/10/17 23:18:37 nijtmans Exp $
+ * RCS: @(#) $Id: tkConsole.c,v 1.39 2009/09/07 07:29:03 das Exp $
*/
-#include "tk.h"
+#include "tkInt.h"
/*
* Each console is associated with an instance of the ConsoleInfo struct.
@@ -720,6 +720,8 @@ ConsoleObjCmd(
Tcl_ListObjAppendElement(NULL, cmd, objv[2]);
}
break;
+ default:
+ CLANG_ASSERT(0);
}
Tcl_IncrRefCount(cmd);