From 416d7fac7db9b12d41222256ca3ef353db3cb633 Mon Sep 17 00:00:00 2001 From: Miciah Dashiel Butler Masters Date: Wed, 16 Nov 2011 16:58:08 +0000 Subject: [PATCH] css_apply_list_style: fix compiler warning Add a case for CSS_LIST_ORDINAL (and assert(0)) to the switch in css_apply_list_style. This change should eliminate a warning from the compiler reported by Witold that CSS_LIST_ORDINAL is not handled. --- src/document/css/apply.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/document/css/apply.c b/src/document/css/apply.c index 92c894a9..233d8bda 100644 --- a/src/document/css/apply.c +++ b/src/document/css/apply.c @@ -124,6 +124,7 @@ css_apply_list_style(struct html_context *html_context, case CSS_LIST_KATAKANA: element->parattr.flags = P_NUMBER; break; case CSS_LIST_HIRAGANA_IROHA: element->parattr.flags = P_NUMBER; break; case CSS_LIST_KATAKANA_IROHA: element->parattr.flags = P_NUMBER; break; + case CSS_LIST_ORDINAL: assert(0); break; } }