[FFmpeg-devel] [PATCHv2] avutil/attributes: extend av_uninit to clang

Michael Niedermayer michael at niedermayer.cc
Wed Oct 7 21:34:20 CEST 2015

On Wed, Oct 07, 2015 at 12:29:35PM -0400, Ganesh Ajjanagadde wrote:
> Commit 6dac8c8327 disabled av_uninit for clang, due to some useless warnings.
> The concept of av_uninit is inherently useful though. This patch silences a
> bunch of warnings on clang e.g
> http://fate.ffmpeg.org/log.cgi?time=20150918181527&log=compile&slot=x86_64-darwin-clang-polly-vectorize-stripmine-3.7.
> Furthermore, it should be useful for general usage of av_uninit in future.
> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde at gmail.com>
> ---
>  libavutil/attributes.h | 6 ++++++
>  1 file changed, 6 insertions(+)

breaks gcc
CC      libavdevice/alldevices.o
In file included from ./libavutil/common.h:42:0,
                 from ./libavutil/avutil.h:288,
                 from ./libavutil/log.h:25,
                 from libavdevice/avdevice.h:46,
                 from libavdevice/alldevices.c:22:
./libavutil/attributes.h:150:42: error: missing binary operator before token "("
make: *** [libavdevice/alldevices.o] Error 1


Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Many that live deserve death. And some that die deserve life. Can you give
it to them? Then do not be too eager to deal out death in judgement. For
even the very wise cannot see all ends. -- Gandalf
-------------- 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/20151007/eb747e7e/attachment.sig>

More information about the ffmpeg-devel mailing list