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 warnings emitted by emscripten compiler #478

Merged
merged 1 commit into from
Jul 28, 2022

Conversation

nickpdemarco
Copy link
Member

@nickpdemarco nickpdemarco commented Jul 27, 2022

Fixes: -Wunqualified-std-cast-call and -Wunused-but-set-variable.

@nickpdemarco nickpdemarco requested a review from camio July 27, 2022 13:34
@@ -671,8 +671,7 @@ BOOST_AUTO_TEST_CASE(future_reduction_with_mutable_void_task) {
BOOST_TEST_MESSAGE("future reduction with mutable task");

std::atomic_int check{0};
auto func = [i = int{0}, &check]() mutable {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This might be intentionally unused - but the compiler complained. I'm not sure what the purpose of it would be, though. @FelixPetriconi @sean-parent if you wrote this test and want this variable around, let me know.

@nickpdemarco nickpdemarco mentioned this pull request Jul 27, 2022
Copy link
Contributor

@camio camio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving. Just some nitpicks on the PR's/commit message's title

  1. Prefer a single imperative-tense sentence that doesn't end with a period.
  2. Try to keep it high-level and understandable in a git log summary.

Something like "Fix warnings emitted by emscripten compiler" would be good. The specific warnings could go in the next paragraph.

@nickpdemarco nickpdemarco changed the title Fixes: -Wunqualified-std-cast-call and -Wunused-but-set-variable Fix warnings emitted by emscripten compiler Jul 28, 2022
@nickpdemarco nickpdemarco merged commit 3134a44 into main Jul 28, 2022
@nickpdemarco nickpdemarco deleted the nickpdemarco/warnings branch July 28, 2022 15:19
@nickpdemarco
Copy link
Member Author

This is good style feedback, @camio. Thank you. I've raised an issue to document our GitHub/PR style guidelines so you don't have to play whack-a-cruft with my PRs. See #481.

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