summaryrefslogtreecommitdiff
path: root/src/latex.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/latex.c')
-rw-r--r--src/latex.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/latex.c b/src/latex.c
index 5a249e5..6eaabce 100644
--- 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);