Skip to content

Commit 33f3eba

Browse files
committed
[FIX] Nightly: bogus memcpy
1 parent d7b6c32 commit 33f3eba

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

include/seqan3/alignment/pairwise/detail/pairwise_alignment_algorithm_banded.hpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,15 @@ class pairwise_alignment_algorithm_banded :
133133
size_t const sequence1_size = std::ranges::distance(simd_seq1_collection);
134134
size_t const sequence2_size = std::ranges::distance(simd_seq2_collection);
135135

136+
#if SEQAN3_WORKAROUND_GCC_BOGUS_MEMCPY
137+
# pragma GCC diagnostic push
138+
# pragma GCC diagnostic ignored "-Wstringop-overflow"
139+
#endif // SEQAN3_WORKAROUND_GCC_BOGUS_MEMCPY
136140
auto && [alignment_matrix, index_matrix] =
137141
this->acquire_matrices(sequence1_size, sequence2_size, this->lowest_viable_score());
142+
#if SEQAN3_WORKAROUND_GCC_BOGUS_MEMCPY
143+
# pragma GCC diagnostic pop
144+
#endif // SEQAN3_WORKAROUND_GCC_BOGUS_MEMCPY
138145

139146
compute_matrix(simd_seq1_collection, simd_seq2_collection, alignment_matrix, index_matrix);
140147

include/seqan3/core/platform.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ static_assert(sdsl::sdsl_version_major == 3, "Only version 3 of the SDSL is supp
231231
* \see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105545
232232
*/
233233
#ifndef SEQAN3_WORKAROUND_GCC_BOGUS_MEMCPY
234-
# if SEQAN3_COMPILER_IS_GCC && (__GNUC__ == 12 || __GNUC__ == 13 || __GNUC__ == 14)
234+
# if SEQAN3_COMPILER_IS_GCC && (__GNUC__ >= 12)
235235
# define SEQAN3_WORKAROUND_GCC_BOGUS_MEMCPY 1
236236
# else
237237
# define SEQAN3_WORKAROUND_GCC_BOGUS_MEMCPY 0

0 commit comments

Comments
 (0)