aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2021-07-06 14:08:15 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2021-07-06 15:26:30 +0300
commit402d446f534cc09a6b5048f2ef588d736bb3ac39 (patch)
treea71828617221b46e7eb2267a2ba9f5b4659e7176
parent2359cd2a404e3dfed40d5c714b9c58acfbbaddc3 (diff)
Fix 'lambda capture is not used' warnings
-rw-r--r--bbot/worker/worker.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/bbot/worker/worker.cxx b/bbot/worker/worker.cxx
index edbad5c..b512245 100644
--- a/bbot/worker/worker.cxx
+++ b/bbot/worker/worker.cxx
@@ -326,7 +326,7 @@ run_cmd (step_id step,
{
// Trace, log, and save the command line.
//
- auto cmdc = [step, &t, &log, &bkp_step, &next_cmd, &prompt, &prompt_step]
+ auto cmdc = [&t, &log, &next_cmd, &prompt_step]
(const char* c[], size_t n)
{
std::ostringstream os;
@@ -381,7 +381,9 @@ run_cmd (step_id step,
// performance concern.
//
if (regex_search (l.begin (),
- l.size () < 512 ? l.end () : l.begin () + 512,
+ (l.size () < 512
+ ? l.end ()
+ : l.begin () + 512),
re))
{
r = result_status::warning;