diff --git a/amxmodx/amx.cpp b/amxmodx/amx.cpp index bebe8e6b..d949b2cb 100755 --- a/amxmodx/amx.cpp +++ b/amxmodx/amx.cpp @@ -1175,12 +1175,12 @@ int AMXAPI amx_GetNative(AMX *amx, int index, char *funcname) int AMXAPI amx_FindNative(AMX *amx, const char *name, int *index) { - int first,last,mid; + int last,mid; char pname[sNAMEMAX+1]; amx_NumNatives(amx, &last); last--; /* last valid index is 1 less than the number of functions */ - first=0; + /* normal search */ for (mid=0; mid<=last; mid++) { diff --git a/amxmodx/debugger.cpp b/amxmodx/debugger.cpp index a2d3a316..eb4934c7 100755 --- a/amxmodx/debugger.cpp +++ b/amxmodx/debugger.cpp @@ -391,7 +391,7 @@ int Debugger::FormatError(char *buffer, size_t maxLength) //trace_info_t *pTrace = pTracer->GetEnd(); //cell cip = _CipAsVa(m_pAmx->cip); //cell *p_cip = NULL; - int amx_err = AMX_ERR_NONE; + //int amx_err = AMX_ERR_NONE; size += _snprintf(buffer, maxLength, "Run time error %d: %s ", error, gen_err); buffer += size; @@ -410,7 +410,7 @@ int Debugger::FormatError(char *buffer, size_t maxLength) }*/ //New code only requires this... num = (int)(_INT_PTR)m_pAmx->usertags[UT_NATIVE]; - amx_err = amx_GetNative(m_pAmx, num, native_name); + /*amx_err = */amx_GetNative(m_pAmx, num, native_name); /*if (num) amx_err = amx_GetNative(m_pAmx, (int)*p_cip, native_name); else diff --git a/amxmodx/file.cpp b/amxmodx/file.cpp index 6b22278a..6e9ac4b8 100755 --- a/amxmodx/file.cpp +++ b/amxmodx/file.cpp @@ -888,7 +888,7 @@ static cell AMX_NATIVE_CALL GetFileTime(AMX *amx, cell *params) return -1; } - time_t time_val; + time_t time_val = -1; switch( params[2] ) { diff --git a/amxmodx/format.cpp b/amxmodx/format.cpp index fd5c043a..c13b5182 100644 --- a/amxmodx/format.cpp +++ b/amxmodx/format.cpp @@ -458,7 +458,7 @@ size_t atcprintf(D *buffer, size_t maxlen, const S *format, AMX *amx, cell *para int width; int prec; int n; - char sign; + //char sign; const S *fmt; size_t llen = maxlen; @@ -486,7 +486,7 @@ size_t atcprintf(D *buffer, size_t maxlen, const S *format, AMX *amx, cell *para flags = 0; width = 0; prec = -1; - sign = '\0'; + //sign = '\0'; rflag: ch = static_cast(*fmt++); diff --git a/amxmodx/sm_trie_tpl.h b/amxmodx/sm_trie_tpl.h index d0576929..d7c81fbd 100644 --- a/amxmodx/sm_trie_tpl.h +++ b/amxmodx/sm_trie_tpl.h @@ -137,13 +137,13 @@ public: * @return True on success, false if the key is already set or * insertion otherwise failed. */ - bool insert(const char *key, const K & obj) + bool insert(const char *key, const K & obj) { unsigned int lastidx = 1; /* the last node index */ unsigned int curidx; /* current node index */ const char *keyptr = key; /* input stream at current token */ KTrieNode *node = NULL; /* current node being processed */ - KTrieNode *basenode = NULL; /* current base node being processed */ + //KTrieNode *basenode = NULL; /* current base node being processed */ unsigned int q; /* temporary var for x_check results */ unsigned int curoffs; /* current offset */ @@ -176,7 +176,7 @@ public: { /* Find where the next character is, then advance */ curidx = m_base[lastidx].idx; - basenode = &m_base[curidx]; + //basenode = &m_base[curidx]; curoffs = charval(*keyptr); curidx += curoffs; node = &m_base[curidx];