From 65539b1ef311a804e2cc651a58591f79aa6f6638 Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Wed, 29 May 2019 15:45:50 +0100 Subject: [PATCH] Avoid -Wunused-parameter warnings from testsuite utility * testsuite/util/testsuite_api.h: Remove names of unused parameters. From-SVN: r271741 --- libstdc++-v3/ChangeLog | 2 ++ libstdc++-v3/testsuite/util/testsuite_api.h | 9 +++------ 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index a01b54e8b63..b209460b21f 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,5 +1,7 @@ 2019-05-29 Jonathan Wakely + * testsuite/util/testsuite_api.h: Remove names of unused parameters. + PR libstdc++/85494 use rdseed and rand_s in std::random_device * acinclude.m4 (GLIBCXX_CHECK_X86_RDSEED): Define macro to check if the assembler supports rdseed. diff --git a/libstdc++-v3/testsuite/util/testsuite_api.h b/libstdc++-v3/testsuite/util/testsuite_api.h index 4c5388ac91f..793aa40f449 100644 --- a/libstdc++-v3/testsuite/util/testsuite_api.h +++ b/libstdc++-v3/testsuite/util/testsuite_api.h @@ -113,18 +113,15 @@ namespace __gnu_test // For 26 numeric algorithms requirements, need addable, // subtractable, multiplicable. inline NonDefaultConstructible - operator+(const NonDefaultConstructible& lhs, - const NonDefaultConstructible& rhs) + operator+(const NonDefaultConstructible&, const NonDefaultConstructible&) { return NonDefaultConstructible(1); } inline NonDefaultConstructible - operator-(const NonDefaultConstructible& lhs, - const NonDefaultConstructible& rhs) + operator-(const NonDefaultConstructible&, const NonDefaultConstructible&) { return NonDefaultConstructible(1); } inline NonDefaultConstructible - operator*(const NonDefaultConstructible& lhs, - const NonDefaultConstructible& rhs) + operator*(const NonDefaultConstructible&, const NonDefaultConstructible&) { return NonDefaultConstructible(1); } // Like unary_function, but takes no argument. (ie, void). -- 2.30.2