From 2443cc432db11780d432b06dca05921cd51186e0 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Mon, 1 Feb 2016 15:27:26 +0000 Subject: [PATCH] Attempt to squash warning that happens on CI. --- javascript/duktape/dukky.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/javascript/duktape/dukky.c b/javascript/duktape/dukky.c index 1a09fe3ae..6e40549d3 100644 --- a/javascript/duktape/dukky.c +++ b/javascript/duktape/dukky.c @@ -173,9 +173,6 @@ static void dukky_html_element_class_from_tag_type(dom_html_element_type type, const char **html_class, size_t *html_class_len) { switch(type) { - case DOM_HTML_ELEMENT_TYPE__COUNT: - assert(type != DOM_HTML_ELEMENT_TYPE__COUNT); - break; case DOM_HTML_ELEMENT_TYPE_HTML: SET_HTML_CLASS(HTML) break; @@ -343,6 +340,9 @@ static void dukky_html_element_class_from_tag_type(dom_html_element_type type, case DOM_HTML_ELEMENT_TYPE_ISINDEX: SET_HTML_CLASS(ISINDEX) break; + case DOM_HTML_ELEMENT_TYPE__COUNT: + assert(type != DOM_HTML_ELEMENT_TYPE__COUNT); + default: case DOM_HTML_ELEMENT_TYPE__UNKNOWN: SET_HTML_CLASS(UNKNOWN) break;