summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2005-09-09 19:24:32 (GMT)
committerdgp <dgp@users.sourceforge.net>2005-09-09 19:24:32 (GMT)
commit45909ec3aa0b65d35c86d597e659ad698ad37c75 (patch)
tree7f2c892ee8c113b7c27809b544b73bc2f468747a /generic
parent1e06a39ac743012905d07c5286949994310b8d93 (diff)
downloadtcl-45909ec3aa0b65d35c86d597e659ad698ad37c75.zip
tcl-45909ec3aa0b65d35c86d597e659ad698ad37c75.tar.gz
tcl-45909ec3aa0b65d35c86d597e659ad698ad37c75.tar.bz2
silence compiler warnings
Diffstat (limited to 'generic')
-rw-r--r--generic/tclStringObj.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/generic/tclStringObj.c b/generic/tclStringObj.c
index be926fe..3a042ce 100644
--- a/generic/tclStringObj.c
+++ b/generic/tclStringObj.c
@@ -33,7 +33,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclStringObj.c,v 1.41 2005/09/09 17:47:19 dgp Exp $ */
+ * RCS: @(#) $Id: tclStringObj.c,v 1.42 2005/09/09 19:24:32 dgp Exp $ */
#include "tclInt.h"
@@ -2286,7 +2286,7 @@ ObjPrintfVA(interp, argList)
va_list argList;
{
int code, objc;
- Tcl_Obj **objv, *element, *list = Tcl_NewObj();
+ Tcl_Obj **objv, *list = Tcl_NewObj();
CONST char *format, *p;
Tcl_Obj *objPtr = va_arg(argList, Tcl_Obj *);
@@ -2331,9 +2331,6 @@ ObjPrintfVA(interp, argList)
seekingConversion = 0;
switch (size) {
case -1:
- Tcl_ListObjAppendElement(NULL, list, Tcl_NewLongObj(
- (long int)va_arg(argList, short int)));
- break;
case 0:
Tcl_ListObjAppendElement(NULL, list, Tcl_NewLongObj(
(long int)va_arg(argList, int)));