From: kmh Date: Mon, 22 Jan 2001 12:05:43 +0000 (+0000) Subject: fixed the storage class checking X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=2c9bc1c6dffadcfa4491fedb0852b2ec2dac3551;p=fw%2Fsdcc fixed the storage class checking git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@531 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/src/SDCCsymt.c b/src/SDCCsymt.c index 0e3880b4..fb84b708 100644 --- a/src/SDCCsymt.c +++ b/src/SDCCsymt.c @@ -1008,7 +1008,8 @@ static void checkSClass ( symbol *sym ) sym->ival == NULL && !sym->level && port->mem.code_ro && - !IS_EXTERN(sym->etype)) + !IS_EXTERN(sym->etype) && + !funcInChain(sym->type)) werror(E_CODE_NO_INIT,sym->name); /* if parameter or local variable then change */