diff options
author | John MacFarlane <jgm@berkeley.edu> | 2014-12-29 14:58:23 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2014-12-29 14:58:23 -0800 |
commit | 0361517cdebad5b01433bb996e395de39d018a68 (patch) | |
tree | 38ac4fa177068274dd89e6a10e4c94fadaf3b962 | |
parent | 5f88071c82769d557062ea574a42eab700a28c4b (diff) |
Avoid warning about unused options parameter in man writer.
-rw-r--r-- | src/man.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); |