summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorJames Zern <jzern@google.com>2019-06-04 14:45:36 -0700
committerJames Zern <jzern@google.com>2019-06-04 21:57:47 +0000
commitcb704b95e3b00f6a2059441ab50596648458600e (patch)
tree13ad9acad69ddecb26ddc385e0b830a0a819aa20 /configure
parent54abc9bade46e1e9532e1e984489bb6abdec74b0 (diff)
downloadlibvpx-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-xconfigure8
1 files changed, 8 insertions, 0 deletions
diff --git a/configure b/configure
index 0fd680816..d29e00ad8 100755
--- a/configure
+++ b/configure
@@ -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