Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Quieten some compiler warnings

Signed-off-by: Steve Bennett <steveb@workware.net.au>
  • Loading branch information...
commit aa7cf8a6df7fc872e1e32ed60a950faaa0707d81 1 parent 746797a
@msteveb authored
Showing with 2 additions and 5 deletions.
  1. +1 −1  jim-tclprefix.c
  2. +1 −4 jim.c
View
2  jim-tclprefix.c
@@ -156,7 +156,7 @@ static int Jim_TclPrefixCoreCommand(Jim_Interp *interp, int argc, Jim_Obj *const
}
else if (Jim_ListLength(interp, argv[2])) {
const char *longeststr = NULL;
- int longestlen;
+ int longestlen = 0;
stringObj = argv[3];
View
5 jim.c
@@ -14243,7 +14243,7 @@ static int Jim_InfoCoreCommand(Jim_Interp *interp, int argc, Jim_Obj *const *arg
static int Jim_ExistsCoreCommand(Jim_Interp *interp, int argc, Jim_Obj *const *argv)
{
Jim_Obj *objPtr;
- int result;
+ int result = 0;
static const char * const options[] = {
"-command", "-proc", "-alias", "-var", NULL
@@ -14291,9 +14291,6 @@ static int Jim_ExistsCoreCommand(Jim_Interp *interp, int argc, Jim_Obj *const *a
break;
}
}
- else {
- result = 0;
- }
}
Jim_SetResultBool(interp, result);
return JIM_OK;
Please sign in to comment.
Something went wrong with that request. Please try again.