Skip to content

Commit

Permalink
fix -Wconst-qual warning
Browse files Browse the repository at this point in the history
The string literal being assigned is const, but the assignment looses
the constness of this string.  This enables building with `/Zc:strictString`
with MSVC as well.
  • Loading branch information
compnerd committed Jan 4, 2020
1 parent 1ff180e commit cc59122
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commonmark.c
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ static int S_render_node(cmark_renderer *renderer, cmark_node *node,
char fencechar[2] = {'\0', '\0'};
size_t info_len, code_len;
char listmarker[LISTMARKER_SIZE];
char *emph_delim;
const char *emph_delim;
bool first_in_list_item;
bufsize_t marker_width;
bool has_nonspace;
Expand Down

0 comments on commit cc59122

Please sign in to comment.