提交 8dc5664b 编写于 作者: A Aaron Xiao 提交者: Jiangtao Hu

Tools: Ignore warnings in generated and third party code.

上级 03e5c11f
......@@ -69,7 +69,7 @@ build --copt="-Werror=unused-variable"
build --copt="-Werror=unused-but-set-variable"
build --copt="-Werror=switch"
build --copt="-Wconversion"
build --per_file_copt=^modules/.*\.cc,^cyber/.*\.cc@-Wconversion
# Enable C++14
build --cxxopt="-std=c++1y"
......
......@@ -37,12 +37,6 @@ try:
file_path, row, col = (
matched.group('file'), matched.group('row'), matched.group('col'))
# Skip generated and third-party sources.
if file_path.startswith('bazel-out/'):
continue
if '/third_party/' in file_path:
continue
# Stat.
warnings_id = '{}-{}-{}'.format(file_path, row, col)
if warnings_id not in warnings_recorded:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册