[Spice-devel] [spice-server 4/9] syntax-check: Remove unneeded cast of free() argument

Christophe Fergeau cfergeau at redhat.com
Thu Oct 27 14:27:36 UTC 2016


On Thu, Oct 27, 2016 at 04:20:11PM +0200, Pavel Grunt wrote:
> mjpeg-encoder.c: In function 'mjpeg_encoder_encode_frame':
> mjpeg-encoder.c:972:27: error: passing argument 1 of 'buffer-
> >base.free' from incompatible pointer type [-Werror=incompatible-
> pointer-types]
>          buffer->base.free(buffer);
> 
> Declaration of the free function is:
> static void mjpeg_video_buffer_free(VideoBuffer *video_buffer)

Err yeah, this is a false positive, I was not careful at all when making
this change, I'll just drop this patch.

Christophe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/spice-devel/attachments/20161027/4c066d71/attachment.sig>


More information about the Spice-devel mailing list