diff --git a/source/compiler/sc2.c b/source/compiler/sc2.c index 18a9caa..2d1e94a 100644 --- a/source/compiler/sc2.c +++ b/source/compiler/sc2.c @@ -1330,7 +1330,8 @@ static int command(void) /* mark function as "used" */ /* do NOT mark it as written as that has a different meaning for * functions (marks them as "should return a value") */ - markusage(sym,uREAD); + if (sc_status!=statSKIP) + markusage(sym,uREAD); } else { outval(sym->addr,FALSE); /* mark symbol as "used", unknown whether for read or write */