From be0a86e78f3cddc9a27e08cf22cbb5e6e3c039b7 Mon Sep 17 00:00:00 2001 From: gtsoul-tech Date: Fri, 8 Nov 2024 16:06:54 +0200 Subject: [PATCH] cppcheck suppress useStlAlgorithm --- src/nfagraph/ng_literal_analysis.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/nfagraph/ng_literal_analysis.cpp b/src/nfagraph/ng_literal_analysis.cpp index 119bd33f..91082d66 100644 --- a/src/nfagraph/ng_literal_analysis.cpp +++ b/src/nfagraph/ng_literal_analysis.cpp @@ -262,6 +262,7 @@ static bool hasSuffixLiterals(const set &s) { for (auto it = s.begin(), ite = s.end(); it != ite; ++it) { for (auto jt = std::next(it); jt != ite; ++jt) { + // cppcheck-suppress useStlAlgorithm if (isSuffix(*it, *jt) || isSuffix(*jt, *it)) { DEBUG_PRINTF("'%s' and '%s' have suffix issues\n", dumpString(*it).c_str(), @@ -530,7 +531,7 @@ void findMinCut(LitGraph &lg, vector &cutset) { vector distances(num_verts); vector predecessors(num_verts); vector residuals(num_edges(lg)); - + //cppcheck-suppress unreadVariable UNUSED u64a flow = boykov_kolmogorov_max_flow(lg, get(&LitGraphEdgeProps::score, lg), make_iterator_property_map(residuals.begin(), e_index_map),