Skip to content

Avoid compile error on test_aligned_alloc #15024

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

Merged
merged 1 commit into from
Sep 11, 2021

Conversation

tlively
Copy link
Member

@tlively tlively commented Sep 11, 2021

A recent commit taught clang that the first parameter to aligned_alloc should be
a power of two alignment, and since then clang emits a warning (which we upgrade
to an error) when that argument is a constant that is not a power of two. Since
the test actually wants to test the function behavior in that case, ignore the
error.

A recent commit taught clang that the first parameter to aligned_alloc should be
a power of two alignment, and since then clang emits a warning (which we upgrade
to an error) when that argument is a constant that is not a power of two. Since
the test actually wants to test the function behavior in that case, ignore the
error.
@dschuff dschuff merged commit a8d5565 into emscripten-core:main Sep 11, 2021
CDLlo pushed a commit to CDLlo/emscripten that referenced this pull request Oct 4, 2021
A recent commit taught clang that the first parameter to aligned_alloc should be
a power of two alignment, and since then clang emits a warning (which we upgrade
to an error) when that argument is a constant that is not a power of two. Since
the test actually wants to test the function behavior in that case, ignore the
error.
@tlively tlively deleted the test-aligned-alloc branch February 5, 2024 18:04
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.

2 participants