From 3a3f39e9274262a626d43eb66dc09185d55526b2 Mon Sep 17 00:00:00 2001 From: Andrew Sidwell Date: Mon, 11 Aug 2008 08:40:58 +0000 Subject: Fix warnings introduced by hubbub integration. svn path=/trunk/netsurf/; revision=5022 --- render/html.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/render/html.c b/render/html.c index 7d4a55a5d..5dc505e02 100644 --- a/render/html.c +++ b/render/html.c @@ -713,6 +713,8 @@ encoding_change: } +#ifndef WITH_HUBBUB + /** * Set the HTML parser character encoding. * @@ -720,10 +722,8 @@ encoding_change: * \param encoding name of encoding * \return true on success, false on error and error reported */ - bool html_set_parser_encoding(struct content *c, const char *encoding) { -#ifndef WITH_HUBBUB struct content_html_data *html = &c->data.html; xmlError *error; char error_message[500]; @@ -772,7 +772,6 @@ bool html_set_parser_encoding(struct content *c, const char *encoding) /* Ensure noone else attempts to reset the encoding */ html->getenc = false; -#endif return true; } @@ -839,6 +838,9 @@ const char *html_detect_encoding(const char **data, unsigned int *size) } +#endif + + /** * Convert a CONTENT_HTML for display. * -- cgit v1.2.3