aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2024-03-09 00:19:11 +0000
committerJonathan Wakely <redi@gcc.gnu.org>2024-08-01 21:56:56 +0100
commit283f6e24c6b5c8a1b35003b27bfcad46af25a859 (patch)
tree0fa9f0322765eb5363a6db46328b9b08993791e0
parente1729eb80489e6c8e03d7c9a072736350407c7f4 (diff)
downloadgcc-283f6e24c6b5c8a1b35003b27bfcad46af25a859.zip
gcc-283f6e24c6b5c8a1b35003b27bfcad46af25a859.tar.gz
gcc-283f6e24c6b5c8a1b35003b27bfcad46af25a859.tar.bz2
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.
-rw-r--r--libstdc++-v3/include/bits/atomic_base.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/libstdc++-v3/include/bits/atomic_base.h b/libstdc++-v3/include/bits/atomic_base.h
index 1c2367b..ae6819f 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);