From 7b22c9425551992d15fbf8335deff2d7ff424270 Mon Sep 17 00:00:00 2001 From: yiguolei <676222867@qq.com> Date: Wed, 8 May 2024 14:07:30 +0800 Subject: [PATCH] [bugfix](compile error) unused variables compile error (#34509) * [bugfix](compile error) unused variables compile error * f --------- Co-authored-by: yiguolei --- be/src/common/status.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/be/src/common/status.h b/be/src/common/status.h index 58bd7270b8..b0c9433cfa 100644 --- a/be/src/common/status.h +++ b/be/src/common/status.h @@ -361,7 +361,9 @@ public: void check_init() { //the signal value is 0, it means the global error states not inited, it's logical error // DO NOT use dcheck here, because dcheck depend on glog, and glog maybe not inited at this time. - assert(signal_value != 0); + if (signal_value == 0) { + exit(-1); + } } private: