Skip to content

Commit a9eb924

Browse files
committed
Fixed warning 'captured structured bindings are a C++20 extension'
1 parent a37b0e3 commit a9eb924

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/dotrunner.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -397,14 +397,15 @@ bool DotRunner::run(const DotJobs &dotJobs)
397397
{
398398
if (cmd.numDotFiles>0)
399399
{
400-
auto process = [this,cmd,dirStr]() -> size_t
400+
auto locDirStr = dirStr;
401+
auto process = [this,cmd,locDirStr]() -> size_t
401402
{
402403
int exitCode;
403404
if ((exitCode = Portable::system(m_dotExe, cmd.arguments, FALSE)) != 0)
404405
{
405406
err_full(cmd.firstJob->srcFile, 1,
406407
"Problems running dot: exit code={}, command='{}', dir='{}', arguments='{}'",
407-
exitCode, m_dotExe, dirStr, cmd.arguments);
408+
exitCode, m_dotExe, locDirStr, cmd.arguments);
408409
}
409410
return cmd.numDotFiles;
410411
};

0 commit comments

Comments
 (0)