public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Martin Liska <marxin@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc r13-3214] ranger: add override keyword
Date: Tue, 11 Oct 2022 06:54:41 +0000 (GMT)	[thread overview]
Message-ID: <20221011065441.B57FC3857416@sourceware.org> (raw)

https://gcc.gnu.org/g:70d81e3a782ca8451c1c6b2c57ed154d20906aa3

commit r13-3214-g70d81e3a782ca8451c1c6b2c57ed154d20906aa3
Author: Martin Liska <mliska@suse.cz>
Date:   Tue Oct 11 08:52:28 2022 +0200

    ranger: add override keyword
    
    Fixes the following clang warning:
    gcc/gimple-range-op.cc:310:16: warning: 'fold_range' overrides a member function but is not marked 'override' [-Winconsistent-missing-override]
    
    gcc/ChangeLog:
    
            * gimple-range-op.cc: Add override keyword.

Diff:
---
 gcc/gimple-range-op.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/gimple-range-op.cc b/gcc/gimple-range-op.cc
index abc33e7af0c..bc4389eb2e1 100644
--- a/gcc/gimple-range-op.cc
+++ b/gcc/gimple-range-op.cc
@@ -308,7 +308,7 @@ public:
   using range_operator_float::fold_range;
   using range_operator_float::op1_range;
   virtual bool fold_range (irange &r, tree type, const frange &lh,
-			   const irange &, relation_kind) const
+			   const irange &, relation_kind) const override
   {
     bool signbit;
     if (lh.signbit_p (signbit))

                 reply	other threads:[~2022-10-11  6:54 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20221011065441.B57FC3857416@sourceware.org \
    --to=marxin@gcc.gnu.org \
    --cc=gcc-cvs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).