X-Git-Url: https://git.cameronkatri.com/mandoc.git/blobdiff_plain/a1567e8417f169edf6c71532dc11bfa763ac444b..4482840eccb9facf57a7a0f8e7d4f447563804dd:/main.c?ds=inline diff --git a/main.c b/main.c index 1e635fe2..044ec79f 100644 --- a/main.c +++ b/main.c @@ -1,4 +1,4 @@ -/* $Id: main.c,v 1.103 2010/08/20 01:02:07 schwarze Exp $ */ +/* $Id: main.c,v 1.104 2010/08/20 08:13:43 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons * Copyright (c) 2010 Ingo Schwarze @@ -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)) { @@ -582,6 +574,14 @@ fdesc(struct curparse *curp) 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). */ if ( ! (curp->outman && curp->outmdoc)) {