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

fix(gcc): ignore warning for already handled null pointer #102

Merged
merged 2 commits into from
Aug 24, 2024

Conversation

steinwurf-sofie
Copy link
Contributor

fix: ignore warning for already handled null pointer

GCC 13.3 and GCC 14.1 both seem to incorrectly parse the stringification
condition incorrectly, and will warn about null pointers that have
already been returned early from.


Unsure if this is the best strategy to solve this, open to revise it. Followed the same pattern as how old-style ASSERT(foo && "Message") was implemented.

GCC 13.3 and GCC 14.1 both seem to incorrectly parse the stringification
condition incorrectly, and will warn about null pointers that have
already been returned early from.
Copy link
Owner

@jeremy-rifkin jeremy-rifkin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks so much, looks good to me!

@jeremy-rifkin jeremy-rifkin merged commit 53bfad1 into jeremy-rifkin:main Aug 24, 2024
56 of 57 checks passed
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