summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/common/thread_worker.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/thread_worker.h b/src/common/thread_worker.h
index 8272985ff..0a975a869 100644
--- a/src/common/thread_worker.h
+++ b/src/common/thread_worker.h
@@ -39,7 +39,7 @@ public:
39 const auto lambda = [this, func](std::stop_token stop_token) { 39 const auto lambda = [this, func](std::stop_token stop_token) {
40 Common::SetCurrentThreadName(thread_name.c_str()); 40 Common::SetCurrentThreadName(thread_name.c_str());
41 { 41 {
42 std::conditional_t<with_state, StateType, int> state{func()}; 42 [[maybe_unused]] std::conditional_t<with_state, StateType, int> state{func()};
43 while (!stop_token.stop_requested()) { 43 while (!stop_token.stop_requested()) {
44 Task task; 44 Task task;
45 { 45 {