diff --git a/Applications/Utils/FileConverter/NetCdfConverter.cpp b/Applications/Utils/FileConverter/NetCdfConverter.cpp
index b199acb1e34500b2cb9d29d1e8062b613ad3bf05..b5626adc44b76d1bbb587db9add9fad0c2e23bd4 100644
--- a/Applications/Utils/FileConverter/NetCdfConverter.cpp
+++ b/Applications/Utils/FileConverter/NetCdfConverter.cpp
@@ -434,7 +434,7 @@ static std::vector<std::size_t> getLength(NcVar const& var,
     return length;
 }
 
-static std::vector<double> getData(NcFile const& dataset, NcVar const& var,
+static std::vector<double> getData(NcVar const& var,
                                    std::size_t const total_length,
                                    std::size_t const time_step,
                                    std::vector<std::size_t> const& length)
@@ -562,8 +562,7 @@ static bool convert(NcFile const& dataset, NcVar const& var,
                 ? std::string(" time step " + std::to_string(i))
                 : "";
         std::cout << "Converting" << step_str << "...\n";
-        std::vector<double> data_vec =
-            getData(dataset, var, array_length, i, length);
+        std::vector<double> data_vec = getData(var, array_length, i, length);
 
         // reverse lines in vertical direction if file has its origin in the
         // northwest corner
diff --git a/Applications/Utils/MeshGeoTools/VerticalSliceFromLayers.cpp b/Applications/Utils/MeshGeoTools/VerticalSliceFromLayers.cpp
index 6d6a07f80b5ab4f30cbad3a7ef6c2d6a3a989d50..42f91b768881c1c2a47958d81c31784bb9f33634 100644
--- a/Applications/Utils/MeshGeoTools/VerticalSliceFromLayers.cpp
+++ b/Applications/Utils/MeshGeoTools/VerticalSliceFromLayers.cpp
@@ -166,7 +166,6 @@ void mergeGeometries(GeoLib::GEOObjects& geo,
         lines->push_back(line);
     }
 
-    std::size_t const n_lines = lines->size();
     geo.addPointVec(std::move(points), merged_geo_name);
     geo.addPolylineVec(std::move(lines), merged_geo_name);
 }
@@ -229,8 +228,7 @@ MeshLib::Mesh* generateMesh(GeoLib::GEOObjects& geo,
         geo, true, FileIO::GMSH::MeshDensityAlgorithm::FixedMeshDensity, res, 0,
         0, gmsh_geo, false, false);
     gmsh_io.writePhysicalGroups(true);
-    bool const success =
-        BaseLib::IO::writeStringToFile(gmsh_io.writeToString(), gmsh_geo_name);
+    BaseLib::IO::writeStringToFile(gmsh_io.writeToString(), gmsh_geo_name);
 
     std::string const gmsh_mesh_name = output_name + ".msh";
     std::string gmsh_command = "gmsh -2 -algo meshadapt " + gmsh_geo_name;