Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suppress build warnings for thirdparty C++ code #264

Merged
merged 3 commits into from
Jan 28, 2025

Conversation

mihelich
Copy link
Contributor

Try to unblock ARM wheel builds for SWE-427.

The Python build includes building some C++ code via Pybind, including several thirdparty libraries. We have strict compile-time checks enabled (-Wall -Wextra -Werror) which is a good practice, but thirdparty headers often don't conform to all of the checks, especially as newer compiler versions add more of them. To date, we've worked around that by suppressing specific warnings with -Wno-* flags, but that's brittle:

  • We might like those warnings to be flagged in our own code.
  • We have to keep adding to the list as OS/tooling upgrades bring in newer GCC versions.

It's better to suppress warnings for the thirdparty code, but keep strict checking for our code.

@mihelich mihelich requested a review from MScatolin January 27, 2025 23:01
@MScatolin MScatolin merged commit 311be0f into main Jan 28, 2025
15 checks passed
@MScatolin MScatolin deleted the patrick/fix-arm-wheels branch January 28, 2025 01:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants