From: Wolfgang Bumiller Date: Wed, 18 Sep 2013 14:20:07 +0000 (+0200) Subject: since we don't bail on some of the warnings right away, (that is, with -Werror),... X-Git-Tag: 0.3.5~88 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=5a47dd5e620b257be172e05dd72ae85d4a9ffa23;p=xonotic%2Fgmqcc.git 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 --- diff --git a/main.c b/main.c index fa245a9..9a76706 100644 --- a/main.c +++ b/main.c @@ -790,5 +790,7 @@ cleanup: lex_cleanup(); stat_info(); + if (!retval && compile_errors) + retval = 1; return retval; }