mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-23 03:52:27 +00:00
add ignore-warnings flag to roc build
This commit is contained in:
parent
be82798247
commit
1c85b823c1
2 changed files with 18 additions and 3 deletions
|
@ -18,8 +18,10 @@ impl Problems {
|
|||
// 0 means no problems, 1 means errors, 2 means warnings
|
||||
if self.errors > 0 {
|
||||
1
|
||||
} else if self.warnings > 0 {
|
||||
2
|
||||
} else {
|
||||
self.warnings.min(1) as i32
|
||||
0
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue