Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
eseiler committed Oct 9, 2024
1 parent a5562ca commit 3dfe643
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -197,13 +197,14 @@ class algorithm_executor_blocking
}
while (status == fill_status::empty_buffer);

std::optional<algorithm_result_t> result{std::nullopt};
if (status == fill_status::end_of_resource)
return {std::nullopt};
return result;

assert(status == fill_status::non_empty_buffer);
assert(bucket_it != buffer_it->end());

std::optional<algorithm_result_t> result = std::ranges::iter_move(bucket_it);
result = std::ranges::iter_move(bucket_it);
go_to_next_result(); // Go to next buffered result.
return result;
}
Expand Down
1 change: 1 addition & 0 deletions test/coverage/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,5 @@ set (CMAKE_SHARED_LINKER_FLAGS_COVERAGE
mark_as_advanced (CMAKE_CXX_FLAGS_COVERAGE CMAKE_C_FLAGS_COVERAGE CMAKE_EXE_LINKER_FLAGS_COVERAGE
CMAKE_SHARED_LINKER_FLAGS_COVERAGE)

enable_testing ()
add_subdirectory ("../unit" "${CMAKE_CURRENT_BINARY_DIR}/unit")
2 changes: 1 addition & 1 deletion test/seqan3-test.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ if (NOT TARGET seqan3::test)

# Warn about failed return value optimization.
if (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 14)
target_compile_options (seqan3_test INTERFACE "-Wnrvo" "-Wno-error=nrvo")
target_compile_options (seqan3_test INTERFACE "-Wnrvo")
endif ()

# GCC on arm64 (M1): Disable notes about ABI changes. Example:
Expand Down

0 comments on commit 3dfe643

Please sign in to comment.