=================================================================== RCS file: /cvs/mandoc/main.c,v retrieving revision 1.103 retrieving revision 1.104 diff -u -p -r1.103 -r1.104 --- mandoc/main.c 2010/08/20 01:02:07 1.103 +++ mandoc/main.c 2010/08/20 08:13:43 1.104 @@ -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)) { @@ -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). */