Skip to content

Commit

Permalink
CPLJobQueue::SubmitJob(): avoid false-positive coverity warning about…
Browse files Browse the repository at this point in the history
… this not being initialized
  • Loading branch information
rouault committed Aug 25, 2024
1 parent 3aa4582 commit fac5d0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion port/cpl_worker_thread_pool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,7 @@ bool CPLJobQueue::SubmitJob(std::function<void()> task)

// cppcheck-suppress knownConditionTrueFalse
return m_poPool->SubmitJob(
[this, task]
[=]
{
task();
DeclareJobFinished();
Expand Down

0 comments on commit fac5d0c

Please sign in to comment.