libstdc++: Fix some warnings in headers
authorJonathan Wakely <jwakely@redhat.com>
Thu, 29 Oct 2020 11:43:55 +0000 (11:43 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Thu, 29 Oct 2020 11:43:55 +0000 (11:43 +0000)
commiteb6b71b83c9f099808bc50c6a467a0caf4002e50
treef102c93889faa853f8d8eb7a9b05579509675b77
parent9df44b9403312d7cd9678bfb44cae3bb972d6355
libstdc++: Fix some warnings in headers

These are usually suppressed without -Wsystem-headers.

libstdc++-v3/ChangeLog:

* include/bits/hashtable_policy.h (_Local_iterator_base): Cast
value to avoid -Wsign-compare warnings.
* include/bits/regex.h (sub_match::_M_str): Avoid narrowing
conversion.
* include/bits/regex_compiler.tcc (_Compiler::_M_quantifier):
Initialize variable to avoid -Wmaybe-uninitialized warning.
* include/bits/shared_ptr_base.h (_Sp_counted_deleter::_Impl):
Reorder mem-initializer-list to avoid -Wreorder warning.
* include/bits/stl_tree.h (_Rb_tree_impl): Explicitly
initialize base class in copy constructor.
* include/debug/safe_iterator.h (_Safe_iterator): Likewise.
* include/ext/debug_allocator.h: Reorder mem-initializer-list
to avoid -Wreorder warning.
* include/ext/throw_allocator.h (throw_allocator_limit)
(throw_allocator_random): Add user-declared assignment operators
to avoid -Wdeprecated-copy warnings.
libstdc++-v3/include/bits/hashtable_policy.h
libstdc++-v3/include/bits/regex.h
libstdc++-v3/include/bits/regex_compiler.tcc
libstdc++-v3/include/bits/shared_ptr_base.h
libstdc++-v3/include/bits/stl_tree.h
libstdc++-v3/include/debug/safe_iterator.h
libstdc++-v3/include/ext/debug_allocator.h
libstdc++-v3/include/ext/throw_allocator.h