summaryrefslogtreecommitdiff
path: root/src/man.c
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2014-12-29 14:58:23 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2014-12-29 14:58:23 -0800
commit0361517cdebad5b01433bb996e395de39d018a68 (patch)
tree38ac4fa177068274dd89e6a10e4c94fadaf3b962 /src/man.c
parent5f88071c82769d557062ea574a42eab700a28c4b (diff)
Avoid warning about unused options parameter in man writer.
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);