From 29669858b32312d26bd9f324ca07fbaadf115608 Mon Sep 17 00:00:00 2001 From: Yashas Date: Thu, 10 May 2018 09:45:10 +0530 Subject: [PATCH] enable warning 214 warning 214: possibly a "const" array argument was intended: --- source/compiler/sc1.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/source/compiler/sc1.c b/source/compiler/sc1.c index fb79c17..54787e9 100644 --- a/source/compiler/sc1.c +++ b/source/compiler/sc1.c @@ -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)