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

alignas(0) causes gcc warnings #15

Open
jnk0le opened this issue Apr 15, 2021 · 0 comments
Open

alignas(0) causes gcc warnings #15

jnk0le opened this issue Apr 15, 2021 · 0 comments

Comments

@jnk0le
Copy link
Owner

jnk0le commented Apr 15, 2021

warning: requested alignment '0' is not a positive power of 2 [-Wattributes]

according to the c++11 standard zero alignment should be ignored.

"— if the constant expression evaluates to zero, the alignment specifier shall have no effect"

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

No branches or pull requests

1 participant