summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2020-01-03 20:17:36 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2020-01-03 22:17:57 -0700
commit9d3898848eab2e33487de2f12b08a5fc8b3bd62e (patch)
tree30f469b8162e647369ea7e33542086e8c530c5d1
parent1ff180e23cc38ae82f30615e12b07e98f0794676 (diff)
fix -Wconst-qual warning
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.
-rw-r--r--src/commonmark.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commonmark.c b/src/commonmark.c
index 7438920..386a9db 100644
--- a/src/commonmark.c
+++ b/src/commonmark.c
@@ -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;