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

Fix some compilation issues on modern macOS systems #6709

Merged
merged 2 commits into from
Oct 12, 2023

Conversation

danpat
Copy link
Member

@danpat danpat commented Oct 6, 2023

Apple clang 15 doesn't like some of our coding practices, notably some use of:

std::find_if
std::adjacent_find

where we're not interested in the return values, just the side-effects of the lambda functions. This PR adds dummy variables to hold the results, and marks them as [[maybe_unused]], which appeases the compiler.

I've also thrown in a workaround to boostorg/phoenix#111 which is preventing things from building when compiled against Boost 1.8x, which is the current version available in Homebrew on macOS.

I haven't actually tested anything here, I just know it all compiles cleanly on my Apple M1 machine now.

Should address most of #6707 - I didn't observe the issues with std::unary_function when using Boost 1.8x

@SiarheiFedartsou SiarheiFedartsou merged commit 31e31a6 into master Oct 12, 2023
20 checks passed
@SiarheiFedartsou SiarheiFedartsou deleted the danpat_apple_clang_15_fixes branch October 12, 2023 21:04
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