summaryrefslogtreecommitdiff
path: root/src/man.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/man.c')
-rw-r--r--src/man.c2
1 files changed, 2 insertions, 0 deletions
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);