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 warning: BOOST_CLANG is not defined, evaluates to 0 #151

Closed
wants to merge 1 commit into from
Closed

Fix warning: BOOST_CLANG is not defined, evaluates to 0 #151

wants to merge 1 commit into from

Conversation

mloskot
Copy link
Member

@mloskot mloskot commented Aug 24, 2018

The diagnostic is issued when compiled with GCC/clang flag -Wundef.

Although in case BOOST_CLANG is not defined, ie. is not a macro and BOOST_CLANG identifier is considered to be zero, the #ifdef directive makes the intention clearer.

The diagnostic is issued when compiled with GCC/clang flag -Wundef.

Although in case BOOST_CLANG is not defined, ie. is not a macro
and BOOST_CLANG identifier is considered to be zero, the #ifdef
directive makes the intention clearer.
@raffienficiaud
Copy link
Member

Wouldn't

#if defined(BOOST_CLANG) && (BOOST_CLANG == 1)

be safer? I updated the branch topic/PR-151-BOOST_CLANG-define accordingly.

@mloskot
Copy link
Member Author

mloskot commented Sep 2, 2018

Or, BOOST_CLANG != 0. Sure, why not.

@raffienficiaud
Copy link
Member

Merged to next.

@raffienficiaud
Copy link
Member

Thanks, merged to develop

@mloskot
Copy link
Member Author

mloskot commented Sep 3, 2018

Thanks!

@mloskot mloskot deleted the ml/boost-clang-not-defined branch February 18, 2019 10:58
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