From 9d3898848eab2e33487de2f12b08a5fc8b3bd62e Mon Sep 17 00:00:00 2001
From: Saleem Abdulrasool <compnerd@compnerd.org>
Date: Fri, 3 Jan 2020 20:17:36 -0800
Subject: 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.
---
 src/commonmark.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src')

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;
-- 
cgit v1.2.3