* mdocml: fix previous: when bailing out due to -Wstop, skip output
@ 2010-08-20 8:13 schwarze
0 siblings, 0 replies; only message in thread
From: schwarze @ 2010-08-20 8:13 UTC (permalink / raw)
To: source
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-08-20 8:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-20 8:13 mdocml: fix previous: when bailing out due to -Wstop, skip output schwarze
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).