diff options
author | nijtmans <nijtmans@noemail.net> | 2008-10-14 22:37:53 (GMT) |
---|---|---|
committer | nijtmans <nijtmans@noemail.net> | 2008-10-14 22:37:53 (GMT) |
commit | 43760e0cbecf200745df5b04ae8a6e73f8e94d6f (patch) | |
tree | 600d17e3a8b14046378d7711a27fd9e79eb1ed86 /generic/tclIndexObj.c | |
parent | 85363fb73ff6d23456c0c057037d8138410cd305 (diff) | |
download | tcl-43760e0cbecf200745df5b04ae8a6e73f8e94d6f.zip tcl-43760e0cbecf200745df5b04ae8a6e73f8e94d6f.tar.gz tcl-43760e0cbecf200745df5b04ae8a6e73f8e94d6f.tar.bz2 |
* generic/tclCmdAH.c: Fix minor compiler warnings when compiling
* generic/tclCmdMZ.c: with -Wwrite-strings
* generic/tclIndexObj.c:
* generic/tclProc.c:
* generic/tclStubLib.c:
* generic/tclUtil.c:
FossilOrigin-Name: 675e88f6494cc9ecd7a2b3c7560a836f3c38dc5b
Diffstat (limited to 'generic/tclIndexObj.c')
-rw-r--r-- | generic/tclIndexObj.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tclIndexObj.c b/generic/tclIndexObj.c index bb9078b..f04db71 100644 --- a/generic/tclIndexObj.c +++ b/generic/tclIndexObj.c @@ -12,7 +12,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclIndexObj.c,v 1.45 2008/10/10 04:02:00 das Exp $ + * RCS: @(#) $Id: tclIndexObj.c,v 1.46 2008/10/14 22:37:53 nijtmans Exp $ */ #include "tclInt.h" @@ -42,7 +42,7 @@ static void PrintUsage(Tcl_Interp *interp, * that can be invoked by generic object code. */ -static Tcl_ObjType indexType = { +static const Tcl_ObjType indexType = { "index", /* name */ FreeIndex, /* freeIntRepProc */ DupIndex, /* dupIntRepProc */ @@ -559,7 +559,7 @@ PrefixMatchObjCmd( int flags = 0, result, index; int dummyLength, i, errorLength; Tcl_Obj *errorPtr = NULL; - char *message = "option"; + const char *message = "option"; Tcl_Obj *tablePtr, *objPtr, *resultPtr; static const char *const matchOptions[] = { "-error", "-exact", "-message", NULL |