summaryrefslogtreecommitdiffstats
path: root/src/common/thread_worker.h
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:
const auto lambda = [this, func](std::stop_token stop_token) {
Common::SetCurrentThreadName(thread_name.c_str());
{
- std::conditional_t<with_state, StateType, int> state{func()};
+ [[maybe_unused]] std::conditional_t<with_state, StateType, int> state{func()};
while (!stop_token.stop_requested()) {
Task task;
{