From 602178a0b56febf61033337ef528f1e4eb11a7b7 Mon Sep 17 00:00:00 2001 From: Yashas Date: Mon, 26 Dec 2016 21:30:32 +0530 Subject: [PATCH] public variables behaviour stops unused warnings from being triggered for public variables --- source/compiler/sc1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/compiler/sc1.c b/source/compiler/sc1.c index 6b76991..2795320 100644 --- a/source/compiler/sc1.c +++ b/source/compiler/sc1.c @@ -4690,7 +4690,7 @@ static int testsymbols(symbol *root,int level,int testlabs,int testconst) /* a variable */ if (sym->parent!=NULL) break; /* hierarchical data type */ - if ((sym->usage & (uWRITTEN | uREAD | uSTOCK))==0) { + if ((sym->usage & (uWRITTEN | uREAD | uSTOCK | uPUBLIC))==0) { if (testconst) errorset(sSETPOS,sym->lnumber); error(203,sym->name,sym->lnumber); /* symbol isn't used (and not stock) */