Skip to content

Commit

Permalink
Fix clang-tidy issue
Browse files Browse the repository at this point in the history
  • Loading branch information
lordgamez committed Jul 3, 2023
1 parent 487ed9b commit df38cbd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libminifi/src/c2/ControllerSocketProtocol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ asio::awaitable<void> ControllerSocketProtocol::startAccept() {
}

asio::awaitable<void> ControllerSocketProtocol::startAcceptSsl(std::shared_ptr<minifi::controllers::SSLContextService> ssl_context_service) {
while (true) {
while (true) { // NOLINT(clang-analyzer-core.NullDereference) suppressing asio library linter warning
auto [accept_error, socket] = co_await acceptor_->async_accept(utils::net::use_nothrow_awaitable);
if (accept_error) {
logger_->log_error("Controller socket accept failed with the following message: '%s'", accept_error.message());
Expand Down
2 changes: 1 addition & 1 deletion libminifi/test/unit/BackTraceTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ TEST_CASE("BT2", "[TPT2]") {
std::vector<BackTrace> traces = pool.getTraces();
for (const auto &trace : traces) {
std::cerr << "Thread name: " << trace.getName() << std::endl;
const auto &trace_strings = trace.getTraces();
[[maybe_unused]] const auto &trace_strings = trace.getTraces();
#ifdef HAS_EXECINFO
REQUIRE(trace_strings.size() > 2);
for (const auto& trace_string : trace_strings) {
Expand Down

0 comments on commit df38cbd

Please sign in to comment.