aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/include/std/future
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2023-08-08 22:01:36 +0100
committerJonathan Wakely <jwakely@redhat.com>2023-08-09 15:19:15 +0100
commitaf89c7792d722b7c7c2568bd4dfd9c2b34eeb4f9 (patch)
treeed8f0d476d3ed2f0ad223941ce2eca2336a938ac /libstdc++-v3/include/std/future
parent008e439f34d4b356825a6c9b70245143f00bd353 (diff)
downloadgcc-af89c7792d722b7c7c2568bd4dfd9c2b34eeb4f9.zip
gcc-af89c7792d722b7c7c2568bd4dfd9c2b34eeb4f9.tar.gz
gcc-af89c7792d722b7c7c2568bd4dfd9c2b34eeb4f9.tar.bz2
libstdc++: Fix some -Wunused-parameter warnings
libstdc++-v3/ChangeLog: * include/bits/alloc_traits.h (allocate): Add [[maybe_unused]] attribute. * include/bits/regex_executor.tcc: Remove name of unused parameter. * include/bits/shared_ptr_atomic.h (atomic_is_lock_free): Likewise. * include/bits/stl_uninitialized.h: Likewise. * include/bits/streambuf_iterator.h (operator==): Likewise. * include/bits/uses_allocator.h: Likewise. * include/c_global/cmath (isfinite, isinf, isnan): Likewise. * include/std/chrono (zoned_time): Likewise. * include/std/future (__future_base::_S_allocate_result): Likewise. (packaged_task): Likewise. * include/std/optional (_Optional_payload_base): Likewise. * include/std/scoped_allocator (__inner_type_impl): Likewise. * include/std/tuple (_Tuple_impl): Likewise.
Diffstat (limited to 'libstdc++-v3/include/std/future')
-rw-r--r--libstdc++-v3/include/std/future4
1 files changed, 2 insertions, 2 deletions
diff --git a/libstdc++-v3/include/std/future b/libstdc++-v3/include/std/future
index 95b413a..b94ae0b 100644
--- a/libstdc++-v3/include/std/future
+++ b/libstdc++-v3/include/std/future
@@ -314,7 +314,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
// Keep it simple for std::allocator.
template<typename _Res, typename _Tp>
static _Ptr<_Result<_Res>>
- _S_allocate_result(const std::allocator<_Tp>& __a)
+ _S_allocate_result(const std::allocator<_Tp>&)
{
return _Ptr<_Result<_Res>>(new _Result<_Res>);
}
@@ -1574,7 +1574,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
// _GLIBCXX_RESOLVE_LIB_DEFECTS
// 2095. missing constructors needed for uses-allocator construction
template<typename _Allocator>
- packaged_task(allocator_arg_t, const _Allocator& __a) noexcept
+ packaged_task(allocator_arg_t, const _Allocator&) noexcept
{ }
template<typename _Allocator>