[FFmpeg-devel] [PATCH 3/5] all: use function pointer instead of void * data pointer

Michael Niedermayer michael at niedermayer.cc
Sat Oct 24 19:23:48 CEST 2015


On Sat, Oct 24, 2015 at 09:28:52AM -0400, Ganesh Ajjanagadde wrote:
> ISO C does not guarantee that functions and data live in the same
> address space. It is thus (strictly speaking) illegal to assign to a
> void * (which is a data pointer) from a function pointer.
> 
> Found by enabling -Wpedantic on clang 3.7.
> 
> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde at gmail.com>
> ---
>  ffmpeg_opt.c              | 8 ++++----
>  libavcodec/hevc.c         | 2 +-
>  libavfilter/vf_drawtext.c | 2 +-
>  libavfilter/vf_lut.c      | 6 +++---
>  libavformat/async.c       | 2 +-
>  5 files changed, 10 insertions(+), 10 deletions(-)

if these dont add any new warnings then LGTM
but the commit message should rather point to code cleanup and
not ISO C

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

The bravest are surely those who have the clearest vision
of what is before them, glory and danger alike, and yet
notwithstanding go out to meet it. -- Thucydides
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20151024/a7252161/attachment.sig>


More information about the ffmpeg-devel mailing list