public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-3214] ranger: add override keyword
@ 2022-10-11  6:54 Martin Liska
  0 siblings, 0 replies; only message in thread
From: Martin Liska @ 2022-10-11  6:54 UTC (permalink / raw)
  To: gcc-cvs

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))

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-10-11  6:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-11  6:54 [gcc r13-3214] ranger: add override keyword Martin Liska

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).