enable warning 214
warning 214: possibly a "const" array argument was intended:
This commit is contained in:
parent
bed755dcb7
commit
29669858b3
@ -4881,12 +4881,10 @@ static int testsymbols(symbol *root,int level,int testlabs,int testconst)
|
||||
errorset(sSETPOS,sym->lnumber);
|
||||
error(204,sym->name); /* value assigned to symbol is never used */
|
||||
errorset(sSETPOS,-1);
|
||||
#if 0 // ??? not sure whether it is a good idea to force people use "const"
|
||||
} else if ((sym->usage & (uWRITTEN | uPUBLIC | uCONST))==0 && sym->ident==iREFARRAY) {
|
||||
errorset(sSETPOS,sym->lnumber);
|
||||
error(214,sym->name); /* make array argument "const" */
|
||||
errorset(sSETPOS,-1);
|
||||
#endif
|
||||
} /* if */
|
||||
/* also mark the variable (local or global) to the debug information */
|
||||
if ((sym->usage & (uWRITTEN | uREAD))!=0 && (sym->usage & uNATIVE)==0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user