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.
This commit is contained in:
Jonathan Wakely
2024-09-18 15:41:05 +01:00
committed by Jonathan Wakely
parent d842eb5ee6
commit 164c1b1f81

View File

@@ -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;