From 0bc36aaef8101c77da2e27e8c944b74b45c555f6 Mon Sep 17 00:00:00 2001 From: ISP akm Date: Thu, 20 Jun 2024 23:14:26 +0900 Subject: [PATCH] move suppression comments Signed-off-by: ISP akm --- CARET_trace/src/trace_node.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CARET_trace/src/trace_node.cpp b/CARET_trace/src/trace_node.cpp index 02a42b3b..48d26567 100644 --- a/CARET_trace/src/trace_node.cpp +++ b/CARET_trace/src/trace_node.cpp @@ -163,10 +163,10 @@ bool TraceNode::is_recording_allowed() const return status_ == TRACE_STATUS::RECORD; } -// cppcheck-suppress unreachableCode bool TraceNode::is_recording_allowed_init() const { return true; + // cppcheck-suppress unreachableCode std::shared_lock lock(mutex_); // NOTE: Since PREPARE to RECORD is a continuous state transition