tests+tools: fix build with clang-5.0

Change-Id: I75eeb01b071c1702517a65a8099e52d4092a4638
Refs: #4278
diff --git a/tests/tools/nfdc/status-fixture.hpp b/tests/tools/nfdc/status-fixture.hpp
index 8c9eb3c..e1974b9 100644
--- a/tests/tools/nfdc/status-fixture.hpp
+++ b/tests/tools/nfdc/status-fixture.hpp
@@ -81,8 +81,9 @@
   fetchStatus()
   {
     nFetchStatusSuccess = 0;
-    module.fetchStatus(controller, [this] { ++nFetchStatusSuccess; },
-                       [this] (uint32_t code, const std::string& reason) {
+    module.fetchStatus(controller,
+                       [this] { ++nFetchStatusSuccess; },
+                       [] (uint32_t code, const std::string& reason) {
                          BOOST_FAIL("fetchStatus failure " << code << " " << reason);
                        },
                        CommandOptions());
diff --git a/tests/tools/nfdc/strategy-choice-module.t.cpp b/tests/tools/nfdc/strategy-choice-module.t.cpp
index c14a446..32a14c9 100644
--- a/tests/tools/nfdc/strategy-choice-module.t.cpp
+++ b/tests/tools/nfdc/strategy-choice-module.t.cpp
@@ -1,5 +1,5 @@
 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
-/**
+/*
  * Copyright (c) 2014-2017,  Regents of the University of California,
  *                           Arizona Board of Regents,
  *                           Colorado State University,
@@ -198,7 +198,7 @@
 
 BOOST_AUTO_TEST_CASE(CannotUnsetDefault)
 {
-  this->processInterest = [this] (const Interest& interest) {
+  this->processInterest = [] (const Interest&) {
     BOOST_ERROR("unexpected command");
   };