cmark

My personal build of CMark ✏️

Commit
8011e3a9e68262db3a05977d58be25fe2d171954
Parent
6aebde8f56e3f62cab95c601b9d608da4a9e2dc2
Author
John MacFarlane <jgm@berkeley.edu>
Date

Fixed compiler warnings.

Diffstat

1 file changed, 1 insertion, 4 deletions

Status File Name N° Changes Insertions Deletions
Modified src/latex.c 5 1 4
diff --git a/src/latex.c b/src/latex.c
@@ -352,9 +352,7 @@ S_render_node(cmark_node *node, cmark_event_type ev_type,
               struct render_state *state)
 {
 	cmark_node *tmp;
-	cmark_chunk *code;
 	int list_number;
-	int len;
 	char list_number_string[20];
 	bool entering = (ev_type == CMARK_EVENT_ENTER);
 	cmark_list_type list_type;
@@ -409,7 +407,7 @@ S_render_node(cmark_node *node, cmark_event_type ev_type,
 			cr(state);
 			list_number = cmark_node_get_list_start(node);
 			if (list_number > 1) {
-				len = sprintf(list_number_string,
+				sprintf(list_number_string,
 				         "%d", list_number);
 				lit(state, "\\setcounter{enum", false);
 				lit(state, (char *)roman_numerals[state->enumlevel],
@@ -472,7 +470,6 @@ S_render_node(cmark_node *node, cmark_event_type ev_type,
 		cr(state);
 		lit(state, "\\begin{verbatim}", false);
 		cr(state);
-		code = &node->as.code.literal;
 		out(state, node->as.code.literal, false, LITERAL);
 		cr(state);
 		lit(state, "\\end{verbatim}", false);