From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1851) id 6336F3851158; Mon, 7 Nov 2022 08:51:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6336F3851158 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1667811088; bh=qA7vdPphbJNxS0I4KMrAoSn4E3DMskeSt14NJomYzYw=; h=From:To:Subject:Date:From; b=grmApt7uWGG9XT53IJRjqTsPTpLLLUuCH1+dlyn4MCX5Rfv2ijN/N30RRaozSv+YU Eb8KX0CirPmxRGDKTitMFC5hEPMOAH311o924/EQYF0RYVDdnE/m2YvqcCCd3XqJQW 5IOhytQOuQ85MtRlikRE6yfvMhIMHj4+gSavDyNQ= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Martin Liska To: gcc-cvs@gcc.gnu.org Subject: [gcc r13-3747] Mitigate clang warnings: X-Act-Checkin: gcc X-Git-Author: Martin Liska X-Git-Refname: refs/heads/master X-Git-Oldrev: 96c053335c7329ecd6c37f395b479994bc187d3a X-Git-Newrev: 33dc1bacc3d4f13bf4f5bc321780452591c32861 Message-Id: <20221107085128.6336F3851158@sourceware.org> Date: Mon, 7 Nov 2022 08:51:28 +0000 (GMT) List-Id: https://gcc.gnu.org/g:33dc1bacc3d4f13bf4f5bc321780452591c32861 commit r13-3747-g33dc1bacc3d4f13bf4f5bc321780452591c32861 Author: Martin Liska Date: Mon Nov 7 09:50:21 2022 +0100 Mitigate clang warnings: gcc/range-op.cc:1752:16: warning: 'wi_fold' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] gcc/range-op.cc:1757:16: warning: 'wi_op_overflows' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] gcc/range-op.cc:1759:16: warning: 'op1_range' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] gcc/range-op.cc:1763:16: warning: 'op2_range' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] gcc/range-op.cc:1928:16: warning: 'wi_fold' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] gcc/range-op.cc:1933:16: warning: 'wi_op_overflows' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] gcc/ChangeLog: * range-op.cc: Add final override keywords. Diff: --- gcc/range-op.cc | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/gcc/range-op.cc b/gcc/range-op.cc index 25c004d8287..5e94c3d2282 100644 --- a/gcc/range-op.cc +++ b/gcc/range-op.cc @@ -1753,17 +1753,18 @@ public: const wide_int &lh_lb, const wide_int &lh_ub, const wide_int &rh_lb, - const wide_int &rh_ub) const; + const wide_int &rh_ub) const final override; virtual bool wi_op_overflows (wide_int &res, tree type, - const wide_int &w0, const wide_int &w1) const; + const wide_int &w0, const wide_int &w1) + const final override; virtual bool op1_range (irange &r, tree type, const irange &lhs, const irange &op2, - relation_trio) const; + relation_trio) const final override; virtual bool op2_range (irange &r, tree type, const irange &lhs, const irange &op1, - relation_trio) const; + relation_trio) const final override; } op_mult; bool @@ -1929,9 +1930,10 @@ public: const wide_int &lh_lb, const wide_int &lh_ub, const wide_int &rh_lb, - const wide_int &rh_ub) const; + const wide_int &rh_ub) const final override; virtual bool wi_op_overflows (wide_int &res, tree type, - const wide_int &, const wide_int &) const; + const wide_int &, const wide_int &) + const final override; virtual bool fold_range (irange &r, tree type, const irange &lh, const irange &rh, relation_trio trio) const final override;