]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
ranger: add override keyword
authorMartin Liska <mliska@suse.cz>
Tue, 11 Oct 2022 06:52:28 +0000 (08:52 +0200)
committerMartin Liska <mliska@suse.cz>
Tue, 11 Oct 2022 06:53:13 +0000 (08:53 +0200)
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.

gcc/gimple-range-op.cc

index abc33e7af0ce879f0d9eeb8641f19a831ead0f2e..bc4389eb2e14d0690cbfb054e002d2efd5b017a3 100644 (file)
@@ -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))