summaryrefslogtreecommitdiff
path: root/src/state_machine.hpp
diff options
context:
space:
mode:
authorPrzemyslaw Czarnowski <przemyslaw.hawrylewicz.czarnowski@intel.com>2022-01-26 18:51:08 +0300
committerGitHub <noreply@github.com>2022-01-26 18:51:08 +0300
commit8542fa62c13306e8e8cc623183f105a868a36b6c (patch)
tree34c1706af99fe436a247d2ac49e6fb0faa8f29c2 /src/state_machine.hpp
parent6165e07cd0ef6da314ed1ef4f58fe47b7d8112db (diff)
downloadvirtual-media-8542fa62c13306e8e8cc623183f105a868a36b6c.tar.xz
Add -Wextra, remove warnings (#1)
Removed all -Wextra warnings in VM sources. -Wno-unused-parameter has to be disabled due to lots of such warnings in sdbusplus. Tested: Compilation generates no warnings Signed-off-by: Przemyslaw Czarnowski <przemyslaw.hawrylewicz.czarnowski@intel.com>
Diffstat (limited to 'src/state_machine.hpp')
-rw-r--r--src/state_machine.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/state_machine.hpp b/src/state_machine.hpp
index 3e525cf..259802c 100644
--- a/src/state_machine.hpp
+++ b/src/state_machine.hpp
@@ -53,7 +53,7 @@ struct MountPointStateMachine : public interfaces::MountPointStateMachine
{
state = std::move(newState);
LogMsg(Logger::Info, name, " state changed to ", state->getStateName());
- if (newState = state->onEnter())
+ if ((newState = state->onEnter()))
{
changeState(std::move(newState));
}