Skip to content

Commit ecc25fd

Browse files
authored
Merge pull request #3350 from eseiler/fix/gcc15-fedora
[FIX] Bogus warning on gcc-15 with hardened flags
2 parents 6765a46 + 20b704a commit ecc25fd

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

test/unit/search/search_scheme_algorithm_test.cpp

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -128,18 +128,13 @@ inline void test_search_hamming(auto index,
128128

129129
auto remove_predicate_ss = [&text, &orig_query, query_length](uint64_t const hit)
130130
{
131-
seqan3::dna4_vector matched_seq =
132-
text | seqan3::views::slice(hit, hit + query_length) | seqan3::ranges::to<seqan3::dna4_vector>();
133-
return (matched_seq != orig_query);
131+
return !std::ranges::equal(orig_query, seqan3::views::slice(text, hit, hit + query_length));
134132
};
135133

136134
auto remove_predicate_trivial = [&](uint64_t const hit)
137135
{
138136
// filter only correct error distributions
139-
seqan3::dna4_vector matched_seq =
140-
text | seqan3::views::slice(hit, hit + query_length) | seqan3::ranges::to<seqan3::dna4_vector>();
141-
142-
if (orig_query != matched_seq)
137+
if (!std::ranges::equal(orig_query, seqan3::views::slice(text, hit, hit + query_length)))
143138
return true;
144139

145140
uint64_t lb = 0, rb = 0;

0 commit comments

Comments
 (0)