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 build warnings caused by unused variables/unnecessary tests #3056

Merged
merged 2 commits into from Dec 12, 2017

Conversation

msimberg
Copy link
Contributor

@msimberg msimberg commented Dec 7, 2017

No description provided.

@msimberg msimberg added this to the 1.1.0 milestone Dec 7, 2017
@@ -40,7 +40,6 @@ void test_when_each_from_list()

unsigned id = fut.get();

HPX_TEST(id >= 0);
Copy link
Member

Choose a reason for hiding this comment

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

this should rather be HPX_TEST(id > 0), shouldn't it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If I understand the test correctly, no. At least id will be 0 the for the first future processed by when_each a bit further down. The important test is HPX_TEST_EQ(id, idx).

Copy link
Member

Choose a reason for hiding this comment

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

Ahh, I see now. Good.

@@ -52,7 +51,6 @@ void test_when_each_from_list()
unsigned id = fut.get();

HPX_TEST_EQ(idx, id);
HPX_TEST(id >= 0);
Copy link
Member

Choose a reason for hiding this comment

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

Same as above

@@ -101,7 +99,6 @@ void test_when_each_from_list_iterators()

unsigned id = fut.get();

HPX_TEST(id >= 0);
Copy link
Member

Choose a reason for hiding this comment

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

And many more to come...

Copy link
Member

@sithhell sithhell left a comment

Choose a reason for hiding this comment

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

LGTM.

@@ -40,7 +40,6 @@ void test_when_each_from_list()

unsigned id = fut.get();

HPX_TEST(id >= 0);
Copy link
Member

Choose a reason for hiding this comment

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

Ahh, I see now. Good.

@biddisco biddisco merged commit 0935b31 into STEllAR-GROUP:master Dec 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants