Commit 8aed2f2f by Jonathan Wakely Committed by Jonathan Wakely

re PR libstdc++/63219 (Superfluous template parameter in match_result::format overload)

	PR libstdc++/63219
	* include/bits/regex.h (match_results::format): Remove stray template
	parameter.
	* include/bits/regex_compiler.h (_RegexTranslator::_RegexTranslator):
	Remove parameter name to avoid -Wunused-parameter warning.
	* include/bits/regex_executor.h (_State_info::_State_info): Reorder
	mem-initializers to avoid -Wreorder warning.
	* include/bits/regex_executor.tcc (_Executor::_M_word_boundary):
	Remove parameter name to avoid -Wunused-parameter warning.
	* include/bits/regex_scanner.tcc (_Scanner::_M_advance): Add braces
	to avoid -Wempty-body warning when not in debug mode.

From-SVN: r215160
parent 21a16932
2014-09-11 Jonathan Wakely <jwakely@redhat.com>
PR libstdc++/63219
* include/bits/regex.h (match_results::format): Remove stray template
parameter.
* include/bits/regex_compiler.h (_RegexTranslator::_RegexTranslator):
Remove parameter name to avoid -Wunused-parameter warning.
* include/bits/regex_executor.h (_State_info::_State_info): Reorder
mem-initializers to avoid -Wreorder warning.
* include/bits/regex_executor.tcc (_Executor::_M_word_boundary):
Remove parameter name to avoid -Wunused-parameter warning.
* include/bits/regex_scanner.tcc (_Scanner::_M_advance): Add braces
to avoid -Wempty-body warning when not in debug mode.
2014-09-10 Siva Chandra Reddy <sivachandra@google.com> 2014-09-10 Siva Chandra Reddy <sivachandra@google.com>
* python/hook.in: Load the xmethods. * python/hook.in: Load the xmethods.
......
...@@ -1814,7 +1814,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION ...@@ -1814,7 +1814,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
/** /**
* @pre ready() == true * @pre ready() == true
*/ */
template<typename _Out_iter, typename _St, typename _Sa> template<typename _St, typename _Sa>
basic_string<char_type, _St, _Sa> basic_string<char_type, _St, _Sa>
format(const basic_string<char_type, _St, _Sa>& __fmt, format(const basic_string<char_type, _St, _Sa>& __fmt,
match_flag_type __flags = regex_constants::format_default) const match_flag_type __flags = regex_constants::format_default) const
......
...@@ -212,7 +212,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION ...@@ -212,7 +212,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
typedef _CharT _StrTransT; typedef _CharT _StrTransT;
explicit explicit
_RegexTranslator(const _TraitsT& __traits) _RegexTranslator(const _TraitsT&)
{ } { }
_CharT _CharT
......
...@@ -159,7 +159,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION ...@@ -159,7 +159,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
{ {
explicit explicit
_State_info(_StateIdT __start, size_t __n) _State_info(_StateIdT __start, size_t __n)
: _M_start(__start), _M_visited_states(new bool[__n]()) : _M_visited_states(new bool[__n]()), _M_start(__start)
{ } { }
bool _M_visited(_StateIdT __i) bool _M_visited(_StateIdT __i)
......
...@@ -407,7 +407,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION ...@@ -407,7 +407,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
template<typename _BiIter, typename _Alloc, typename _TraitsT, template<typename _BiIter, typename _Alloc, typename _TraitsT,
bool __dfs_mode> bool __dfs_mode>
bool _Executor<_BiIter, _Alloc, _TraitsT, __dfs_mode>:: bool _Executor<_BiIter, _Alloc, _TraitsT, __dfs_mode>::
_M_word_boundary(_State<_TraitsT> __state) const _M_word_boundary(_State<_TraitsT>) const
{ {
// By definition. // By definition.
bool __ans = false; bool __ans = false;
......
...@@ -83,7 +83,9 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION ...@@ -83,7 +83,9 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
else if (_M_state == _S_state_in_brace) else if (_M_state == _S_state_in_brace)
_M_scan_in_brace(); _M_scan_in_brace();
else else
_GLIBCXX_DEBUG_ASSERT(false); {
_GLIBCXX_DEBUG_ASSERT(false);
}
} }
// Differences between styles: // Differences between styles:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment