mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
RGBFIX returns 1 if there was a -Werror before processing any files
This commit is contained in:
@@ -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