aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/libsupc++
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2022-11-05 12:35:55 +0000
committerJonathan Wakely <jwakely@redhat.com>2022-11-08 17:35:15 +0000
commit8f6d25f19bae521c3d028bcdcd69019540b8c3b9 (patch)
tree7755480f5d6140cc292340860534daad169a34c6 /libstdc++-v3/libsupc++
parent9d549401ae8ab334c8cba1c1339dbd3c8e695685 (diff)
downloadgcc-8f6d25f19bae521c3d028bcdcd69019540b8c3b9.zip
gcc-8f6d25f19bae521c3d028bcdcd69019540b8c3b9.tar.gz
gcc-8f6d25f19bae521c3d028bcdcd69019540b8c3b9.tar.bz2
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.
Diffstat (limited to 'libstdc++-v3/libsupc++')
-rw-r--r--libstdc++-v3/libsupc++/exception_ptr.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libstdc++-v3/libsupc++/exception_ptr.h b/libstdc++-v3/libsupc++/exception_ptr.h
index fd9ceec..b011810 100644
--- a/libstdc++-v3/libsupc++/exception_ptr.h
+++ b/libstdc++-v3/libsupc++/exception_ptr.h
@@ -280,7 +280,7 @@ namespace std _GLIBCXX_VISIBILITY(default)
// instead of a working one compiled with RTTI and/or exceptions enabled.
template<typename _Ex>
__attribute__ ((__always_inline__))
- exception_ptr
+ inline exception_ptr
make_exception_ptr(_Ex) _GLIBCXX_USE_NOEXCEPT
{ return exception_ptr(); }
#endif