Removed unused variables
Change-Id: I589b9cdd6564747945bd88923b1c7dd35ff4fa47
Signed-off-by: James Feist <james.feist@linux.intel.com>
diff --git a/src/NVMeSensor.cpp b/src/NVMeSensor.cpp
index 15a0d14..cbc88ec 100644
--- a/src/NVMeSensor.cpp
+++ b/src/NVMeSensor.cpp
@@ -112,8 +112,6 @@
} // namespace nvmeMCTP
-static int lastQueriedDeviceIndex = -1;
-
void readResponse(const std::shared_ptr<NVMeContext>& nvmeDevice)
{
nvmeDevice->nvmeSlaveSocket.async_wait(
@@ -226,7 +224,6 @@
nvmeDevice->mctpResponseTimer.async_wait(
[sensor, nvmeDevice](const boost::system::error_code errorCode) {
- constexpr const size_t errorThreshold = 5;
if (errorCode)
{
// timer cancelled successfully
@@ -426,7 +423,7 @@
}
NVMeSensor::NVMeSensor(sdbusplus::asio::object_server& objectServer,
- boost::asio::io_service& io,
+ boost::asio::io_service&,
std::shared_ptr<sdbusplus::asio::connection>& conn,
const std::string& sensorName,
std::vector<thresholds::Threshold>&& _thresholds,
diff --git a/src/NVMeSensorMain.cpp b/src/NVMeSensorMain.cpp
index 1e02a4c..0552fad 100644
--- a/src/NVMeSensorMain.cpp
+++ b/src/NVMeSensorMain.cpp
@@ -159,7 +159,7 @@
boost::asio::deadline_timer filterTimer(io);
std::function<void(sdbusplus::message::message&)> eventHandler =
[&filterTimer, &io, &objectServer,
- &systemBus](sdbusplus::message::message& message) {
+ &systemBus](sdbusplus::message::message&) {
// this implicitly cancels the timer
filterTimer.expires_from_now(boost::posix_time::seconds(1));