From a82431adf90ce1df5e20613bb520399308bb574d Mon Sep 17 00:00:00 2001
From: Lars Bilke <lars.bilke@ufz.de>
Date: Mon, 11 Aug 2014 09:58:15 +0200
Subject: [PATCH] Fixed 'An array/object was declared but not utilized'.

---
 FileIO/FEFLOWInterface.cpp               | 1 -
 FileIO/RapidXmlIO/RapidStnInterface.cpp  | 4 ++--
 FileIO/XmlIO/Qt/XMLQtInterface.cpp       | 1 -
 FileIO/XmlIO/Qt/XmlStnInterface.cpp      | 4 ++--
 MeshLib/MeshGenerators/LayeredVolume.cpp | 1 -
 5 files changed, 4 insertions(+), 7 deletions(-)

diff --git a/FileIO/FEFLOWInterface.cpp b/FileIO/FEFLOWInterface.cpp
index c941ad72691..3538815b589 100644
--- a/FileIO/FEFLOWInterface.cpp
+++ b/FileIO/FEFLOWInterface.cpp
@@ -312,7 +312,6 @@ void FEFLOWInterface::readElevation(std::ifstream &in, const FEM_CLASS &fem_clas
 MeshLib::Element* FEFLOWInterface::readElement(const FEM_DIM &fem_dim, const MeshElemType elem_type, const std::string& line, const std::vector<MeshLib::Node*> &nodes)
 {
 	std::stringstream ss(line);
-	std::string elem_type_str("");
 
 	unsigned idx[8];
 	for (size_t i = 0; i < fem_dim.n_nodes_of_element; ++i)
diff --git a/FileIO/RapidXmlIO/RapidStnInterface.cpp b/FileIO/RapidXmlIO/RapidStnInterface.cpp
index f44ee2b9949..68cc4c75504 100644
--- a/FileIO/RapidXmlIO/RapidStnInterface.cpp
+++ b/FileIO/RapidXmlIO/RapidStnInterface.cpp
@@ -67,9 +67,9 @@ std::vector<GeoLib::Point*> *RapidStnInterface::readStationFile(const std::strin
 		for (rapidxml::xml_node<>* list_item = station_list->first_node(); list_item; list_item = list_item->next_sibling())
 		{
 			std::string b(list_item->name());
-			if (std::string(list_item->name()).compare("stations") == 0)
+			if (b.compare("stations") == 0)
 				RapidStnInterface::readStations(list_item, stations, fileName);
-			if (std::string(list_item->name()).compare("boreholes") == 0)
+			if (b.compare("boreholes") == 0)
 				RapidStnInterface::readStations(list_item, stations, fileName);
 		}
 	}
diff --git a/FileIO/XmlIO/Qt/XMLQtInterface.cpp b/FileIO/XmlIO/Qt/XMLQtInterface.cpp
index 4ead65dc16c..f7d4beb7f83 100644
--- a/FileIO/XmlIO/Qt/XMLQtInterface.cpp
+++ b/FileIO/XmlIO/Qt/XMLQtInterface.cpp
@@ -87,7 +87,6 @@ int XMLQtInterface::insertStyleFileDefinition(const QString &fileName) const
 {
 	std::string path = fileName.toStdString();
 	std::fstream stream(path.c_str());
-	std::string line;
 	std::string styleDef("\n<?xml-stylesheet type=\"text/xsl\" href=\"OpenGeoSysGLI.xsl\"?>");
 
 	if (!stream.is_open())
diff --git a/FileIO/XmlIO/Qt/XmlStnInterface.cpp b/FileIO/XmlIO/Qt/XmlStnInterface.cpp
index c6db0dc5c41..958bc50246b 100644
--- a/FileIO/XmlIO/Qt/XmlStnInterface.cpp
+++ b/FileIO/XmlIO/Qt/XmlStnInterface.cpp
@@ -358,9 +358,9 @@ int XmlStnInterface::rapidReadFile(const std::string &fileName)
 		     list_item = list_item->next_sibling())
 		{
 			std::string b(list_item->name());
-			if (std::string(list_item->name()).compare("stations") == 0)
+			if (b.compare("stations") == 0)
 				this->rapidReadStations(list_item, stations, fileName);
-			if (std::string(list_item->name()).compare("boreholes") == 0)
+			if (b.compare("boreholes") == 0)
 				this->rapidReadStations(list_item, stations, fileName);
 		}
 
diff --git a/MeshLib/MeshGenerators/LayeredVolume.cpp b/MeshLib/MeshGenerators/LayeredVolume.cpp
index fd3cf780d06..30d764226bd 100644
--- a/MeshLib/MeshGenerators/LayeredVolume.cpp
+++ b/MeshLib/MeshGenerators/LayeredVolume.cpp
@@ -72,7 +72,6 @@ bool LayeredVolume::createGeoVolumes(const MeshLib::Mesh &mesh, const std::vecto
 	
 	// map each layer and attach to subsurface mesh
 	const std::size_t nRasters (rasters.size());
-	std::vector<GeoLib::Point> in_region_points(nRasters-1, GeoLib::Point(0,0,0));
 	for (size_t i=0; i<nRasters; ++i)
 	{
 		const double replacement_value = (i==0) ? noDataReplacementValue : _invalid_value;
-- 
GitLab