Skip to content

Commit

Permalink
build: fix building on macOS 10.14.6, 10.15.7 and 11.7 (transmission#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Coeur authored Mar 9, 2024
1 parent 6a212e7 commit 6909ec0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion libtransmission/block-info.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ struct tr_block_info
public:
static auto constexpr BlockSize = uint32_t{ 1024U * 16U };

tr_block_info() noexcept = default;
tr_block_info() noexcept
{
}

tr_block_info(uint64_t const total_size_in, uint32_t const piece_size_in) noexcept
{
Expand Down
4 changes: 2 additions & 2 deletions libtransmission/variant.h
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,9 @@ struct tr_variant
tr_variant& operator=(tr_variant&& that) noexcept = default;

template<typename Val>
tr_variant(Val value)
tr_variant(Val&& value)
{
*this = std::move(value);
*this = std::forward<Val>(value);
}

[[nodiscard]] static auto make_map(size_t const n_reserve = 0U) noexcept
Expand Down

0 comments on commit 6909ec0

Please sign in to comment.