cmark

My personal build of CMark ✏️

Commit
9d3898848eab2e33487de2f12b08a5fc8b3bd62e
Parent
1ff180e23cc38ae82f30615e12b07e98f0794676
Author
Saleem Abdulrasool <compnerd@compnerd.org>
Date

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.

Diffstat

1 file changed, 1 insertion, 1 deletion

Status File Name N° Changes Insertions Deletions
Modified src/commonmark.c 2 1 1
diff --git 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;