Fix compile warnings in pawndisasm
This commit is contained in:
parent
8fe5558d7e
commit
8847c300f1
@ -15,7 +15,7 @@ addons:
|
|||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- cmake source/compiler -DCMAKE_BUILD_TYPE=RelWithDebInfo
|
- cmake source/compiler -DCMAKE_BUILD_TYPE=RelWithDebInfo
|
||||||
-DCMAKE_C_FLAGS="-m32 -Werror"
|
-DCMAKE_C_FLAGS="-m32 -Werror -Wno-address-of-packed-member"
|
||||||
-DCPACK_GENERATOR="TGZ;ZIP"
|
-DCPACK_GENERATOR="TGZ;ZIP"
|
||||||
|
|
||||||
script:
|
script:
|
||||||
|
@ -578,8 +578,8 @@ int AMXAPI dbg_GetVariable(AMX_DBG *amxdbg, const char *symname, ucell scopeaddr
|
|||||||
break;
|
break;
|
||||||
/* check the range, keep a pointer to the symbol with the smallest range */
|
/* check the range, keep a pointer to the symbol with the smallest range */
|
||||||
if (strcmp(amxdbg->symboltbl[index]->name, symname) == 0
|
if (strcmp(amxdbg->symboltbl[index]->name, symname) == 0
|
||||||
&& (codestart == 0 && codeend == 0
|
&& ((codestart == 0 && codeend == 0)
|
||||||
|| amxdbg->symboltbl[index]->codestart >= codestart && amxdbg->symboltbl[index]->codeend <= codeend))
|
|| (amxdbg->symboltbl[index]->codestart >= codestart && amxdbg->symboltbl[index]->codeend <= codeend)))
|
||||||
{
|
{
|
||||||
*sym = amxdbg->symboltbl[index];
|
*sym = amxdbg->symboltbl[index];
|
||||||
codestart = amxdbg->symboltbl[index]->codestart;
|
codestart = amxdbg->symboltbl[index]->codestart;
|
||||||
|
@ -579,7 +579,7 @@ int main(int argc,char *argv[])
|
|||||||
fprintf(fplist," %s",name);
|
fprintf(fplist," %s",name);
|
||||||
name[0]='\0';
|
name[0]='\0';
|
||||||
} /* if */
|
} /* if */
|
||||||
fprintf(fplist,"\n%08"PRIxC" ",(cell)(cip-code)*sizeof(cell)-(amxhdr.dat-amxhdr.cod));
|
fprintf(fplist,"\n%08"PRIxC" ",(cell)((cip-code)*sizeof(cell)-(amxhdr.dat-amxhdr.cod)));
|
||||||
} /* if */
|
} /* if */
|
||||||
fprintf(fplist,"%08"PRIxC" ",*cip);
|
fprintf(fplist,"%08"PRIxC" ",*cip);
|
||||||
addchars(name,*cip,count);
|
addchars(name,*cip,count);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user