Skip to content

Commit

Permalink
Unused parameters warning in release mode
Browse files Browse the repository at this point in the history
Fixes #90
  • Loading branch information
daniele77 committed Jan 27, 2021
1 parent 29fef14 commit faf07c5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Expand Up @@ -5,6 +5,8 @@
- Remove boost dependency for local only sessions (issue #83)
- Now you can use standalone asio library instead of boost asio for remote sessions (issue #41)
- Fix missing echo after ctrl-v paste of command (issue #72)
- Remove the symbol BOOST_ASIO_USE_TS_EXECUTOR_AS_DEFAULT (issue #89)
- Fix unused parameters warning in release mode (issue #90)

## [1.2.1] - 2020-08-27

Expand Down
5 changes: 5 additions & 0 deletions include/cli/cli.h
Expand Up @@ -801,7 +801,12 @@ namespace cli
template <typename InputIt>
static void Exec(const F& f, InputIt first, InputIt last)
{
// silence the unused warning in release mode when assert is disabled
static_cast<void>(first);
static_cast<void>(last);

assert(first == last);

f();
}
};
Expand Down

0 comments on commit faf07c5

Please sign in to comment.