Fix -Wstring-conversion warnings
Summary: clang is particular about not treating strings as booleans, but it offers an "out" by using `expr && "string"` specifically for the use cases of `assert` like ours **Before** ``` assert(!"Should never happen!"); <-- clang warning: -Wstring-conversion ``` **After** ``` assert(false && "Should never happen!"); <-- no clang warning ``` Reviewed By: yfeldblum Differential Revision: D33796849 fbshipit-source-id: bd48139d0db04d50572e9ada29da777551774f84
Showing
Please register or sign in to comment