diff --git a/MeshLib/Elements/Edge.h b/MeshLib/Elements/Edge.h
index 5f83e3c18579abdb4eac7605d4a570e068923585..1d1ba8117d688345288c7c363955414e201187d0 100644
--- a/MeshLib/Elements/Edge.h
+++ b/MeshLib/Elements/Edge.h
@@ -39,16 +39,16 @@ public:
 	virtual ~Edge();
 
 	/// Returns the edge i of the element.
-	const Element* getEdge(unsigned i) const { return NULL; };
+	const Element* getEdge(unsigned i) const { (void)i; return NULL; };
 
 	/// Returns the face i of the element.
-	const Element* getFace(unsigned i) const { return NULL; };
+	const Element* getFace(unsigned i) const { (void)i; return NULL; };
 
 	/// 1D elements have no edges
 	unsigned getNEdges() const { return 0; };
 
 	/// Get the number of nodes for face i.
-	unsigned getNFaceNodes(unsigned i) const { return 0; };
+	unsigned getNFaceNodes(unsigned i) const { (void)i; return 0; };
 
 	/// Get the number of faces for this element.
 	unsigned getNFaces() const { return 0; };
@@ -71,10 +71,10 @@ protected:
 	double computeLength();
 
 	/// 1D elements have no edges.
-	Node* getEdgeNode(unsigned edge_id, unsigned node_id) const { return NULL; };
+	Node* getEdgeNode(unsigned edge_id, unsigned node_id) const { (void)edge_id; (void)node_id; return NULL; };
 
 	/// 1D elements have no faces.
-	Node* getFaceNode(unsigned face_id, unsigned node_id) const { return NULL; };
+	Node* getFaceNode(unsigned face_id, unsigned node_id) const { (void)face_id; (void)node_id; return NULL; };
 
 	double _length;
 
diff --git a/MeshLib/Elements/Face.h b/MeshLib/Elements/Face.h
index 6cb14a41aebe5ac4276ff1a77ecd4c940fcadad9..492b02fa6a498a730f89c2342e5e4b13091924be 100644
--- a/MeshLib/Elements/Face.h
+++ b/MeshLib/Elements/Face.h
@@ -28,7 +28,7 @@ public:
 	const Element* getFace(unsigned i) const { return this->getEdge(i); };
 
 	/// Get the number of nodes for face i.
-	unsigned getNFaceNodes(unsigned i) const { return 2; };
+	unsigned getNFaceNodes(unsigned i) const { (void)i; return 2; };
 
 	/// 2D elements have no faces.
 	unsigned getNFaces() const { return 0; };
diff --git a/MeshLib/Elements/Hex.h b/MeshLib/Elements/Hex.h
index bc221c97ac5d57d65458285774d0c266635165be..68fa469be217438e76c07c39a8cd330f19d638fc 100644
--- a/MeshLib/Elements/Hex.h
+++ b/MeshLib/Elements/Hex.h
@@ -53,7 +53,7 @@ public:
 	unsigned getNEdges() const { return 12; };
 
 	/// Get the number of nodes for face i.
-	unsigned getNFaceNodes(unsigned i) const { return 4; };
+	unsigned getNFaceNodes(unsigned i) const { (void)i; return 4; };
 
 	/// Get the number of faces for this element.
 	unsigned getNFaces() const { return 6; };
diff --git a/MeshLib/Elements/Prism.cpp b/MeshLib/Elements/Prism.cpp
index e27affafba82409f1900decb7e47138bb16e995e..a90386e1f2e48b5a75a53d58f5ebe7ee86eecd2f 100644
--- a/MeshLib/Elements/Prism.cpp
+++ b/MeshLib/Elements/Prism.cpp
@@ -42,7 +42,7 @@ const unsigned Prism::_n_face_nodes[5] = { 3, 4, 4, 4, 3 };
 Prism::Prism(Node* nodes[6], unsigned value)
 	: Cell(MshElemType::PRISM, value)
 {
-	_nodes = _nodes;
+	_nodes = nodes;
 	_neighbors = new Element*[5];
 	for (unsigned i=0; i<5; i++)
 		_neighbors[i] = NULL;
diff --git a/MeshLib/Elements/Tet.h b/MeshLib/Elements/Tet.h
index 8eed8e4cd70e827ab084d670744eb89af3201f29..a0bec989b332c8b78fca7812a824a6891402c1da 100644
--- a/MeshLib/Elements/Tet.h
+++ b/MeshLib/Elements/Tet.h
@@ -52,7 +52,7 @@ public:
 	unsigned getNEdges() const { return 6; };
 	
 	/// Get the number of nodes for face i.
-	unsigned getNFaceNodes(unsigned i) const { return 3; };
+	unsigned getNFaceNodes(unsigned i) const { (void)i; return 3; };
 
 	/// Get the number of faces for this element.
 	unsigned getNFaces() const { return 4; };
diff --git a/SimpleTests/MeshTests/MeshRead.cpp b/SimpleTests/MeshTests/MeshRead.cpp
index e0d0e57f533a0920413eb653185eed48cdbb8648..0cca029a58f63adde12c8f6340feac4eb08af38d 100644
--- a/SimpleTests/MeshTests/MeshRead.cpp
+++ b/SimpleTests/MeshTests/MeshRead.cpp
@@ -18,13 +18,11 @@
 int main(int argc, char *argv[])
 {
 	std::string file_name("/mnt/visdata/tom/data/TestMeshes/Mesh-dx1.00-Layered20.msh");
-
 	std::cout << "sizeof(double): " << sizeof (double) << std::endl;
 	std::cout << "sizeof(GeoLib::Point): " << sizeof (GEOLIB::Point) << std::endl;
 	std::cout << "sizeof(GeoLib::PointWithID): " << sizeof (GEOLIB::PointWithID) << std::endl;
 	std::cout << "sizeof(Node): " << sizeof (MeshLib::Node) << std::endl;
 	std::cout << "sizeof(Element): " << sizeof (MeshLib::Element) << std::endl;
-
 	//std::string file_name("c:/Project/PlyTestMesh.msh");
 	FileIO::MeshIO mesh_io;
 #ifndef WIN32