diff --git a/MeshLib/Elements/Edge.h b/MeshLib/Elements/Edge.h
index de64e973daf75c73ef9f1dcb7790aa6418074f7a..dcb0898e5ab2435b4c0d80dc435a54287d671d53 100644
--- a/MeshLib/Elements/Edge.h
+++ b/MeshLib/Elements/Edge.h
@@ -13,6 +13,8 @@
 #ifndef EDGE_H_
 #define EDGE_H_
 
+#include <limits>
+
 #include "Element.h"
 
 namespace MeshLib {
@@ -84,7 +86,7 @@ public:
 	virtual Element* reviseElement() const;
 
 protected:
-	double Edge::computeVolume();
+	double computeVolume();
 	/// 1D elements have no edges.
 	Node const* getEdgeNode(unsigned edge_id, unsigned node_id) const { (void)edge_id; (void)node_id; return NULL; };
 
@@ -92,7 +94,7 @@ protected:
 	Node* getFaceNode(unsigned face_id, unsigned node_id) const { (void)face_id; (void)node_id; return NULL; };
 
 	/// Returns the ID of a face given an array of nodes (but is not applicable for edges!).
-	unsigned identifyFace(Node* nodes[3]) const { return std::numeric_limits<unsigned>::max(); };
+	unsigned identifyFace(Node* [3]/*nodes[3]*/) const { return std::numeric_limits<unsigned>::max(); };
 
 	double _length;
 
diff --git a/MeshLib/Elements/Element.cpp b/MeshLib/Elements/Element.cpp
index a79197aba5146d13f4e1cab9af8b0f1ba02aee7d..bf356f8ccca68fb418dacb8dd10359b2ff4b57a6 100644
--- a/MeshLib/Elements/Element.cpp
+++ b/MeshLib/Elements/Element.cpp
@@ -39,7 +39,6 @@ bool Element::addNeighbor(Element* e)
 	if (e == this)
 		return false;
 
-	unsigned n(0);
 	unsigned nNeighbors (this->getNNeighbors());
 	for (unsigned n=0; n<nNeighbors; n++)
 	{