Skip to content

Commit

Permalink
Fixed compiler warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
psiha committed Dec 17, 2024
1 parent 4154ee1 commit 3843eec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/psi/vm/containers/allocator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ namespace psi::vm
{
//------------------------------------------------------------------------------

namespace detail { [[ noreturn, gnu::cold ]] void throw_bad_alloc(); }
namespace detail { [[ noreturn, gnu::cold ]] void throw_bad_alloc() PSI_NOEXCEPT_EXCEPT_BADALLOC; }

class allocator_backing_mapping
{
Expand Down
2 changes: 1 addition & 1 deletion src/containers/vm_vector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ namespace detail
[[ noreturn, gnu::cold ]] void throw_bad_alloc () PSI_NOEXCEPT_EXCEPT_BADALLOC
{
# if PSI_MALLOC_OVERCOMMIT == PSI_OVERCOMMIT_Full
BOOST_ASSERT( !"Unexpected allocation failure" );
BOOST_ASSERT_MSG( false, "Unexpected allocation failure" );
std::unreachable();
# else
throw std::bad_alloc();
Expand Down

0 comments on commit 3843eec

Please sign in to comment.