From 1cf46a6792a9e243edb857e131e44338bcbbd341 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Mon, 25 Feb 2008 17:58:00 +0000 Subject: SignednessWarnings.squash() Aside from a number of instances of const being cast away (mostly relating to the urldb, which is correct to only export const data) this now builds warning-free with GCC 4 on x86, which is nice. svn path=/trunk/netsurf/; revision=3868 --- utils/utf8.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'utils/utf8.c') diff --git a/utils/utf8.c b/utils/utf8.c index 3b83c95e3..e734cfad6 100644 --- a/utils/utf8.c +++ b/utils/utf8.c @@ -44,9 +44,10 @@ static utf8_convert_ret utf8_convert(const char *string, size_t len, * \param l Length of sequence * \return UCS4 character */ -size_t utf8_to_ucs4(const char *s, size_t l) +size_t utf8_to_ucs4(const char *s_in, size_t l) { size_t c = 0; + const unsigned char *s = (const unsigned char *) s_in; if (!s) assert(0); -- cgit v1.2.3