From 88bc492eb1d438a8055c96868903843b2a66e499 Mon Sep 17 00:00:00 2001 From: Relintai Date: Wed, 20 Jul 2022 00:44:17 +0200 Subject: [PATCH] Also avoid maybe uninitialized warning. --- modules/web/html/markdown_renderer.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/web/html/markdown_renderer.cpp b/modules/web/html/markdown_renderer.cpp index cb70b247d..e94d51fbc 100644 --- a/modules/web/html/markdown_renderer.cpp +++ b/modules/web/html/markdown_renderer.cpp @@ -59,6 +59,9 @@ String MarkdownRenderer::render_to_html(const String &markdown) { case RENDER_TYPE_HTML_TOC: { renderer = hoedown_html_toc_renderer_new(_toc_level); } break; + default: { + renderer = hoedown_html_renderer_new(static_cast(_html_flags), _toc_level); + } break; } int hoedown_ext_flags = 0;