https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86471
--- Comment #24 from Matt Bentley <mattreecebentley at gmail dot com> --- Ugh. I made a mistake. Clang only throws the warning when comparing NULL with 0 without reinterpret_cast/static_cast, not when comparing pointers in general.