help compiler see that CHECK_CONDITION failures are fatal

Some compiler warnings are caused by this lack of information to
compiler.

Refers to #1401
This commit is contained in:
Aliaksey Kandratsenka 2023-07-13 17:49:23 -04:00
parent 2ffa4e0841
commit d2bacb8e36

View File

@ -111,6 +111,7 @@ extern PERFTOOLS_DLL_DECL void (*log_message_writer)(const char* msg, int length
do { \
if (!(cond)) { \
::tcmalloc::Log(::tcmalloc::kCrash, __FILE__, __LINE__, #cond); \
for (;;) {} /* unreachable */ \
} \
} while (0)