Now detects use before declaration, f.i. in
VAR k: REAL; REAL : INTEGER;
This commit is contained in:
@@ -860,8 +860,8 @@ UseWarnings(df)
|
||||
register t_def *df1 = df->imp_def;
|
||||
|
||||
df1->df_flags |= df->df_flags & (D_USED|D_DEFINED);
|
||||
if (df->df_kind == D_IMPORT &&
|
||||
!(df->df_flags & D_IMP_BY_EXP)) {
|
||||
if (df->df_kind == D_INUSE) return;
|
||||
if ( !(df->df_flags & D_IMP_BY_EXP)) {
|
||||
if (! (df->df_flags & (D_USED | D_DEFINED))) {
|
||||
node_warning(
|
||||
df->df_scope->sc_end,
|
||||
|
||||
Reference in New Issue
Block a user