From 0361517cdebad5b01433bb996e395de39d018a68 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Mon, 29 Dec 2014 14:58:23 -0800 Subject: Avoid warning about unused options parameter in man writer. --- src/man.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/man.c b/src/man.c index 4f15951..1b45f8b 100644 --- a/src/man.c +++ b/src/man.c @@ -235,6 +235,8 @@ char *cmark_render_man(cmark_node *root, long options) cmark_event_type ev_type; cmark_iter *iter = cmark_iter_new(root); + if (options == 0) options = 0; // avoid warning about unused parameters + while ((ev_type = cmark_iter_next(iter)) != CMARK_EVENT_DONE) { cur = cmark_iter_get_node(iter); S_render_node(cur, ev_type, &state); -- cgit v1.2.3