]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++/regex: Avoid -Wunused-parameter warnings in _Executor
authorPatrick Palka <ppalka@redhat.com>
Thu, 12 Feb 2026 20:17:57 +0000 (15:17 -0500)
committerPatrick Palka <ppalka@redhat.com>
Thu, 12 Feb 2026 20:17:57 +0000 (15:17 -0500)
commit0852c2d9d750afd7ea82227ba04a7654e1495880
treeb26bd6d321448f464a7879f3afd8d712b2310549
parent26713009e1ecef4ed0fc87e21a61fe0d4c1fe344
libstdc++/regex: Avoid -Wunused-parameter warnings in _Executor

Now that _Executor is non-recursive most subroutines no longer use their
_Match_mode parameter (previously it was just passed to recursive _M_dfs
calls).  For now, just make them unnamed to avoid warnings.

libstdc++-v3/ChangeLog:

* include/bits/regex_executor.tcc (_Executor::_M_rep_once_more):
Make unnused _Match_mode parameter unnamed.
(_Executor::_M_handle_repeat): Likewise.
(_Executor::_M_handle_subexpr_begin): Likewise.
(_Executor::_M_handle_subexpr_end): Likewise.
(_Executor::_M_handle_line_begin_assertion): Likewise.
(_Executor::_M_handle_line_end_assertion): Likewise.
(_Executor::_M_handle_match): Likewise.
(_Executor::_M_handle_backref): Likewise.
(_Executor::_M_handle_alternative): Likewise.

Reviewed-by: Jonathan Wakely <jwakely@redhat.com>
libstdc++-v3/include/bits/regex_executor.tcc