From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1734) id 540663856252; Thu, 21 Apr 2022 14:45:24 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 540663856252 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Marek Polacek To: gcc-cvs@gcc.gnu.org Subject: [gcc r12-8217] c++: Remove unused parameter X-Act-Checkin: gcc X-Git-Author: Marek Polacek X-Git-Refname: refs/heads/trunk X-Git-Oldrev: 93b65ed9706e2ceb4be7b28c9ff9be759e68a614 X-Git-Newrev: 605a80bb733b225e5e53db0f0298374213cdcd95 Message-Id: <20220421144524.540663856252@sourceware.org> Date: Thu, 21 Apr 2022 14:45:24 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Apr 2022 14:45:24 -0000 https://gcc.gnu.org/g:605a80bb733b225e5e53db0f0298374213cdcd95 commit r12-8217-g605a80bb733b225e5e53db0f0298374213cdcd95 Author: Marek Polacek Date: Thu Apr 21 10:27:38 2022 -0400 c++: Remove unused parameter gcc/cp/ChangeLog: * constexpr.cc (cxx_eval_logical_expression): Remove unused parameter. (cxx_eval_constant_expression) , : Adjust calls to cxx_eval_logical_expression. Diff: --- gcc/cp/constexpr.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/gcc/cp/constexpr.cc b/gcc/cp/constexpr.cc index fa65290e938..47d5113ace2 100644 --- a/gcc/cp/constexpr.cc +++ b/gcc/cp/constexpr.cc @@ -4566,7 +4566,7 @@ cxx_eval_bit_cast (const constexpr_ctx *ctx, tree t, bool *non_constant_p, static tree cxx_eval_logical_expression (const constexpr_ctx *ctx, tree t, tree bailout_value, tree continue_value, - bool, bool *non_constant_p, bool *overflow_p) + bool *non_constant_p, bool *overflow_p) { tree r; tree lhs = cxx_eval_constant_expression (ctx, TREE_OPERAND (t, 0), @@ -7105,7 +7105,6 @@ cxx_eval_constant_expression (const constexpr_ctx *ctx, tree t, case TRUTH_ANDIF_EXPR: r = cxx_eval_logical_expression (ctx, t, boolean_false_node, boolean_true_node, - lval, non_constant_p, overflow_p); break; @@ -7113,7 +7112,6 @@ cxx_eval_constant_expression (const constexpr_ctx *ctx, tree t, case TRUTH_ORIF_EXPR: r = cxx_eval_logical_expression (ctx, t, boolean_true_node, boolean_false_node, - lval, non_constant_p, overflow_p); break;