RGBFIX returns 1 if there was a -Werror before processing any files

This commit is contained in:
Rangi42
2025-07-26 12:29:57 -04:00
parent 0df5b7b86d
commit ac632d9223
5 changed files with 22 additions and 19 deletions

View File

@@ -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",