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

Workaround for bogus [-Wignored-attributes] warning on GCC 6.x/7.x #14

Merged
merged 1 commit into from
Oct 7, 2017
Merged

Workaround for bogus [-Wignored-attributes] warning on GCC 6.x/7.x #14

merged 1 commit into from
Oct 7, 2017

Conversation

pgroke-dt
Copy link
Contributor

I've executed the Boost.Move and Boost.Container tests with GCC 6.3 & MSVC 2017 => pass.

I've also verified the general "technique" (wrapping the struct with the alignment attribute in another struct) with several GCC, ICC and Clang versions, and it seems to work fine - i.e. no bugs where the compiler "loses" the alignment for the wrapper struct or the wrapper struct comes out with an unexpected size.

So I guess this should be safe.

@igaztanaga igaztanaga merged commit 37d0a0b into boostorg:develop Oct 7, 2017
@igaztanaga
Copy link
Member

Retested locally for several GCC and MSVC versions, looks fine. Many thanks for the patch!

@pgroke-dt
Copy link
Contributor Author

You're welcome! Thanks for re-testing and merging :)

@pgroke-dt pgroke-dt deleted the workaround-Wignored-attributes branch October 9, 2017 08:04
igaztanaga added a commit that referenced this pull request Nov 1, 2017
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.

None yet

2 participants