diff --git a/dumux/io/vtkfunction.hh b/dumux/io/vtkfunction.hh
index e5fc35902cee6cddee33c2f50c0ed522da48fd52..9a71e100dc7ba3c6fe0ba8356e60e77fc8607c8a 100644
--- a/dumux/io/vtkfunction.hh
+++ b/dumux/io/vtkfunction.hh
@@ -260,6 +260,8 @@ public:
             DUNE_THROW(Dune::NotImplemented, "Only element or vertex quantities allowed.");
     }
 
+    virtual ~Field() {}
+
     //! return the name of this field
     virtual std::string name () const { return field_->name(); }
 
diff --git a/dumux/multidomain/fvassembler.hh b/dumux/multidomain/fvassembler.hh
index 467f1f53a7c5e65c195ddba0c7bfd3316d32c020..6be6a0e6bbf399891de4e0b89550007bd79bc827 100644
--- a/dumux/multidomain/fvassembler.hh
+++ b/dumux/multidomain/fvassembler.hh
@@ -360,7 +360,7 @@ public:
      * \note calling this turns this into a stationary assembler
      */
     void setTimeManager(std::shared_ptr<const TimeLoop> timeLoop)
-    { timeLoop_ = timeLoop_; isStationaryProblem_ = !(static_cast<bool>(timeLoop)); }
+    { timeLoop_ = timeLoop; isStationaryProblem_ = !(static_cast<bool>(timeLoop)); }
 
     /*!
      * \brief Sets the solution from which to start the time integration. Has to be
diff --git a/dumux/multidomain/subdomainstaggeredlocalassembler.hh b/dumux/multidomain/subdomainstaggeredlocalassembler.hh
index 908d1334732ac712d23cb6d503fcc92619c35f64..93179f2f9af6728b523dcff3cf7fdee5aefd0342 100644
--- a/dumux/multidomain/subdomainstaggeredlocalassembler.hh
+++ b/dumux/multidomain/subdomainstaggeredlocalassembler.hh
@@ -865,7 +865,6 @@ public:
         // get some aliases for convenience
         const auto& fvGeometry = this->fvGeometry();
         const auto& curSol = this->curSol()[domainJ];
-        FaceResidualValue partialDeriv;
 
         // build derivatives with for cell center dofs w.r.t. cell center dofs
         for(auto&& scvf : scvfs(fvGeometry))
diff --git a/dumux/nonlinear/newtonsolver.hh b/dumux/nonlinear/newtonsolver.hh
index f2310aaa0e5d422672d4188745623ddd356f8d10..2045279df5b7b77715232884a8f5e690dae5acb7 100644
--- a/dumux/nonlinear/newtonsolver.hh
+++ b/dumux/nonlinear/newtonsolver.hh
@@ -110,6 +110,8 @@ public:
             partialReassembler_ = std::make_unique<Reassembler>(*assembler_);
     }
 
+    virtual ~NewtonSolver() {}
+
     //! the communicator for parallel runs
     const Communication& comm() const
     { return comm_; }