8000 Create simple warning check tool and add to ubuntu build and test job · python/cpython@7f1a238 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7f1a238

Browse files
committed
Create simple warning check tool and add to ubuntu build and test job
1 parent 5935143 commit 7f1a238

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Tools/build/.warnignore_ubuntu

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Files listed will be ignored by the compiler warning checker
2+
# for the Ubuntu/build and test job.
3+
# Keep lines sorted lexicographically to help avoid merge conflicts.

Tools/build/check_warnings.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,12 +129,10 @@ def main(argv: list[str] | None = None) -> int:
129129
if not Path(args.compiler_output_file_path).is_file():
130130
print(f"Compiler output file does not exist: {args.compiler_output_file_path}")
131131
return 1
132-
133132
# Check that the warning ignore file is a valid path
134133
if not Path(args.warning_ignore_file_path).is_file():
135134
print(f"Warning ignore file does not exist: {args.warning_ignore_file_path}")
136135
return 1
137-
138136
with Path(args.compiler_output_file_path).open(encoding="UTF-8") as f:
139137
compiler_output_file_contents = f.read()
140138

0 commit comments

Comments
 (0)
0