aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2019-05-29 15:45:50 +0100
committerJonathan Wakely <redi@gcc.gnu.org>2019-05-29 15:45:50 +0100
commit65539b1ef311a804e2cc651a58591f79aa6f6638 (patch)
treeb1f6b206938ca844c510b4300f56a638f1652a13
parentb0c0d878a8b5bf39dbea4c192fed26d340524439 (diff)
downloadgcc-65539b1ef311a804e2cc651a58591f79aa6f6638.zip
gcc-65539b1ef311a804e2cc651a58591f79aa6f6638.tar.gz
gcc-65539b1ef311a804e2cc651a58591f79aa6f6638.tar.bz2
Avoid -Wunused-parameter warnings from testsuite utility
* testsuite/util/testsuite_api.h: Remove names of unused parameters. From-SVN: r271741
-rw-r--r--libstdc++-v3/ChangeLog2
-rw-r--r--libstdc++-v3/testsuite/util/testsuite_api.h9
2 files changed, 5 insertions, 6 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index a01b54e..b209460 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,5 +1,7 @@
2019-05-29 Jonathan Wakely <jwakely@redhat.com>
+ * 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 4c5388a..793aa40 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).