From a0bdac1f3b0c097c2a334ae4667ebae8423d5f81 Mon Sep 17 00:00:00 2001
From: Steven Hahn <hahnse@ornl.gov>
Date: Tue, 10 Mar 2020 10:40:58 -0400
Subject: [PATCH] cpp-check

Signed-off-by: Steven Hahn <hahnse@ornl.gov>
---
 Framework/API/src/MatrixWorkspace.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Framework/API/src/MatrixWorkspace.cpp b/Framework/API/src/MatrixWorkspace.cpp
index 811454878d6..0facbbcfd29 100644
--- a/Framework/API/src/MatrixWorkspace.cpp
+++ b/Framework/API/src/MatrixWorkspace.cpp
@@ -1936,6 +1936,7 @@ std::pair<int64_t, int64_t> MatrixWorkspace::findY(double value) const {
   const int64_t numHists = static_cast<int64_t>(this->getNumberHistograms());
   for (int64_t i = 0; i < numHists; ++i) {
     const auto &Y = this->y(i);
+    // cppcheck-suppress syntaxError
     if (auto it = std::find(Y.begin(), Y.end(), value); it != Y.end()) {
       out = {i, std::distance(Y.begin(), it)};
       break;
-- 
GitLab