From: redi Date: Wed, 29 May 2019 14:45:50 +0000 (+0000) Subject: Avoid -Wunused-parameter warnings from testsuite utility X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=913f5ef930a16fd43f0bdc6aec83802601dc42be;p=thirdparty%2Fgcc.git Avoid -Wunused-parameter warnings from testsuite utility * testsuite/util/testsuite_api.h: Remove names of unused parameters. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@271741 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index a01b54e8b63b..b209460b21f6 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 4c5388ac91ff..793aa40f449c 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).