[flac-dev] Testing needed

LRN lrn1986 at gmail.com
Mon Feb 27 06:57:19 PST 2012


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 27.02.2012 10:58, Erik de Castro Lopo wrote:
> 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?
> 
mingw-gcc 4.6.2, with libiconv-1.13.1-1-mingw32-dev.tar.lzma package
providing iconv.h
> 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
Not interested.
This is not the first time i see this, so there's nothing interesting
in fixing this. Adding an #ifdef to cast the pointer as "const char
**" on W32 (or when using GNU libiconv) would fix the problem.
In fact, [1] says that it IS const, so this is a GNU libiconv problem,
not a MinGW problem.

[1]
http://www.gnu.org/savannah-checkouts/gnu/libiconv/documentation/libiconv-1.13/iconv.3.html
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJPS5nOAAoJEOs4Jb6SI2Cwq20H/jN3OzIXKf1xCx3cpKFraUPS
oXPLXzazj+XWa/GLnGxlhNy9gwayrxQ7a77fWh6sFr7r3v7hgz6TyxL+Wf+2NGud
JoSmbu6DE98HMIRCFcMMBAKshrjAnrgiZXZM4SFI3CM6HrbXr+Pj49HGIN6Rgw5I
pzHZ6Nr0+dIyCUSKtsIS0rX2vgUk/tyCSxVxUP9ESwTijEajwwI9LwzNTvka2bHh
WGMlbbUQe4H9jGu9gbRCU2r9sWkN4/7ZjMgHERCNummIZtp61KczpmCJeLLX7SiL
Vgqs/SpDKtvgt1GvfuNRrJyT1KvlXFYgmSgIFGpnXsqp4P+p3plOpE+2a20gtWA=
=cVrV
-----END PGP SIGNATURE-----


More information about the flac-dev mailing list