diff --git a/sourcepawn/compiler/sc1.c b/sourcepawn/compiler/sc1.c index 7591457e..0119a844 100644 --- a/sourcepawn/compiler/sc1.c +++ b/sourcepawn/compiler/sc1.c @@ -5098,9 +5098,8 @@ static int testsymbols(symbol *root,int level,int testlabs,int testconst) if (sym->parent!=NULL) break; /* hierarchical data type */ if ((sym->usage & (uWRITTEN | uREAD | uSTOCK))==0) { - if (testconst) - errorset(sSETPOS,sym->lnumber); - error(203,sym->name,sym->lnumber); /* symbol isn't used (and not stock) */ + errorset(sSETPOS,sym->lnumber); + error(203,sym->name); /* symbol isn't used (and not stock) */ } else if ((sym->usage & (uREAD | uSTOCK | uPUBLIC))==0) { errorset(sSETPOS,sym->lnumber); error(204,sym->name); /* value assigned to symbol is never used */