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

This commit is contained in:
Rangi42 committed 2025-07-26 12:29:57 -04:00
1 parent 0df5b7b86d
commit ac632d9223
5 files changed
+22 -19

No files matched your search

+5 -1
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",