diff --git a/MeshGeoToolsLib/IdentifySubdomainMesh.cpp b/MeshGeoToolsLib/IdentifySubdomainMesh.cpp
index bf9ca67a1ea34984278f02c099ad87fcfe1b5ed3..08ddce77bf8b82c8f76f7e27155c272fb6157e5b 100644
--- a/MeshGeoToolsLib/IdentifySubdomainMesh.cpp
+++ b/MeshGeoToolsLib/IdentifySubdomainMesh.cpp
@@ -128,7 +128,9 @@ std::vector<std::vector<std::size_t>> identifySubdomainMeshElements(
                 "Corresponding bulk mesh node ids are:",
                 e->getID());
             for (auto const i : element_node_ids_bulk)
+            {
                 ERR("\t{:d}", i);
+            }
             OGS_FATAL(
                 "Expect at least one element to be found in the bulk mesh.");
         }
diff --git a/MeshLib/MeshGenerators/MeshLayerMapper.cpp b/MeshLib/MeshGenerators/MeshLayerMapper.cpp
index 1c7f87437852e44568239164252a20efcd0298e4..9fdd2fa6a033a4566d29a906c9b1ca22ba795c17 100644
--- a/MeshLib/MeshGenerators/MeshLayerMapper.cpp
+++ b/MeshLib/MeshGenerators/MeshLayerMapper.cpp
@@ -259,7 +259,7 @@ void MeshLayerMapper::addLayerToMesh(const MeshLib::Mesh& dem_mesh,
                 break;
             case 5:
             {
-                std::array<MeshLib::Node*, 5> pyramid_nodes;
+                std::array<MeshLib::Node*, 5> pyramid_nodes{};
                 pyramid_nodes[0] = new_elem_nodes[pyramid_base[missing_idx][0]];
                 pyramid_nodes[1] = new_elem_nodes[pyramid_base[missing_idx][1]];
                 pyramid_nodes[2] = new_elem_nodes[pyramid_base[missing_idx][2]];
@@ -271,7 +271,7 @@ void MeshLayerMapper::addLayerToMesh(const MeshLib::Mesh& dem_mesh,
             }
             case 4:
             {
-                std::array<MeshLib::Node*, 4> tet_nodes;
+                std::array<MeshLib::Node*, 4> tet_nodes{};
                 std::copy(new_elem_nodes.begin(),
                           new_elem_nodes.begin() + node_counter,
                           tet_nodes.begin());
diff --git a/ProcessLib/ProcessVariable.cpp b/ProcessLib/ProcessVariable.cpp
index 49a331b6f48ad6eda1e9c88d51c9059211703ae7..d76d16ddfe372c15c8c9faa58dac52d037515938 100644
--- a/ProcessLib/ProcessVariable.cpp
+++ b/ProcessLib/ProcessVariable.cpp
@@ -129,7 +129,7 @@ ProcessVariable::ProcessVariable(
             //! \ogs_file_param{prj__process_variables__process_variable__boundary_conditions__boundary_condition}
             bcs_config->getConfigSubtreeList("boundary_condition"))
         {
-            auto const& mesh = findMeshInConfig(bc_config, meshes);
+            auto const& bc_mesh = findMeshInConfig(bc_config, meshes);
             auto component_id =
                 //! \ogs_file_param{prj__process_variables__process_variable__boundary_conditions__boundary_condition__component}
                 bc_config.getConfigParameterOptional<int>("component");
@@ -140,7 +140,8 @@ ProcessVariable::ProcessVariable(
                 component_id = 0;
             }
 
-            _bc_configs.emplace_back(std::move(bc_config), mesh, component_id);
+            _bc_configs.emplace_back(std::move(bc_config), bc_mesh,
+                                     component_id);
         }
     }
     else
@@ -158,7 +159,7 @@ ProcessVariable::ProcessVariable(
             //! \ogs_file_param{prj__process_variables__process_variable__source_terms__source_term}
             sts_config->getConfigSubtreeList("source_term"))
         {
-            MeshLib::Mesh const& mesh = findMeshInConfig(st_config, meshes);
+            MeshLib::Mesh const& st_mesh = findMeshInConfig(st_config, meshes);
             auto component_id =
                 //! \ogs_file_param{prj__process_variables__process_variable__source_terms__source_term__component}
                 st_config.getConfigParameterOptional<int>("component");
@@ -169,7 +170,7 @@ ProcessVariable::ProcessVariable(
                 component_id = 0;
             }
 
-            _source_term_configs.emplace_back(std::move(st_config), mesh,
+            _source_term_configs.emplace_back(std::move(st_config), st_mesh,
                                               component_id);
         }
     }