]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Remove unused parameters from atomic impl details
authorJonathan Wakely <jwakely@redhat.com>
Sat, 9 Mar 2024 00:19:11 +0000 (00:19 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Thu, 1 Aug 2024 20:56:56 +0000 (21:56 +0100)
libstdc++-v3/ChangeLog:

* include/bits/atomic_base.h (__atomic_impl::compare_exchange_weak):
Remove unused parameter.
(__atomic_impl::compare_exchange_strong): Likewise.

libstdc++-v3/include/bits/atomic_base.h

index 1c2367b39b6629de8c3938525807aa341c3604ba..ae6819f119b6bace2411bcf600121813b2b2f6dd 100644 (file)
@@ -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);