From b45951ccb350704f0d6233fecb1498698327bd09 Mon Sep 17 00:00:00 2001 From: Alexander Grund Date: Tue, 10 Dec 2024 09:57:13 +0100 Subject: [PATCH] Suppress unused parameter warnings --- include/boost/wave/cpplexer/cpp_lex_token.hpp | 4 ++-- include/boost/wave/grammars/cpp_grammar.hpp | 2 +- include/boost/wave/util/flex_string.hpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/boost/wave/cpplexer/cpp_lex_token.hpp b/include/boost/wave/cpplexer/cpp_lex_token.hpp index 11269dbf1..82d6c747a 100644 --- a/include/boost/wave/cpplexer/cpp_lex_token.hpp +++ b/include/boost/wave/cpplexer/cpp_lex_token.hpp @@ -160,7 +160,7 @@ template inline void * token_data::operator new(std::size_t size) { - BOOST_ASSERT(sizeof(token_data) == size); + BOOST_VERIFY(sizeof(token_data) == size); typedef boost::singleton_pool< token_data_tag, sizeof(token_data) > pool_type; @@ -175,7 +175,7 @@ template inline void token_data::operator delete(void *p, std::size_t size) { - BOOST_ASSERT(sizeof(token_data) == size); + BOOST_VERIFY(sizeof(token_data) == size); typedef boost::singleton_pool< token_data_tag, sizeof(token_data) > pool_type; diff --git a/include/boost/wave/grammars/cpp_grammar.hpp b/include/boost/wave/grammars/cpp_grammar.hpp index e310d43ac..2a3c17eab 100644 --- a/include/boost/wave/grammars/cpp_grammar.hpp +++ b/include/boost/wave/grammars/cpp_grammar.hpp @@ -729,7 +729,7 @@ boost::spirit::classic::tree_parse_info< > cpp_grammar_gen::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; diff --git a/include/boost/wave/util/flex_string.hpp b/include/boost/wave/util/flex_string.hpp index a978f38bd..79962dd7a 100644 --- a/include/boost/wave/util/flex_string.hpp +++ b/include/boost/wave/util/flex_string.hpp @@ -1407,7 +1407,7 @@ class flex_string : private Storage #else template 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