From: Jonathan Wakely Date: Wed, 29 May 2019 14:45:50 +0000 (+0100) Subject: Avoid -Wunused-parameter warnings from testsuite utility X-Git-Tag: upstream/12.2.0~24303 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=65539b1ef311a804e2cc651a58591f79aa6f6638;p=platform%2Fupstream%2Fgcc.git Avoid -Wunused-parameter warnings from testsuite utility * testsuite/util/testsuite_api.h: Remove names of unused parameters. From-SVN: r271741 --- 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 + * 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).