Re: [libav-devel] [PATCH 1/3] ratecontrol: Use correct function pointer casts instead of void*

2016-11-11 Thread Diego Biurrun
On Fri, Nov 11, 2016 at 11:19:45PM +0100, Henrik Gramner wrote: > On Fri, Nov 11, 2016 at 1:22 PM, Diego Biurrun wrote: > > ISO C forbids initialization between function pointer and ‘void *’ > > ISO C technically allows quite a lot of weird stuff, like having > function

Re: [libav-devel] [PATCH 1/3] ratecontrol: Use correct function pointer casts instead of void*

2016-11-11 Thread Henrik Gramner
On Fri, Nov 11, 2016 at 1:22 PM, Diego Biurrun wrote: > ISO C forbids initialization between function pointer and ‘void *’ ISO C technically allows quite a lot of weird stuff, like having function pointers that are different from data pointers. Is there even any known relevant

Re: [libav-devel] [PATCH 1/3] ratecontrol: Use correct function pointer casts instead of void*

2016-11-11 Thread Luca Barbato
The set shouldn't hurt. lu ___ libav-devel mailing list libav-devel@libav.org https://lists.libav.org/mailman/listinfo/libav-devel

[libav-devel] [PATCH 1/3] ratecontrol: Use correct function pointer casts instead of void*

2016-11-11 Thread Diego Biurrun
libavcodec/ratecontrol.c:120:9: warning: ISO C forbids initialization between function pointer and ‘void *’ [-Wpedantic] libavcodec/ratecontrol.c:121:9: warning: ISO C forbids initialization between function pointer and ‘void *’ [-Wpedantic] --- libavcodec/ratecontrol.c | 4 ++-- 1 file