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-2306] fix -Winconsistent-missing-override clang warning
Date: Wed, 31 Aug 2022 12:18:25 +0000 (GMT)	[thread overview]
Message-ID: <20220831121825.C3FA3383E077@sourceware.org> (raw)

https://gcc.gnu.org/g:cc95bca72f6e7f54c4adb6d332f881c277746366

commit r13-2306-gcc95bca72f6e7f54c4adb6d332f881c277746366
Author: Martin Liska <mliska@suse.cz>
Date:   Wed Aug 31 14:12:48 2022 +0200

    fix -Winconsistent-missing-override clang warning
    
    Fixes:
    gcc/value-range.h:357:16: warning: 'set_nonnegative' overrides
    a member function but is not marked 'override' [-Winconsistent-missing-override]
    
    gcc/ChangeLog:
    
            * value-range.h: Add override.

Diff:
---
 gcc/value-range.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/value-range.h b/gcc/value-range.h
index 07379d58f88..b25dd30d88a 100644
--- a/gcc/value-range.h
+++ b/gcc/value-range.h
@@ -354,7 +354,7 @@ public:
   virtual bool nonzero_p () const;
   virtual void set_nonzero (tree type);
   virtual void set_zero (tree type);
-  virtual void set_nonnegative (tree type);
+  virtual void set_nonnegative (tree type) override;
   frange& operator= (const frange &);
   bool operator== (const frange &) const;
   bool operator!= (const frange &r) const { return !(*this == r); }

                 reply	other threads:[~2022-08-31 12:18 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=20220831121825.C3FA3383E077@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).