phosphor-ipmi-flash: Fix all C++ warnings

Change-Id: I89236b2dab88ca725e269bb8f5b2cbfd271e807a
Signed-off-by: Willy Tu <wltu@google.com>
diff --git a/tools/test/tools_bt_unittest.cpp b/tools/test/tools_bt_unittest.cpp
index a5fab59..2ff5231 100644
--- a/tools/test/tools_bt_unittest.cpp
+++ b/tools/test/tools_bt_unittest.cpp
@@ -57,7 +57,7 @@
     EXPECT_CALL(progMock, start(fakeFileSize));
 
     EXPECT_CALL(sysMock, read(fd, NotNull(), _))
-        .WillOnce(Invoke([&](int fd, void* buf, std::size_t count) {
+        .WillOnce(Invoke([&](int, void* buf, std::size_t count) {
             EXPECT_TRUE(count > bytes.size());
             std::memcpy(buf, bytes.data(), bytes.size());
             return bytes.size();
@@ -110,7 +110,7 @@
     EXPECT_CALL(progMock, start(fakeFileSize));
 
     EXPECT_CALL(sysMock, read(fd, NotNull(), _))
-        .WillOnce(Invoke([&](int fd, void* buf, std::size_t count) {
+        .WillOnce(Invoke([&](int, void* buf, std::size_t count) {
             EXPECT_TRUE(count > bytes.size());
             std::memcpy(buf, bytes.data(), bytes.size());
             return bytes.size();