From: Ulya Trofimovich Date: Sat, 13 Jul 2019 18:00:12 +0000 (+0100) Subject: Marked a few debug variables as unused to avoid warnings in release builds. X-Git-Tag: 1.2~24 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5733b55e188ac99275c3c60033e13531c8c9ae72;p=re2c Marked a few debug variables as unused to avoid warnings in release builds. --- diff --git a/lib/regexec_nfa_posix_backward.cc b/lib/regexec_nfa_posix_backward.cc index 8fa08d71..020de2d3 100644 --- a/lib/regexec_nfa_posix_backward.cc +++ b/lib/regexec_nfa_posix_backward.cc @@ -257,7 +257,8 @@ void closure_posix(psimctx_t &ctx) } } -static int32_t precedence(psimctx_t &ctx, const conf_t &x, const conf_t &y) +static int32_t precedence(psimctx_t &ctx, const conf_t &x + , const conf_t &y RE2C_GXX_ATTRIBUTE((unused))) { DASSERT(x.state == y.state); const size_t idx = index(x.state, ctx.nfa); diff --git a/lib/regexec_nfa_posix_kuklewicz.cc b/lib/regexec_nfa_posix_kuklewicz.cc index d00fd948..649122a5 100644 --- a/lib/regexec_nfa_posix_kuklewicz.cc +++ b/lib/regexec_nfa_posix_kuklewicz.cc @@ -275,8 +275,8 @@ int32_t khistory_t::precedence(ctx_t &ctx std::vector &p1 = ctx.history.path1, &p2 = ctx.history.path2; const int32_t - n1 = subhistory_list(ctx.history, p1, x.thist, t), - n2 = subhistory_list(ctx.history, p2, y.thist, t); + n1 RE2C_GXX_ATTRIBUTE((unused)) = subhistory_list(ctx.history, p1, x.thist, t), + n2 RE2C_GXX_ATTRIBUTE((unused)) = subhistory_list(ctx.history, p2, y.thist, t); DASSERT(n1 == n2); std::vector::const_reverse_iterator