Switched from warning to error. Tightened the testcase.

This commit is contained in:
laubzega
2018-09-23 16:22:59 -07:00
committed by Oliver Schmidt
parent 7a5acaf39a
commit a48bbc4be0
4 changed files with 9 additions and 10 deletions

View File

@@ -700,7 +700,7 @@ SymEntry* AddLabelSym (const char* Name, unsigned Flags)
a goto statement, we will only look for the label definition. */
if (((DOR->Flags & SC_DEF) != (Flags & SC_DEF)) &&
(DOR->LocalsBlockNum != (long)CollLast (&CurrentFunc->LocalsBlockStack)))
Warning ("Goto from line %d to label \'%s\' can result in a "
Error ("Goto from line %d to label \'%s\' can result in a "
"trashed stack", Flags & SC_DEF ? DOR->Line : GetCurrentLine (), Name);
}