add ignore-warnings flag to roc build

This commit is contained in:
Isaac Van Doren 2024-01-14 15:39:10 -06:00
parent be82798247
commit 1c85b823c1
No known key found for this signature in database
GPG key ID: CFA524CD470E5B94
2 changed files with 18 additions and 3 deletions

View file

@ -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
}
}