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

Disable Wnonnull in BUILD.gn #5487

Closed
wants to merge 1 commit into from
Closed

Disable Wnonnull in BUILD.gn #5487

wants to merge 1 commit into from

Conversation

dj2
Copy link
Contributor

@dj2 dj2 commented Nov 28, 2023

There is an issue in the latest Android NDK where the std::system is flagged as having a non-null parameter. This behaviour is currently used by spirv-reduce and spirv-fuzz (and is documented as being allowed).

In order to allow building with the latest NDK disable the Wnonnull warning in the BUILD.gn file.

There is an issue in the latest Android NDK where the `std::system` is
flagged as having a non-null parameter. This behaviour is currently used
by spirv-reduce and spirv-fuzz (and is documented as being allowed).

In order to allow building with the latest NDK disable the `Wnonnull`
warning in the BUILD.gn file.
@dj2
Copy link
Contributor Author

dj2 commented Nov 28, 2023

@agrieve

@agrieve
Copy link

agrieve commented Nov 28, 2023

Confirmed the pull request fixes the compile with NDK r26b.

@dneto0 dneto0 enabled auto-merge (squash) November 28, 2023 21:27
@agrieve
Copy link

agrieve commented Nov 28, 2023

Note: According to android/ndk#1976, the annotation is intentional, so this work-around will need to be permanent (or the code updated).

@dneto0
Copy link
Collaborator

dneto0 commented Nov 30, 2023

I have also filed #5494 to remove the usages.

@dneto0
Copy link
Collaborator

dneto0 commented Nov 30, 2023

Suggest closing, as #5494 has landed

@dj2 dj2 closed this Dec 2, 2023
auto-merge was automatically disabled December 2, 2023 21:08

Pull request was closed

@dj2 dj2 deleted the build branch December 2, 2023 21:08
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.

4 participants