mirror of
https://git.suyu.dev/suyu/suyu
synced 2024-10-31 20:37:52 +00:00
thread_worker: Fix compile time error
state is unused in the branch where with_state is false
This commit is contained in:
parent
db46f8a70c
commit
75059c46d6
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue