* [PATCH (pushed)] ranger: add override keyword
@ 2022-10-11 6:54 Martin Liška
0 siblings, 0 replies; only message in thread
From: Martin Liška @ 2022-10-11 6:54 UTC (permalink / raw)
To: gcc-patches; +Cc: Aldy Hernandez
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 | 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))
--
2.37.3
^ 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 [PATCH (pushed)] ranger: add override keyword Martin Liška
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).