diff --git a/Code/Mantid/Framework/Geometry/test/Vertex2DTest.h b/Code/Mantid/Framework/Geometry/test/Vertex2DTest.h
index 27b64fb98960eb2af641068d07f3a1791085c30b..d1fb6473c594395ce908c4a602d73f2a3509ce78 100644
--- a/Code/Mantid/Framework/Geometry/test/Vertex2DTest.h
+++ b/Code/Mantid/Framework/Geometry/test/Vertex2DTest.h
@@ -120,6 +120,7 @@ private:
       TS_ASSERT_EQUALS(vertexTwo->next(), origin);
 
       Vertex2D *removedTwo = vertexTwo->remove();
+      UNUSED_ARG(removedTwo);
       TS_ASSERT_EQUALS(origin->next(), origin);
       TS_ASSERT_EQUALS(origin->previous(), origin);
       return NULL;