From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from krisdoz.my.domain (schwarze@localhost [127.0.0.1]) by krisdoz.my.domain (8.14.3/8.14.3) with ESMTP id o7K8Dhic003839 for ; Fri, 20 Aug 2010 04:13:44 -0400 (EDT) Received: (from schwarze@localhost) by krisdoz.my.domain (8.14.3/8.14.3/Submit) id o7K8DhHW008551; Fri, 20 Aug 2010 04:13:43 -0400 (EDT) Date: Fri, 20 Aug 2010 04:13:43 -0400 (EDT) Message-Id: <201008200813.o7K8DhHW008551@krisdoz.my.domain> X-Mailinglist: mdocml-source Reply-To: source@mdocml.bsd.lv MIME-Version: 1.0 From: schwarze@mdocml.bsd.lv To: source@mdocml.bsd.lv Subject: mdocml: fix previous: when bailing out due to -Wstop, skip output X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Log Message: ----------- fix previous: when bailing out due to -Wstop, skip output functions, but not *_endparse; problem reported by kristaps@ Modified Files: -------------- mdocml: main.c Revision Data ------------- Index: main.c =================================================================== RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/main.c,v retrieving revision 1.103 retrieving revision 1.104 diff -Lmain.c -Lmain.c -u -p -r1.103 -r1.104 --- main.c +++ main.c @@ -551,14 +551,6 @@ fdesc(struct curparse *curp) } } - /* - * With -Wstop and warnings or errors of at least - * the requested level, do not produce output. - */ - - if (MANDOCLEVEL_OK != exit_status && curp->wstop) - goto cleanup; - /* NOTE a parser may not have been assigned, yet. */ if ( ! (man || mdoc)) { @@ -581,6 +573,14 @@ fdesc(struct curparse *curp) assert(MANDOCLEVEL_FATAL <= exit_status); goto cleanup; } + + /* + * With -Wstop and warnings or errors of at least + * the requested level, do not produce output. + */ + + if (MANDOCLEVEL_OK != exit_status && curp->wstop) + goto cleanup; /* If unset, allocate output dev now (if applicable). */ -- To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv