diff --git a/src/commonmark.c b/src/commonmark.c
@@ -182,7 +182,7 @@ static int S_render_node(cmark_renderer *renderer, cmark_node *node,
bool entering = (ev_type == CMARK_EVENT_ENTER);
const char *info, *code, *title;
char fencechar[2] = {'\0', '\0'};
- size_t info_len, code_len;
+ size_t code_len;
char listmarker[LISTMARKER_SIZE];
const char *emph_delim;
bool first_in_list_item;
@@ -289,7 +289,6 @@ static int S_render_node(cmark_renderer *renderer, cmark_node *node,
BLANKLINE();
}
info = cmark_node_get_fence_info(node);
- info_len = strlen(info);
fencechar[0] = strchr(info, '`') == NULL ? '`' : '~';
code = cmark_node_get_literal(node);
code_len = strlen(code);