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

Stop using assert outside test code #324

Merged
merged 3 commits into from
Nov 2, 2023
Merged

Stop using assert outside test code #324

merged 3 commits into from
Nov 2, 2023

Conversation

horgh
Copy link
Contributor

@horgh horgh commented Nov 2, 2023

No description provided.

horgh added 3 commits November 2, 2023 13:46
Currently we will have an assertion failure if this happens, but we're
thinking of removing that.
This is because in cases where the code is compiled with NDEBUG defined,
we could have unsafe behavior. Instead of relying on assert, we check
the return value of this function in the callers.
@oschwald oschwald merged commit 80bfed7 into main Nov 2, 2023
29 checks passed
@oschwald oschwald deleted the horgh/static-analysis branch November 2, 2023 21:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants