From 5b0fc8f507b804d63ca16cb13e613a39153760ec Mon Sep 17 00:00:00 2001 From: Thomas Debrunner Date: Fri, 18 Mar 2022 09:41:56 +0100 Subject: [PATCH] print_load: Removed unused variable to fix compilation on macos --- platforms/posix/src/px4/common/print_load.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/platforms/posix/src/px4/common/print_load.cpp b/platforms/posix/src/px4/common/print_load.cpp index ecae3ec7b8..4cfce909d0 100644 --- a/platforms/posix/src/px4/common/print_load.cpp +++ b/platforms/posix/src/px4/common/print_load.cpp @@ -116,7 +116,6 @@ void print_load(int fd, struct print_load_s *print_state) mach_msg_type_number_t thread_info_count; thread_basic_info_t basic_info_th; - uint32_t stat_thread = 0; // get all threads of the PX4 main task kr = task_threads(task_handle, &thread_list, &th_cnt); @@ -126,10 +125,6 @@ void print_load(int fd, struct print_load_s *print_state) return; } - if (th_cnt > 0) { - stat_thread += th_cnt; - } - long tot_sec = 0; long tot_usec = 0; long tot_cpu = 0;