Skip to content

Commit

Permalink
warnings cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
kris-jusiak committed Jan 28, 2016
1 parent e905dd7 commit 0646ef1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion example/errors/not_configurable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,7 @@ struct not_configurable {
}
};

int main() { msm::sm<not_configurable> sm; }
int main() {
msm::sm<not_configurable> sm;
(void)sm;
}
6 changes: 3 additions & 3 deletions example/logging.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ void log_process_event(const TEvent&) {
printf("[%s][process_event] %s\n", typeid(SM).name(), typeid(TEvent).name());
}

template <class SM, class TAction, class TEvent>
void log_guard(const TAction&, const TEvent&, bool result) {
printf("[%s][guard] %s %s %s\n", typeid(SM).name(), typeid(TAction).name(), typeid(TEvent).name(),
template <class SM, class TGuard, class TEvent>
void log_guard(const TGuard&, const TEvent&, bool result) {
printf("[%s][guard] %s %s %s\n", typeid(SM).name(), typeid(TGuard).name(), typeid(TEvent).name(),
(result ? "[OK]" : "[Reject]"));
}

Expand Down

0 comments on commit 0646ef1

Please sign in to comment.