[gcc r14-3767] libstdc++: Avoid -Wunused-parameter warning in testsuite helper

Jonathan Wakely redi@gcc.gnu.org
Thu Sep 7 07:11:13 GMT 2023


https://gcc.gnu.org/g:833733702a7037b175f15daee85df1d64140ec05

commit r14-3767-g833733702a7037b175f15daee85df1d64140ec05
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Tue Sep 5 11:24:09 2023 +0100

    libstdc++: Avoid -Wunused-parameter warning in testsuite helper
    
    libstdc++-v3/ChangeLog:
    
            * testsuite/util/testsuite_iterators.h (is_customization_point_object):
            Remove parameter name.

Diff:
---
 libstdc++-v3/testsuite/util/testsuite_iterators.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libstdc++-v3/testsuite/util/testsuite_iterators.h b/libstdc++-v3/testsuite/util/testsuite_iterators.h
index 55045e48d560..d296a2cf18c9 100644
--- a/libstdc++-v3/testsuite/util/testsuite_iterators.h
+++ b/libstdc++-v3/testsuite/util/testsuite_iterators.h
@@ -916,7 +916,7 @@ namespace __gnu_test
   // Test for basic properties of C++20 16.3.3.6 [customization.point.object].
   template<typename T>
     constexpr bool
-    is_customization_point_object(T& obj) noexcept
+    is_customization_point_object(T&) noexcept
     {
       // A [CPO] is a function object with a literal class type.
       static_assert( std::is_class_v<T> || std::is_union_v<T> );


More information about the Gcc-cvs mailing list