diff options
author | James Zern <jzern@google.com> | 2023-06-02 18:49:00 -0700 |
---|---|---|
committer | James Zern <jzern@google.com> | 2023-06-28 11:06:50 -0700 |
commit | 3ecba398023dea731520cc1489159bfd0ad0a200 (patch) | |
tree | e271dd94dce3cf92ad0186c709d36ae7b6084dbe /configure | |
parent | 44d6cacec62bf81937b577c6d1cb19d18d31dd63 (diff) | |
download | libvpx-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-x | configure | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |