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 various compilation errors with AppleClang 14.0.3 #7578

Merged
merged 3 commits into from
May 18, 2023

Conversation

steven-johnson
Copy link
Contributor

Newer versions of Xcode trigger -Wbitwise-instead-of-logical for this usage, which we treat as an error

Newer versions of Xcode trigger `-Wbitwise-instead-of-logical` for this usage, which we treat as an error
@steven-johnson
Copy link
Contributor Author

FYI, this only showed up using make, not cmake -- we have slightly different sets of warnings enabled/disabled between the two, apparently. :-/

@steven-johnson steven-johnson changed the title Change & -> && usage Fix various compilation errors with AppleClang 14.0.3 May 18, 2023
@steven-johnson steven-johnson merged commit 2ed955e into main May 18, 2023
@steven-johnson steven-johnson deleted the srj/bitwise-and branch May 18, 2023 00:49
ardier pushed a commit to ardier/Halide-mutation that referenced this pull request Mar 3, 2024
* Change & -> && usage

Newer versions of Xcode trigger `-Wbitwise-instead-of-logical` for this usage, which we treat as an error

* Also fix `error: variable 'i' set but not used [-Werror,-Wunused-but-set-variable]`

* Also fix `retrain_cost_model.cpp:419:17: error: variable 'counter' set but not used [-Werror,-Wunused-but-set-variable]`
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.

3 participants