Skip to content

Commit b45951c

Browse files
committed
Suppress unused parameter warnings
1 parent 2891b2f commit b45951c

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

include/boost/wave/cpplexer/cpp_lex_token.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ template <typename StringTypeT, typename PositionT>
160160
inline void *
161161
token_data<StringTypeT, PositionT>::operator new(std::size_t size)
162162
{
163-
BOOST_ASSERT(sizeof(token_data<StringTypeT, PositionT>) == size);
163+
BOOST_VERIFY(sizeof(token_data<StringTypeT, PositionT>) == size);
164164
typedef boost::singleton_pool<
165165
token_data_tag, sizeof(token_data<StringTypeT, PositionT>)
166166
> pool_type;
@@ -175,7 +175,7 @@ template <typename StringTypeT, typename PositionT>
175175
inline void
176176
token_data<StringTypeT, PositionT>::operator delete(void *p, std::size_t size)
177177
{
178-
BOOST_ASSERT(sizeof(token_data<StringTypeT, PositionT>) == size);
178+
BOOST_VERIFY(sizeof(token_data<StringTypeT, PositionT>) == size);
179179
typedef boost::singleton_pool<
180180
token_data_tag, sizeof(token_data<StringTypeT, PositionT>)
181181
> pool_type;

include/boost/wave/grammars/cpp_grammar.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -729,7 +729,7 @@ boost::spirit::classic::tree_parse_info<
729729
>
730730
cpp_grammar_gen<LexIteratorT, TokenContainerT>::parse_cpp_grammar (
731731
LexIteratorT const &first, LexIteratorT const &last,
732-
position_type const &act_pos, bool &found_eof,
732+
position_type const &/* act_pos */, bool &found_eof,
733733
token_type &found_directive, token_container_type &found_eoltokens)
734734
{
735735
using namespace boost::spirit::classic;

include/boost/wave/util/flex_string.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1407,7 +1407,7 @@ class flex_string : private Storage
14071407
#else
14081408
template <typename Exception>
14091409
static inline void Enforce(bool condition, Exception*, const char* msg)
1410-
{ BOOST_ASSERT(condition && msg); }
1410+
{ BOOST_VERIFY(condition && msg); }
14111411
#endif // defined(BOOST_WAVE_FLEXSTRING_THROW_ON_ENFORCE)
14121412

14131413
#ifndef NDEBUG

0 commit comments

Comments
 (0)