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
Add -Wundef to gcc's --strict-warnings options #2709
Add -Wundef to gcc's --strict-warnings options #2709
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because I'm lazy, what was undef'd?
|
Please add this to clang strict warnings too. |
Ok, does clang have -Wundef? And what is clang by the way :-) |
Side note. If #2712 was broken to two commits, then it would be possible to cherry-pick one to 1.1.0 so that one wouldn't have to have separate request. Cherry-picks should be preferred way as it gives same modification same "tracking number"... |
@dot-asm I will keep that in mind; when I started I had the impression that 1.1.0 and master Now I see two issues in the Travis CI build:
that elif _WIN32 was not there in my tree, but CI did a rebase apparently, I need to change that to elif defined(_WIN32) In one clang build a different error happens, here:
I will add two single commits for each. |
Good catch. Fix in #2727 |
I'm curious, on what configuration was that? |
I think it was with "no-stdio --strict-warnings" BUILDONLY="yes" |
to avoid use of undefined symbol OPENSSL_API_COMPAT.
10b8566
to
b175369
Compare
Avoid a -Wundef warning in o_str.c Avoid a -Wundef warning in testutil.h Include internal/cryptlib.h before openssl/stack.h to avoid use of undefined symbol OPENSSL_API_COMPAT. Reviewed-by: Andy Polyakov <appro@openssl.org> Reviewed-by: Rich Salz <rsalz@openssl.org> (Merged from #2709)
4c3376e in 1.1.0 thanks! |
This PR adds -Wundef to --strict-warnings for gcc.
This warns on #if with undefined macros.
For 1.1.0-stable only.
I will do another PR for master once #2705 is merged.