- Commit
- 0361517cdebad5b01433bb996e395de39d018a68
- Parent
- 5f88071c82769d557062ea574a42eab700a28c4b
- Author
- John MacFarlane <jgm@berkeley.edu>
- Date
Avoid warning about unused options parameter in man writer.
My personal build of CMark ✏️
Avoid warning about unused options parameter in man writer.
1 file changed, 2 insertions, 0 deletions
Status | File Name | N° Changes | Insertions | Deletions |
Modified | src/man.c | 2 | 2 | 0 |
diff --git 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);