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 MinGW warnings about violation of the strict aliasing rules #262

Merged
merged 1 commit into from
Jan 3, 2019

Conversation

Lastique
Copy link
Member

@Lastique Lastique commented Jan 3, 2019

Use memcpy to convert between long and the bitfield structure and use memcmp to compare the two bitfields. Compilers should be smart enough to optimize away these string operations and generate virtually the same code as before.

Use memcpy to convert between long and the bitfield structure and use
memcmp to compare the two bitfields. Compilers should be smart enough to
optimize away these string operations and generate virtually the same
code as before.
@viboes
Copy link
Collaborator

viboes commented Jan 3, 2019

Thaks for the PR.

@viboes viboes merged commit c46da73 into boostorg:develop Jan 3, 2019
@Lastique Lastique deleted the fix_strict_aliasing_warnings branch January 3, 2019 18:24
@viboes viboes added the bug label Jan 20, 2019
@viboes viboes added this to the 1.70 milestone Jan 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants