diff --git a/Framework/API/src/MatrixWorkspace.cpp b/Framework/API/src/MatrixWorkspace.cpp
index b515b63f683302aee0ffe2a74fbd36ab16a36e00..8ed92b3884d7aebd77926f57fb67a5398b8c28e3 100644
--- a/Framework/API/src/MatrixWorkspace.cpp
+++ b/Framework/API/src/MatrixWorkspace.cpp
@@ -1530,7 +1530,7 @@ signal_t MatrixWorkspace::getSignalAtCoord(
       else
         i = Kernel::VectorHelper::indexOfValueFromCenters(xVals.rawData(),
                                                           xCoord);
-    } catch (std::out_of_range &e) {
+    } catch (std::out_of_range &) {
       return std::numeric_limits<double>::quiet_NaN();
     }