Skip to content

Commit

Permalink
Eliminate a useless variable some compilers warn about.
Browse files Browse the repository at this point in the history
  • Loading branch information
dgp committed Sep 9, 2024
1 parent de97df1 commit 320943c
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions generic/itclInfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -1707,12 +1707,10 @@ Itcl_BiInfoVarsCmd(
Itcl_List varList;
Tcl_Obj *resultListPtr;
Tcl_Obj *namePtr;
int numElems;

Itcl_InitList(&varList);
iclsPtr = (ItclClass *)Tcl_GetHashValue(hPtr);
resultListPtr = Tcl_GetObjResult(interp);
numElems = 0;
/* FIXME !! should perhaps skip ___DO_NOT_DELETE_THIS_VARIABLE here !! */
FOREACH_HASH_VALUE(ivPtr, &iclsPtr->variables) {
if ((ivPtr->flags & ITCL_VARIABLE) != 0) {
Expand All @@ -1725,7 +1723,6 @@ Itcl_BiInfoVarsCmd(
}
Tcl_ListObjAppendElement(interp, resultListPtr,
namePtr);
numElems++;
}
if ((ivPtr->flags & ITCL_COMMON) != 0) {
if (ivPtr->protection != ITCL_PUBLIC) {
Expand All @@ -1738,7 +1735,6 @@ Itcl_BiInfoVarsCmd(
}
Tcl_ListObjAppendElement(interp, resultListPtr,
namePtr);
numElems++;
}
}
}
Expand Down

0 comments on commit 320943c

Please sign in to comment.