mirror of
https://github.com/gbdev/rgbds.git
synced 2026-10-03 18:55:41 +00:00
RGBFIX returns 1 if there was a -Werror before processing any files
This commit is contained in:
1 parent
0df5b7b86d
commit
ac632d9223
5 files changed
+22
-19
No files matched your search
+5
-1
@@ -23,8 +23,12 @@ void resetErrors() {
|
||||
nbErrors = 0;
|
||||
}
|
||||
|
||||
bool anyErrors() {
|
||||
return nbErrors > 0;
|
||||
}
|
||||
|
||||
uint32_t checkErrors(char const *filename) {
|
||||
if (nbErrors > 0) {
|
||||
if (anyErrors()) {
|
||||
fprintf(
|
||||
stderr,
|
||||
"Fixing \"%s\" failed with %u error%s\n",
|
||||
|
||||
Reference in new issue
Block a user