[(pushed)] analyzer: add missing final keyword

Message ID bb106236-c29d-0c14-192a-27f216c37c09@suse.cz
State Committed
Commit ac9230fbe9f52f3c23d1429a28e736428e6b7b0d
Headers
Series [(pushed)] analyzer: add missing final keyword |

Commit Message

Martin Liška Aug. 22, 2022, 3:14 a.m. UTC
  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(-)
  

Patch

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