]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Fix -Wsystem-headers warnings
authorJonathan Wakely <jwakely@redhat.com>
Sat, 5 Nov 2022 12:35:55 +0000 (12:35 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Tue, 8 Nov 2022 17:35:15 +0000 (17:35 +0000)
commit8f6d25f19bae521c3d028bcdcd69019540b8c3b9
tree7755480f5d6140cc292340860534daad169a34c6
parent9d549401ae8ab334c8cba1c1339dbd3c8e695685
libstdc++: Fix -Wsystem-headers warnings

Fix some problems noticed with -Wsystem-headers.

libstdc++-v3/ChangeLog:

* include/bits/stl_tempbuf.h (_Temporary_buffer): Disable
warnings about get_temporary_buffer being deprecated.
* include/ext/functional (mem_fun1, mem_fun1_ref): Disable
warnings about mem_fun1_t, const_mem_fun1_t, mem_fun1_ref_t and
const_mem_fun1_ref_t being deprecated.
* include/std/array (__array_traits<T, 0>): Remove artificial
attributes which give warnings about being ignored.
* include/std/spanstream (basic_spanbuf::setbuf): Add assertion
and adjust to avoid narrowing warning.
* libsupc++/exception_ptr.h [!__cpp_rtti && !__cpp_exceptions]
(make_exception_ptr): Add missing inline specifier.
libstdc++-v3/include/bits/stl_tempbuf.h
libstdc++-v3/include/ext/functional
libstdc++-v3/include/std/array
libstdc++-v3/include/std/spanstream
libstdc++-v3/libsupc++/exception_ptr.h