Skip to content

Commit

Permalink
Silenced a warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
psiha committed Jan 19, 2024
1 parent 4a63928 commit 9659048
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mapped_view/mapped_view.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ template <bool read_only>
fallible_result<void>
basic_mapped_view<read_only>::expand( std::size_t const target_size, mapping & original_mapping ) noexcept
{
auto const current_address{ const_cast</*mrmlj*/std::byte *>( this->data() ) };
auto const current_address{ const_cast</*mrmlj*/std::byte *>( this->data() ) }; [[ maybe_unused ]]
auto const current_size { this->size() };
#if defined( __linux__ )
if ( auto const new_address{ ::mremap( current_address, current_size, target_size, std::to_underlying( reallocation_type::moveable ) ) }; new_address != MAP_FAILED ) [[ likely ]]
Expand Down

0 comments on commit 9659048

Please sign in to comment.