Skip to content

Commit

Permalink
move suppression comments
Browse files Browse the repository at this point in the history
Signed-off-by: ISP akm <[email protected]>
  • Loading branch information
xygyo77 committed Jun 20, 2024
1 parent 36e41cf commit 0bc36aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CARET_trace/src/trace_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<std::shared_mutex> lock(mutex_);

// NOTE: Since PREPARE to RECORD is a continuous state transition
Expand Down

0 comments on commit 0bc36aa

Please sign in to comment.