From 2c9bc1c6dffadcfa4491fedb0852b2ec2dac3551 Mon Sep 17 00:00:00 2001 From: kmh Date: Mon, 22 Jan 2001 12:05:43 +0000 Subject: [PATCH] fixed the storage class checking git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@531 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- src/SDCCsymt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 */ -- 2.47.2