since we don't bail on some of the warnings right away, (that is, with -Werror), also check the compile_errors count in main rather than just the return values

This commit is contained in:
Wolfgang Bumiller 2013-09-18 16:20:07 +02:00
parent b6da3613ac
commit 5a47dd5e62

2
main.c
View file

@ -790,5 +790,7 @@ cleanup:
lex_cleanup();
stat_info();
if (!retval && compile_errors)
retval = 1;
return retval;
}