mirror of
https://github.com/gperftools/gperftools
synced 2025-01-02 20:52:03 +00:00
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:
parent
2ffa4e0841
commit
d2bacb8e36
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user