From: Bruno Haible Date: Mon, 10 Aug 2009 07:37:40 +0000 (+0200) Subject: Fix a gcc warning. X-Git-Tag: v0.18~160 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de9c49f23c81890afddf773d32795da51d64298f;p=thirdparty%2Fgettext.git Fix a gcc warning. --- diff --git a/gnulib-local/ChangeLog b/gnulib-local/ChangeLog index 935caed72..9a5c62ba5 100644 --- a/gnulib-local/ChangeLog +++ b/gnulib-local/ChangeLog @@ -1,3 +1,9 @@ +2009-08-10 Bruno Haible + + Avoid gcc warning on Cygwin. + * lib/html-ostream.oo.c (html_ostream::write_mem): Change type of local + variable 'uc'. + 2009-05-23 Bruno Haible Avoid gcc warning "cast from pointer to integer of different size". diff --git a/gnulib-local/lib/html-ostream.oo.c b/gnulib-local/lib/html-ostream.oo.c index 4d3957f1e..9cfe816bc 100644 --- a/gnulib-local/lib/html-ostream.oo.c +++ b/gnulib-local/lib/html-ostream.oo.c @@ -1,5 +1,5 @@ /* Output stream that produces HTML output. - Copyright (C) 2006-2008 Free Software Foundation, Inc. + Copyright (C) 2006-2009 Free Software Foundation, Inc. Written by Bruno Haible , 2006. This program is free software: you can redistribute it and/or modify @@ -122,7 +122,7 @@ html_ostream::write_mem (html_ostream_t stream, const void *data, size_t len) while (insize > 0) { unsigned char c0; - unsigned int uc; + ucs4_t uc; int nbytes; c0 = ((const unsigned char *) inptr)[0]; @@ -177,7 +177,7 @@ html_ostream::write_mem (html_ostream_t stream, const void *data, size_t len) /* Output non-ASCII characters in #&nnn; notation. */ char bytes[32]; - sprintf (bytes, "&#%d;", uc); + sprintf (bytes, "&#%d;", (int) uc); ostream_write_str (stream->destination, bytes); } break;