diff --git a/parse.c b/parse.c index 520c7c467d..60cf92cf99 100644 --- a/parse.c +++ b/parse.c @@ -214,7 +214,6 @@ rsRetVal parsSkipAfterChar(rsParsObj *pThis, char c) rsRetVal parsSkipWhitespace(rsParsObj *pThis) { register unsigned char *pC; - int numSkipped; DEFiRet; @@ -222,12 +221,10 @@ rsRetVal parsSkipWhitespace(rsParsObj *pThis) pC = rsCStrGetBufBeg(pThis->pCStr); - numSkipped = 0; while(pThis->iCurrPos < rsCStrLen(pThis->pCStr)) { if(!isspace((int)*(pC+pThis->iCurrPos))) break; ++pThis->iCurrPos; - ++numSkipped; } RETiRet; diff --git a/runtime/modules.c b/runtime/modules.c index b39bd9f066..fdc1fd6a6a 100644 --- a/runtime/modules.c +++ b/runtime/modules.c @@ -1095,7 +1095,6 @@ Load(uchar *const pModName, const sbool bConfLoad, struct nvlst *const lst) cfgmodules_etry_t *pNew = NULL; cfgmodules_etry_t *pLast = NULL; uchar *pModDirCurr, *pModDirNext; - int iLoadCnt; struct dlhandle_s *pHandle = NULL; uchar pathBuf[PATH_MAX+1]; uchar *pPathBuf = pathBuf; @@ -1156,7 +1155,6 @@ Load(uchar *const pModName, const sbool bConfLoad, struct nvlst *const lst) pModDirCurr = (uchar *)((pModDir == NULL) ? _PATH_MODDIR : (char *)pModDir); pModDirNext = NULL; pModHdlr = NULL; - iLoadCnt = 0; do { /* now build our load module name */ if(*pModName == '/' || *pModName == '.') { if(lenPathBuf < PATHBUF_OVERHEAD) { @@ -1241,8 +1239,6 @@ Load(uchar *const pModName, const sbool bConfLoad, struct nvlst *const lst) } } - iLoadCnt++; - } while(pModHdlr == NULL && *pModName != '/' && pModDirNext); if(load_err_msg != NULL) {