mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-03 03:01:44 +00:00
Fix GCC 12.1 warning false positives (#4246)
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user