Skip to content
This repository was archived by the owner on Aug 29, 2023. It is now read-only.

Return non-zero exit when there are warnings or errors #63

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions flint/Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,11 @@ int main(int argc, char *argv[]) {
// Stop visual studio from closing the window...
system("PAUSE");
#endif

if (errors.getWarnings() || errors.getErrors()) {
return 1;
}

return 0;
};