]> gcc.gnu.org Git - gcc.git/commitdiff
analyzer: fix -Wunused-parameter warnings
authorDavid Malcolm <dmalcolm@redhat.com>
Thu, 7 Sep 2023 20:17:56 +0000 (16:17 -0400)
committerDavid Malcolm <dmalcolm@redhat.com>
Thu, 7 Sep 2023 20:17:56 +0000 (16:17 -0400)
gcc/analyzer/ChangeLog:
* region-model.h: fix -Wunused-parameter warnings

Signed-off-by: David Malcolm <dmalcolm@redhat.com>
gcc/analyzer/region-model.h

index 625f68805361d016b4e63cfd38dd890a93a4db5d..1ac3a32b7a4152e80f118a95dbce5a1e74aa66e6 100644 (file)
@@ -793,8 +793,8 @@ class region_model_context
 class noop_region_model_context : public region_model_context
 {
 public:
-  bool warn (std::unique_ptr<pending_diagnostic> d,
-            const stmt_finder *custom_finder) override { return false; }
+  bool warn (std::unique_ptr<pending_diagnostic>,
+            const stmt_finder *) override { return false; }
   void add_note (std::unique_ptr<pending_note>) override;
   void add_event (std::unique_ptr<checker_event>) override;
   void on_svalue_leak (const svalue *) override {}
@@ -1200,7 +1200,7 @@ class test_region_model_context : public noop_region_model_context
 {
 public:
   bool warn (std::unique_ptr<pending_diagnostic> d,
-            const stmt_finder *custom_finder) final override
+            const stmt_finder *) final override
   {
     m_diagnostics.safe_push (d.release ());
     return true;
This page took 0.061915 seconds and 5 git commands to generate.