diff options
author | James Zern <jzern@google.com> | 2019-06-04 14:45:36 -0700 |
---|---|---|
committer | James Zern <jzern@google.com> | 2019-06-04 21:57:47 +0000 |
commit | cb704b95e3b00f6a2059441ab50596648458600e (patch) | |
tree | 13ad9acad69ddecb26ddc385e0b830a0a819aa20 /configure | |
parent | 54abc9bade46e1e9532e1e984489bb6abdec74b0 (diff) | |
download | libvpx-cb704b95e3b00f6a2059441ab50596648458600e.tar libvpx-cb704b95e3b00f6a2059441ab50596648458600e.tar.gz libvpx-cb704b95e3b00f6a2059441ab50596648458600e.tar.bz2 libvpx-cb704b95e3b00f6a2059441ab50596648458600e.zip |
configure: test -Wno-* flags used with libyuv
with g++ this avoids:
command line option ‘-Wno-missing-prototypes’ is valid for C/ObjC but
not for C++
the flag is necessary with clang.
BUG=webm:1584
Change-Id: I250c76483302d913999e5f9e0d09ee6449b052df
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -645,6 +645,14 @@ process_toolchain() { if enabled arm; then check_add_cxxflags -Wno-psabi fi + + # disable some warnings specific to libyuv. + check_cxxflags -Wno-missing-declarations \ + && LIBYUV_CXXFLAGS="${LIBYUV_CXXFLAGS} -Wno-missing-declarations" + check_cxxflags -Wno-missing-prototypes \ + && LIBYUV_CXXFLAGS="${LIBYUV_CXXFLAGS} -Wno-missing-prototypes" + check_cxxflags -Wno-unused-parameter \ + && LIBYUV_CXXFLAGS="${LIBYUV_CXXFLAGS} -Wno-unused-parameter" fi if enabled icc; then |