Closed kuuse closed 4 years ago
An alternative solution:
template<class Event>
state_type no_transition(const Event& event __attribute__((unused))) {
return m_state;
}
BR, Johan
Good point. Cleanest and portable solution IMHO is not specifying parameter names for unused parameters. See https://github.com/tkem/fsmlite/tree/fix/22 for WIP.
Agree. Tested your solution and it works. Thanks for a quick fix! Closing this issue now.
Re-opening this until merge into master branch and released.
Hi,
Great lib, works out of the box. Almost. Test program with
#include "fsm.h"
g++ -g -Wall -Wextra -Werror -std=c++17 prog.cc -o prog
fsm.h:242:47: error: unused parameter ‘event’ [-Werror=unused-parameter]
Fix to silent compiler warning:
Best Regards, Johan