ucode-mod-html: fix build with gcc 5
authorJo-Philipp Wich <jo@mein.io>
Tue, 8 Aug 2023 18:49:31 +0000 (20:49 +0200)
committerJo-Philipp Wich <jo@mein.io>
Tue, 8 Aug 2023 18:49:31 +0000 (20:49 +0200)
Older gcc versions raise a `label at end of compound statement` error due
to the empty default case. Fix the problem by adding an explicit `break`
statement.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
contrib/package/ucode-mod-html/src/html.c

index 8d44a3f31544b88eb4e5f505d1c19e9128fd2410..76214ec9f9067ebe36263ffb8ee5f69f87960213 100644 (file)
@@ -2599,6 +2599,7 @@ tokenize_html(const char *s, size_t len, html_token_callback_t cb, void *ud)
 
                case END:
                        /* not reached */
+                       break;
                }
        }