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 f3626d6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions port/cpl_worker_thread_pool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -612,6 +612,7 @@ bool CPLJobQueue::SubmitJob(std::function<void()> task)

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

0 comments on commit f3626d6

Please sign in to comment.