Fix linux warnings (and build?)

Former-commit-id: 21906adfdf
This commit is contained in:
Vincent Herbet 2013-06-25 19:06:11 +02:00
parent 89b28d5a4a
commit e3a380bbe4
5 changed files with 10 additions and 10 deletions

View File

@ -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++)
{

View File

@ -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

View File

@ -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] )
{

View File

@ -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<D>(*fmt++);

View File

@ -143,7 +143,7 @@ public:
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];