aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;