public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH (pushed)] analyzer: add missing final keyword
@ 2022-08-22  3:14 Martin Liška
  0 siblings, 0 replies; only message in thread
From: Martin Liška @ 2022-08-22  3:14 UTC (permalink / raw)
  To: gcc-patches

Fixes the following clang warning:
gcc/analyzer/region-model.cc:5096:8: warning: 'subclass_equal_p' overrides a member function but is not marked 'override' [-Winconsistent-missing-override]

gcc/analyzer/ChangeLog:

	* region-model.cc: Add missing final keyword.
---
 gcc/analyzer/region-model.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/analyzer/region-model.cc b/gcc/analyzer/region-model.cc
index ec29be259b5..5a64c00ef14 100644
--- a/gcc/analyzer/region-model.cc
+++ b/gcc/analyzer/region-model.cc
@@ -5093,7 +5093,7 @@ public:
     return "float_as_size_arg_diagnostic";
   }
 
-  bool subclass_equal_p (const pending_diagnostic &other) const
+  bool subclass_equal_p (const pending_diagnostic &other) const final override
   {
     return same_tree_p (m_arg, ((const float_as_size_arg &) other).m_arg);
   }
-- 
2.37.2


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

only message in thread, other threads:[~2022-08-22  3:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-22  3:14 [PATCH (pushed)] analyzer: add missing final 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).