From b848ace76866188701a6a704a9531c4eeb2bc71a Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 4 Jun 2010 06:02:00 -0400 Subject: Allow opt -NDEBUG build to complete without warnings --- src/parser.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/parser.h') diff --git a/src/parser.h b/src/parser.h index aab48830..2693fc79 100644 --- a/src/parser.h +++ b/src/parser.h @@ -61,10 +61,16 @@ class expr_t::parser_t : public noncopyable return lookahead; } +#if !defined(NO_ASSERTS) void push_token(const token_t& tok) const { assert(&tok == &lookahead); use_lookahead = true; } +#else + void push_token(const token_t&) const { + use_lookahead = true; + } +#endif // !defined(NO_ASSERTS) void push_token() const { use_lookahead = true; } -- cgit v1.2.3