mirror of
https://github.com/gcc-mirror/gcc.git
synced 2026-05-06 14:59:39 +02:00
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:
committed by
Jonathan Wakely
parent
d842eb5ee6
commit
164c1b1f81
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user