[PATCH] Avoid -Wunused-parameter warnings from testsuite utility
Jonathan Wakely
jwakely@redhat.com
Wed May 29 14:45:00 GMT 2019
* testsuite/util/testsuite_api.h: Remove names of unused parameters.
Tested x86_64-linux, committed to trunk.
-------------- next part --------------
commit 0ea1c74e5df4214d4ab03ef264f53e4ef4aa1d87
Author: Jonathan Wakely <jwakely@redhat.com>
Date: Wed May 29 15:19:14 2019 +0100
Avoid -Wunused-parameter warnings from testsuite utility
* testsuite/util/testsuite_api.h: Remove names of unused parameters.
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).
More information about the Libstdc++
mailing list