-
Notifications
You must be signed in to change notification settings - Fork 456
CDRIVER-4237 - Address incompatible pointer warnings on GCC 4.8.5 #927
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
Conversation
Reverted "fixes" to empty macro arguments that were not sufficiently tested for correctness. |
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.
The changes look simple enough. Is it really that the compilers mishandle typedefs for their intrinsics? That surprises me.
My only question is about formatting: The prior (wonky) formatting came from my clang-format frantically trying to enforce the 80 column limit (which is much too small, imo), so the the prior formatting satisfied the .clang-format in the repository. What version of clang-format are you using? Or did you do some other formatting formatting?
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.
Thank you for the fix. The current changes LGTM. Please re-request review if there are followup changes.
@vector-of-bool I am using |
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.
This PR aims to resolve CDRIVER-4237, depended on by PHP-2013.
FourThree types of warnings are addressed by this PR (as described by GCC 4.8.5):;
outside of a function [-Wpedantic]{N}
of{func}
from incompatible pointer type [enabled by default]{N}
of{func}
differ in signedness [-Wpointer-sign]empty macro arguments are undefined in ISO C90 and ISO C++98 [enabled by default]Followup changes in addition to the current set may need to be added to fully resolve PHPC-2013. These will be added as demanded in response to code review.