windowscodecs: Adjust a type in PngDecoder_Frame_GetColorContexts.

Alexandre Julliard julliard at winehq.org
Sat Dec 15 09:46:30 CST 2012


Gerald Pfeifer <gerald at pfeifer.com> writes:

> Current snapshots of GCC 4.8.0 issue a warning about some of the
> new code in windowscodecs/pngformat.c:
>
>   pngformat.c: In function 'PngDecoder_Frame_GetColorContexts':
>   pngformat.c:882:5: warning: passing argument 5 of 'ppng_get_iCCP' from
>   incompatible pointer type [enabled by default]
>      if (ppng_get_iCCP(This->png_ptr, This->info_ptr, &name, &compression_type,&profile, &len))
>   pngformat.c:882:5: note: expected 'png_bytepp' but argument is of type 'char **'
>
> The patch below addresses this.

That will break on older libpng.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list