mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2025-01-24 04:38:05 +03:00
Removed warning 219
This commit is contained in:
parent
bc64ae2712
commit
4451691aa2
@ -1919,8 +1919,8 @@ static int declloc(int fstatic)
|
|||||||
* of a global variable or to that of a local variable at a lower
|
* of a global variable or to that of a local variable at a lower
|
||||||
* level might indicate a bug.
|
* level might indicate a bug.
|
||||||
*/
|
*/
|
||||||
if ((sym=findloc(name))!=NULL && sym->compound!=nestlevel || findglb(name)!=NULL)
|
if ((sym=findloc(name))!=NULL && sym->compound!=nestlevel || findglb(name)!=NULL);
|
||||||
error(219,name); /* variable shadows another symbol */
|
//error(219,name); /* variable shadows another symbol */
|
||||||
while (matchtoken('[')){
|
while (matchtoken('[')){
|
||||||
ident=iARRAY;
|
ident=iARRAY;
|
||||||
if (numdim == sDIMEN_MAX) {
|
if (numdim == sDIMEN_MAX) {
|
||||||
@ -3643,8 +3643,8 @@ static void doarg(char *name,int ident,int offset,int tags[],int numtags,
|
|||||||
if (argsym!=NULL) {
|
if (argsym!=NULL) {
|
||||||
error(21,name); /* symbol already defined */
|
error(21,name); /* symbol already defined */
|
||||||
} else {
|
} else {
|
||||||
if ((argsym=findglb(name))!=NULL && argsym->ident!=iFUNCTN)
|
if ((argsym=findglb(name))!=NULL && argsym->ident!=iFUNCTN) ;
|
||||||
error(219,name); /* variable shadows another symbol */
|
//error(219,name); /* variable shadows another symbol */
|
||||||
/* add details of type and address */
|
/* add details of type and address */
|
||||||
assert(numtags>0);
|
assert(numtags>0);
|
||||||
argsym=addvariable(name,offset,ident,sLOCAL,tags[0],
|
argsym=addvariable(name,offset,ident,sLOCAL,tags[0],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user