Skip to content

Commit

Permalink
Merge pull request #234 from Flamefire/unused
Browse files Browse the repository at this point in the history
Suppress unused parameter warnings
  • Loading branch information
jefftrull authored Dec 10, 2024
2 parents 2891b2f + b45951c commit 1d71704
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions include/boost/wave/cpplexer/cpp_lex_token.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ template <typename StringTypeT, typename PositionT>
inline void *
token_data<StringTypeT, PositionT>::operator new(std::size_t size)
{
BOOST_ASSERT(sizeof(token_data<StringTypeT, PositionT>) == size);
BOOST_VERIFY(sizeof(token_data<StringTypeT, PositionT>) == size);
typedef boost::singleton_pool<
token_data_tag, sizeof(token_data<StringTypeT, PositionT>)
> pool_type;
Expand All @@ -175,7 +175,7 @@ template <typename StringTypeT, typename PositionT>
inline void
token_data<StringTypeT, PositionT>::operator delete(void *p, std::size_t size)
{
BOOST_ASSERT(sizeof(token_data<StringTypeT, PositionT>) == size);
BOOST_VERIFY(sizeof(token_data<StringTypeT, PositionT>) == size);
typedef boost::singleton_pool<
token_data_tag, sizeof(token_data<StringTypeT, PositionT>)
> pool_type;
Expand Down
2 changes: 1 addition & 1 deletion include/boost/wave/grammars/cpp_grammar.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -729,7 +729,7 @@ boost::spirit::classic::tree_parse_info<
>
cpp_grammar_gen<LexIteratorT, TokenContainerT>::parse_cpp_grammar (
LexIteratorT const &first, LexIteratorT const &last,
position_type const &act_pos, bool &found_eof,
position_type const &/* act_pos */, bool &found_eof,
token_type &found_directive, token_container_type &found_eoltokens)
{
using namespace boost::spirit::classic;
Expand Down
2 changes: 1 addition & 1 deletion include/boost/wave/util/flex_string.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1407,7 +1407,7 @@ class flex_string : private Storage
#else
template <typename Exception>
static inline void Enforce(bool condition, Exception*, const char* msg)
{ BOOST_ASSERT(condition && msg); }
{ BOOST_VERIFY(condition && msg); }
#endif // defined(BOOST_WAVE_FLEXSTRING_THROW_ON_ENFORCE)

#ifndef NDEBUG
Expand Down

0 comments on commit 1d71704

Please sign in to comment.