Skip to content

Commit

Permalink
Merge pull request #10642 from rouault/submitjob_coverity
Browse files Browse the repository at this point in the history
CPLJobQueue::SubmitJob(): avoid false-positive coverity warning about…
  • Loading branch information
rouault authored Aug 26, 2024
2 parents 08f689a + f3626d6 commit 96aff89
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 96aff89

Please sign in to comment.