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

Prevent some warnings #119

Closed
wants to merge 3 commits into from
Closed

Prevent some warnings #119

wants to merge 3 commits into from

Conversation

bebuch
Copy link
Contributor

@bebuch bebuch commented Sep 12, 2017

No description provided.

@@ -1568,6 +1568,9 @@ run( test_unit_id id, bool continue_test )
break;
case 1:
seed = static_cast<unsigned>( std::rand() ^ std::time( 0 ) ); // better init using std::rand() ^ ...
#if __has_cpp_attribute(fallthrough)
Copy link
Member

Choose a reason for hiding this comment

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

I believe this is not supported by all compilers, especially C++03

@raffienficiaud
Copy link
Member

I think your changes are not C++03 compliant, and the __has_cpp_attribute is not standard (at least from what I read here).

Would you like to rework your patch, or should I close the PR?

@raffienficiaud
Copy link
Member

Seems to duplicate #122 , what do you think

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