diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2024-09-18 15:41:05 +0100 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2024-09-22 17:45:06 +0100 |
commit | 164c1b1f812da5d1e00fc10a415e80f7c508efcb (patch) | |
tree | 97868eeff01c325ac55c18381a62c82163401f08 | |
parent | d842eb5ee6cb4d8a2795730ac88c4c2960f94bf4 (diff) | |
download | gcc-164c1b1f812da5d1e00fc10a415e80f7c508efcb.zip gcc-164c1b1f812da5d1e00fc10a415e80f7c508efcb.tar.gz gcc-164c1b1f812da5d1e00fc10a415e80f7c508efcb.tar.bz2 |
libstdc++: Silence -Wattributes warning in exception_ptr
libstdc++-v3/ChangeLog:
* libsupc++/exception_ptr.h (__exception_ptr::_M_safe_bool_dummy):
Remove __attribute__((const)) from function returning void.
-rw-r--r-- | libstdc++-v3/libsupc++/exception_ptr.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libstdc++-v3/libsupc++/exception_ptr.h b/libstdc++-v3/libsupc++/exception_ptr.h index 7c234ce..ee977a8 100644 --- a/libstdc++-v3/libsupc++/exception_ptr.h +++ b/libstdc++-v3/libsupc++/exception_ptr.h @@ -151,8 +151,7 @@ namespace std _GLIBCXX_VISIBILITY(default) #ifdef _GLIBCXX_EH_PTR_COMPAT // Retained for compatibility with CXXABI_1.3. - void _M_safe_bool_dummy() _GLIBCXX_USE_NOEXCEPT - __attribute__ ((__const__)); + void _M_safe_bool_dummy() _GLIBCXX_USE_NOEXCEPT; bool operator!() const _GLIBCXX_USE_NOEXCEPT __attribute__ ((__pure__)); operator __safe_bool() const _GLIBCXX_USE_NOEXCEPT; |