From: Jonathan Wakely Date: Sat, 9 Mar 2024 00:19:11 +0000 (+0000) Subject: libstdc++: Remove unused parameters from atomic impl details X-Git-Tag: basepoints/gcc-16~6899 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=283f6e24c6b5c8a1b35003b27bfcad46af25a859;p=thirdparty%2Fgcc.git libstdc++: Remove unused parameters from atomic impl details libstdc++-v3/ChangeLog: * include/bits/atomic_base.h (__atomic_impl::compare_exchange_weak): Remove unused parameter. (__atomic_impl::compare_exchange_strong): Likewise. --- diff --git a/libstdc++-v3/include/bits/atomic_base.h b/libstdc++-v3/include/bits/atomic_base.h index 1c2367b39b6..ae6819f119b 100644 --- a/libstdc++-v3/include/bits/atomic_base.h +++ b/libstdc++-v3/include/bits/atomic_base.h @@ -1118,8 +1118,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION _GLIBCXX_ALWAYS_INLINE bool compare_exchange_weak(_Tp* __ptr, _Val<_Tp>& __expected, _Val<_Tp> __desired, memory_order __success, - memory_order __failure, - bool __check_padding = false) noexcept + memory_order __failure) noexcept { return __atomic_impl::__compare_exchange<_AtomicRef>( *__ptr, __expected, __desired, true, __success, __failure); @@ -1129,8 +1128,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION _GLIBCXX_ALWAYS_INLINE bool compare_exchange_strong(_Tp* __ptr, _Val<_Tp>& __expected, _Val<_Tp> __desired, memory_order __success, - memory_order __failure, - bool __ignore_padding = false) noexcept + memory_order __failure) noexcept { return __atomic_impl::__compare_exchange<_AtomicRef>( *__ptr, __expected, __desired, false, __success, __failure);