Fix some gcc warnings with -pedantic. Fixes #187.
diff --git a/src/md4c-html.c b/src/md4c-html.c
index d604aec..3fe8f5a 100644
--- a/src/md4c-html.c
+++ b/src/md4c-html.c
@@ -169,7 +169,7 @@ static void
render_utf8_codepoint(MD_HTML* r, unsigned codepoint,
void (*fn_append)(MD_HTML*, const MD_CHAR*, MD_SIZE))
{
- static const MD_CHAR utf8_replacement_char[] = { 0xef, 0xbf, 0xbd };
+ static const MD_CHAR utf8_replacement_char[] = { (char)0xef, (char)0xbf, (char)0xbd };
unsigned char utf8[4];
size_t n;
@@ -561,7 +561,7 @@ md_html(const MD_CHAR* input, MD_SIZE input_size,
/* Consider skipping UTF-8 byte order mark (BOM). */
if(renderer_flags & MD_HTML_FLAG_SKIP_UTF8_BOM && sizeof(MD_CHAR) == 1) {
- static const MD_CHAR bom[3] = { 0xef, 0xbb, 0xbf };
+ static const MD_CHAR bom[3] = { (char)0xef, (char)0xbb, (char)0xbf };
if(input_size >= sizeof(bom) && memcmp(input, bom, sizeof(bom)) == 0) {
input += sizeof(bom);
input_size -= sizeof(bom);
diff --git a/src/md4c.c b/src/md4c.c
index 3677c0e..9178327 100644
--- a/src/md4c.c
+++ b/src/md4c.c
@@ -2513,7 +2513,7 @@ md_mark_chain(MD_CTX* ctx, int mark_index)
case _T('*'): return md_asterisk_chain(ctx, mark->flags);
case _T('_'): return &UNDERSCORE_OPENERS;
case _T('~'): return (mark->end - mark->beg == 1) ? &TILDE_OPENERS_1 : &TILDE_OPENERS_2;
- case _T('!'): MD_FALLTHROUGH();
+ case _T('!'):
case _T('['): return &BRACKET_OPENERS;
case _T('|'): return &TABLECELLBOUNDARIES;
default: return NULL;