Fix GCC 12.1 warning false positives (#4246)

This commit is contained in:
Tyler Veness
2022-05-18 12:22:10 -07:00
committed by GitHub
parent 5876b40f08
commit 6a4752dcdc
15 changed files with 144 additions and 36 deletions

View File

@@ -4,7 +4,7 @@ import os
import re
import shutil
from upstream_utils import setup_upstream_repo, comment_out_invalid_includes, walk_cwd_and_copy_if, apply_patches
from upstream_utils import setup_upstream_repo, comment_out_invalid_includes, walk_cwd_and_copy_if, am_patches
def eigen_inclusions(dp, f):
@@ -91,6 +91,10 @@ def main():
"3.4.0")
wpimath = os.path.join(root, "wpimath")
# Apply patches to original git repo
prefix = os.path.join(root, "upstream_utils/eigen_patches")
am_patches(repo, [os.path.join(prefix, "0001-Disable-warnings.patch")])
# Delete old install
for d in [
"src/main/native/eigeninclude/Eigen",
@@ -114,8 +118,6 @@ def main():
comment_out_invalid_includes(
f, [os.path.join(wpimath, "src/main/native/eigeninclude")])
apply_patches(root, ["upstream_utils/eigen-maybe-uninitialized.patch"])
if __name__ == "__main__":
main()