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

Add nullability annotations #13048

Merged
merged 5 commits into from
Aug 5, 2024
Merged

Add nullability annotations #13048

merged 5 commits into from
Aug 5, 2024

Conversation

Jarred-Sumner
Copy link
Collaborator

What does this PR do?

Add nullability annotations to usockets headers

In release builds, it uses __attribute__((nonnull)), which allows the compiler to optimize it.

In debug builds, it uses _Nonnull which does not enable compiler optimizations for nonnull. In debug builds, also enabled fsanitize=null.

How did you verify your code works?

Ran some tests. Merging this is mostly dependent on what CI says about it.

@robobun
Copy link

robobun commented Aug 3, 2024

@Jarred-Sumner, your commit c0b5d05 has 16 failures in #1308

@Jarred-Sumner Jarred-Sumner merged commit 639e9a8 into main Aug 5, 2024
46 checks passed
@Jarred-Sumner Jarred-Sumner deleted the jarred/nonnull branch August 5, 2024 04:16
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