X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2FSDCCsymt.c;h=dfec56bbd932838ee549f88e55f33f8a13fcce9d;hb=8db693bdaa3becc17799485bea481d5a52119ca5;hp=a2c11a2aeb0635bd50685bab88e101ae311714a7;hpb=20d011f428a26a3ae0546e7dbc0c1f89ded856ce;p=fw%2Fsdcc diff --git a/src/SDCCsymt.c b/src/SDCCsymt.c index a2c11a2a..dfec56bb 100644 --- a/src/SDCCsymt.c +++ b/src/SDCCsymt.c @@ -373,9 +373,7 @@ pointerTypes (sym_link * ptr, sym_link * type) break; } /* the storage class of type ends here */ - SPEC_SCLS (type) = - SPEC_CONST (type) = - SPEC_VOLATILE (type) = 0; + SPEC_SCLS (type) = 0; } /* now change all the remaining unknown pointers @@ -558,8 +556,6 @@ void checkTypeSanity(sym_link *etype, char *name) { sym_link * mergeSpec (sym_link * dest, sym_link * src, char *name) { - sym_link *symlink=dest; - if (!IS_SPEC(dest) || !IS_SPEC(src)) { #if 0 werror (E_INTERNAL_ERROR, __FILE__, __LINE__, "cannot merge declarator"); @@ -643,7 +639,7 @@ mergeSpec (sym_link * dest, sym_link * src, char *name) FUNC_INTNO(dest) |= FUNC_INTNO(src); FUNC_REGBANK(dest) |= FUNC_REGBANK(src); - return symlink; + return dest; } /*------------------------------------------------------------------*/