[FFmpeg-devel] expected 'const uint8_t **' but argument is of type 'uint8_t **'
Wed Sep 8 10:24:23 CEST 2010
Stefano Sabatini <stefano.sabatini-lala at poste.it> writes:
> Hi all,
> we have several of such warnings. To my naive eyes to pass a pointer
> to a non-const area where it is expected a pointer to a const area
> should be perfectly safe, but the compiler (GCC) is not of the same
> Is that a compiler bug? Am I missing something?
It is a quirk of the C language. "const type *" and "type *" are
considered different types. "type **" and "type *const *" would be
compatible, only differing in the const.
mans at mansr.com
More information about the ffmpeg-devel