From 45909ec3aa0b65d35c86d597e659ad698ad37c75 Mon Sep 17 00:00:00 2001 From: dgp Date: Fri, 9 Sep 2005 19:24:32 +0000 Subject: silence compiler warnings --- generic/tclStringObj.c | 7 ++----- 1 file 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))); -- cgit v0.12