[libav-bugs] [Bug 844] libav does not build with clang 3.5 and warnings-as-errors (-Werror)

bugzilla at libav.org bugzilla at libav.org
Thu May 7 03:11:24 CEST 2015


https://bugzilla.libav.org/show_bug.cgi?id=844

lu_zero at gentoo.org <lu_zero at gentoo.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |lu_zero at gentoo.org

--- Comment #4 from lu_zero at gentoo.org <lu_zero at gentoo.org> ---
With clang-3.6.0 it seems to work just fine. 

make V=1 libavutil/mem.o ECFLAGS=-Werror
clang -I. -I. -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -DZLIB_CONST -DHAVE_AV_CONFIG_H
-std=c99 -fomit-frame-pointer -pthread -g -Wdeclaration-after-statement -Wall
-Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wcast-qual
-Wwrite-strings -Wtype-limits -Wundef -Wmissing-prototypes -Wstrict-prototypes
-Wno-parentheses -Wno-switch -Wno-format-zero-length -Wno-pointer-sign -O3
-fno-math-errno -fno-signed-zeros -Qunused-arguments
-Werror=implicit-function-declaration -Werror=missing-prototypes
-Werror=return-type -Werror -MMD -MF libavutil/mem.d -MT libavutil/mem.o -c -o
libavutil/mem.o libavutil/mem.c

I wouldn't add a workaround for a single version of clang.

-- 
You are receiving this mail because:
You are watching all bug changes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.libav.org/pipermail/libav-bugs/attachments/20150507/08f010b4/attachment.html>


More information about the libav-bugs mailing list