deadcode.DeadStores

This commit is contained in:
gtsoul-tech
2024-05-30 16:40:18 +03:00
parent faa9e7549f
commit de1697b467
6 changed files with 10 additions and 11 deletions

View File

@@ -89,7 +89,7 @@ ostream& operator<<(ostream &os, const hs_expr_ext &ext) {
os << ", ";
}
os << "hamming_distance=" << ext.hamming_distance;
first = false;
//first = false;
}
return os;
}

View File

@@ -571,7 +571,7 @@ TEST_P(HyperscanTestMatchTerminate, StreamWhole) {
terminateHandler, &count);
ASSERT_TRUE(err == HS_SUCCESS || err == HS_SCAN_TERMINATED);
err = hs_close_stream(stream, scratch, terminateHandler, &count);
hs_close_stream(stream, scratch, terminateHandler, &count);
ASSERT_EQ(1, count) << "Number of matches returned was not 1.";
err = hs_free_scratch(scratch);
@@ -600,7 +600,7 @@ TEST_P(HyperscanTestMatchTerminate, StreamByteByByte) {
ASSERT_TRUE(err == HS_SUCCESS || err == HS_SCAN_TERMINATED);
}
err = hs_close_stream(stream, scratch, terminateHandler, &count);
hs_close_stream(stream, scratch, terminateHandler, &count);
ASSERT_EQ(1, count) << "Number of matches returned was not 1.";
err = hs_free_scratch(scratch);