Browse Source

ucode-mod-html: fix build with gcc 5

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>
Jo-Philipp Wich 8 months ago
parent
commit
b3d661cd84
1 changed files with 1 additions and 0 deletions
  1. 1 0
      contrib/package/ucode-mod-html/src/html.c

+ 1 - 0
contrib/package/ucode-mod-html/src/html.c

@@ -2599,6 +2599,7 @@ tokenize_html(const char *s, size_t len, html_token_callback_t cb, void *ud)
 
 		case END:
 			/* not reached */
+			break;
 		}
 	}