diff options
author | James Zern <jzern@google.com> | 2023-04-17 13:42:11 -0700 |
---|---|---|
committer | James Zern <jzern@google.com> | 2023-05-09 14:04:19 -0700 |
commit | 9e0fc37f6f68685066f3e71e1cd0605d6ee2205e (patch) | |
tree | dcde7ade01a01d8476795a855839fca3c516f0c9 /configure | |
parent | 894262fb8fe137401d56586b7998711cf49ebe24 (diff) | |
download | libvpx-9e0fc37f6f68685066f3e71e1cd0605d6ee2205e.tar libvpx-9e0fc37f6f68685066f3e71e1cd0605d6ee2205e.tar.gz libvpx-9e0fc37f6f68685066f3e71e1cd0605d6ee2205e.tar.bz2 libvpx-9e0fc37f6f68685066f3e71e1cd0605d6ee2205e.zip |
configure: add -Wshadow
libraries under third_party/ are out of scope for this change.
Bug: webm:1793
Change-Id: I562065a3c0ea9fdfc9615d1a6b1ae47da79b8ce0
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -649,6 +649,7 @@ process_toolchain() { check_add_cflags -Wimplicit-function-declaration check_add_cflags -Wmissing-declarations check_add_cflags -Wmissing-prototypes + check_add_cflags -Wshadow check_add_cflags -Wuninitialized check_add_cflags -Wunreachable-code-loop-increment check_add_cflags -Wunused @@ -679,13 +680,16 @@ process_toolchain() { check_add_cxxflags -Wc++17-extensions check_add_cxxflags -Wc++20-extensions - # disable some warnings specific to libyuv. + # disable some warnings specific to libyuv / libwebm. 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-pass-failed \ && LIBYUV_CXXFLAGS="${LIBYUV_CXXFLAGS} -Wno-pass-failed" + check_cxxflags -Wno-shadow \ + && LIBWEBM_CXXFLAGS="${LIBWEBM_CXXFLAGS} -Wno-shadow" \ + && LIBYUV_CXXFLAGS="${LIBYUV_CXXFLAGS} -Wno-shadow" check_cxxflags -Wno-unused-parameter \ && LIBYUV_CXXFLAGS="${LIBYUV_CXXFLAGS} -Wno-unused-parameter" fi |