]> git.sesse.net Git - ffmpeg/commit
avfilter/vf_overlay: Remove superfluous ;
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Fri, 21 Aug 2020 09:46:49 +0000 (11:46 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Fri, 21 Aug 2020 11:52:44 +0000 (13:52 +0200)
commitc5e204c84f98cba85f0bc22bf1719adff8619533
tree752f99c7534db6faea6f7c6b92de7ba496352ebd
parentbbe92ed9b1122437dfa3120338b36816523cc491
avfilter/vf_overlay: Remove superfluous ;

In a function body, a redundant ; is just a null statement that does
nothing. Yet outside a function body, a superfluous ';' like one that
exists if one adds a ';' immediately after a function body's closing
brace is actually invalid C that compilers happen to accept. Yet when
compiled in -pedantic mode, both GCC as well as Clang emit warnings for
this like "ISO C does not allow extra ‘;’ outside of a function
[-Wpedantic]".

The scenario described above existed in vf_overlay.c as a result of
macro expansion. This commit fixes it.

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavfilter/vf_overlay.c