libstdc++: Fix some warnings in headers
authorJonathan Wakely <jwakely@redhat.com>
Thu, 29 Oct 2020 22:47:22 +0000 (22:47 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Thu, 29 Oct 2020 22:47:22 +0000 (22:47 +0000)
commitd7aa21a3c78874743a42ffc1af3493ecb665496f
tree6e6bfb3e0b9115156a774eceaaa6818ca3b71366
parent52ddf0d458f063f6c9e07e726f9b46206f71e4c4
libstdc++: Fix some warnings in headers

These are usually suppressed in system headers, but should be fixed
anyway.

libstdc++-v3/ChangeLog:

* include/bits/parse_numbers.h (_Select_int_base): Avoid
narrowing conversion in constant expression.
* include/experimental/buffer (buffer_copy): Avoid narrowing
conversion.
* include/experimental/internet (hash<>::operator()): Do not
use deprecated 'argument_type' member.
* include/std/variant (variant::emplace): Use cast instead
of implicit conversion from size_t to narrower unsigned type.
libstdc++-v3/include/bits/parse_numbers.h
libstdc++-v3/include/experimental/buffer
libstdc++-v3/include/experimental/internet
libstdc++-v3/include/std/variant