added warning about old-fashioned declarations

cleaned up error reporting
changed implicit declaration handling
This commit is contained in:
eck
1990-11-02 09:23:27 +00:00
parent 7dffd9af9a
commit 009541d133
12 changed files with 40 additions and 85 deletions

View File

@@ -38,7 +38,7 @@ do_decspecs(ds)
if ( level == L_GLOBAL &&
(ds->ds_sc == AUTO || ds->ds_sc == REGISTER)
) {
warning("no global %s variable allowed",
error("no global %s variable allowed",
symbol2str(ds->ds_sc));
ds->ds_sc = GLOBAL;
}