fix warnings
Fix a couple warnings so we can use meson warning level 3. Instances of
the following warnings are found and resolved:
Wreorder
Wsign-compare
Change-Id: Ia223b42aa6bf743cfa0e7042cc3d5a18977459be
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
diff --git a/src/PSUEvent.cpp b/src/PSUEvent.cpp
index f56b281..08101de 100644
--- a/src/PSUEvent.cpp
+++ b/src/PSUEvent.cpp
@@ -98,9 +98,9 @@
std::shared_ptr<std::set<std::string>> combineEvent,
std::shared_ptr<bool> state, const std::string& psuName) :
eventInterface(eventInterface),
- inputDev(io, open(path.c_str(), O_RDONLY)), waitTimer(io), errCount(0),
- path(path), eventName(eventName), assertState(state), asserts(asserts),
- combineEvent(combineEvent), psuName(psuName)
+ asserts(asserts), combineEvent(combineEvent), assertState(state),
+ errCount(0), path(path), eventName(eventName), waitTimer(io),
+ inputDev(io, open(path.c_str(), O_RDONLY)), psuName(psuName)
{
auto found = logID.find(eventName);
if (found == logID.end())