jeremy-rifkin / libassert

The most over-engineered C++ assertion library
MIT License
539 stars 36 forks source link

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

Closed steinwurf-sofie closed 2 months ago

steinwurf-sofie commented 2 months ago

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.