aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorJames Zern <jzern@google.com>2023-06-02 18:49:00 -0700
committerJames Zern <jzern@google.com>2023-06-28 11:06:50 -0700
commit3ecba398023dea731520cc1489159bfd0ad0a200 (patch)
treee271dd94dce3cf92ad0186c709d36ae7b6084dbe /configure
parent44d6cacec62bf81937b577c6d1cb19d18d31dd63 (diff)
downloadlibvpx-3ecba398023dea731520cc1489159bfd0ad0a200.tar.gz
Fix Clang -Wunreachable-code-aggressive warnings
Based on the change in libaom: fe36011455 Fix Clang -Wunreachable-code-aggressive warnings Clang's -Wunreachable-code-aggressive flag enables several warning flags such as -Wunreachable-code-break and -Wunreachable-code-return. Chrome's build system enables -Wunreachable-code-aggressive (in build/config/compiler/BUILD.gn), so it would be good if libvpx could be compiled without -Wunreachable-code-aggressive warnings. This requires the VPX_NO_RETURN macro be defined correctly for all the compilers we support, otherwise some compilers may warn about missing return statements after a die() or fatal() call (which does not return). Change-Id: I0c069133af45a7a61759538b6d74c681ea087dcd
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index b73436b47..67bba946f 100755
--- a/configure
+++ b/configure
@@ -651,7 +651,7 @@ process_toolchain() {
check_add_cflags -Wmissing-prototypes
check_add_cflags -Wshadow
check_add_cflags -Wuninitialized
- check_add_cflags -Wunreachable-code-loop-increment
+ check_add_cflags -Wunreachable-code-aggressive
check_add_cflags -Wunused
check_add_cflags -Wextra
# check_add_cflags also adds to cxxflags. gtest does not do well with