[flac-dev] Testing needed

Erik de Castro Lopo mle+la at mega-nerd.com
Sun Feb 26 22:58:04 PST 2012


LRN wrote:

> f:/src/mingw-flac/flac-1.2.2-rc1/src/share/utf8/iconvert.c:175:5:
> warning: passing argument 2 of 'libiconv' from incompatible pointer
> type [enabled by default]
> f:\mingw02\mingw-pc-i686\bin\../lib/gcc/mingw32/4.6.2/../../../../include/iconv.h:83:15:
> note: expected 'const char **' but argument is of type 'char **'

Firstly, what version of the mingw compiler are you using?

This to me seems a big silly. From the error message I infer
that the iconv function provided by mingw expects the argument
to have type 'const char **' but the argument passed is of type
'char **'. However, it was my understanding that the C standard
specified that conversions from 'char **' to 'const char **'
should be allowed without warning.

If you're interested in pursuing this please try changing line
175 of src/share/utf8/iconvert.c from:

    k = iconv(cd2, 0, 0, &ob, &obl);

to:

    k = iconv(cd2, 0, 0, (const char**) &ob, &obl);

and seeing if there is a warning with the replacement.

Cheers,
Erik
-- 
----------------------------------------------------------------------
Erik de Castro Lopo
http://www.mega-nerd.com/


More information about the flac-dev mailing list