From 4253d9ee49ecec9f0aeea716dcb12d5b495a66ec Mon Sep 17 00:00:00 2001 From: Jiacheng Guo Date: Fri, 16 Apr 2021 19:52:56 +0800 Subject: [PATCH] tools: Add *error*.cpp to allowed build lines --- tools/ci/check_build_warnings.py | 5 ++++- tools/ci/mypy_ignore_list.txt | 1 - 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/ci/check_build_warnings.py b/tools/ci/check_build_warnings.py index 0ccd5ed3b0..6454a2a1ce 100755 --- a/tools/ci/check_build_warnings.py +++ b/tools/ci/check_build_warnings.py @@ -24,6 +24,9 @@ IGNORE_WARNS = [ re.compile(r_str) for r_str in [ r'library/error\.o', r'.*error.*\.c\.obj', + r'.*error.*\.cpp\.obj', + r'.*error.*\.cxx\.obj', + r'.*error.*\.cc\.obj', r'-Werror', r'error\.d', r'reassigning to symbol', @@ -49,7 +52,7 @@ def line_has_warnings(line): # type: (str) -> bool return has_warnings -def main(): +def main(): # type: () -> None parser = argparse.ArgumentParser(description='ESP-IDF app builder') parser.add_argument( '-v', diff --git a/tools/ci/mypy_ignore_list.txt b/tools/ci/mypy_ignore_list.txt index addd024731..4c8d021df6 100644 --- a/tools/ci/mypy_ignore_list.txt +++ b/tools/ci/mypy_ignore_list.txt @@ -156,7 +156,6 @@ tools/ble/lib_gatt.py tools/check_python_dependencies.py tools/check_term.py tools/ci/check_artifacts_expire_time.py -tools/ci/check_build_warnings.py tools/ci/check_callgraph.py tools/ci/check_codeowners.py tools/ci/check_deprecated_kconfigs.py