NVMeSensor: Fix -Wreorder warnings
Make the member initialiser list order match the struct member order.
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Change-Id: I1b47ebdf44e9a7459b5608a02cb5d15b7226820f
diff --git a/src/NVMeSensor.cpp b/src/NVMeSensor.cpp
index 24f3fd4..19ed9a8 100644
--- a/src/NVMeSensor.cpp
+++ b/src/NVMeSensor.cpp
@@ -387,7 +387,7 @@
}
NVMeContext::NVMeContext(boost::asio::io_service& io, int rootBus) :
- rootBus(rootBus), scanTimer(io), nvmeSlaveSocket(io), mctpResponseTimer(io)
+ scanTimer(io), rootBus(rootBus), mctpResponseTimer(io), nvmeSlaveSocket(io)
{
nvmeSlaveSocket.assign(boost::asio::ip::tcp::v4(),
nvmeMCTP::getInFd(rootBus));
@@ -440,7 +440,7 @@
std::move(thresholdsIn), sensorConfiguration,
"xyz.openbmc_project.Configuration.NVMe", maxReading, minReading,
conn, PowerState::on),
- objServer(objectServer), bus(busNumber)
+ bus(busNumber), objServer(objectServer)
{
sensorInterface = objectServer.add_interface(
"/xyz/openbmc_project/sensors/temperature/" + name,