Skip to content

Commit

Permalink
Ci fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jatinchowdhury18 committed Apr 9, 2024
1 parent 16c5fc5 commit 37a164e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ struct STLArenaAllocator
}

template <class U>
STLArenaAllocator (const STLArenaAllocator<U, ArenaType>& other) noexcept : arena (other.arena) // NOLINT
explicit STLArenaAllocator (const STLArenaAllocator<U, ArenaType>& other) noexcept
: arena (other.arena)
{
}

Expand All @@ -30,7 +31,7 @@ struct STLArenaAllocator
return static_cast<T*> (arena.allocate_bytes (n, alignof (T)));
}

void deallocate (T*, std::size_t)
void deallocate (T*, std::size_t) const
{
// no-op...
// memory will be re-claimed when the arena is cleared.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ std::string_view vformat (ArenaType& arena, fmt::string_view format_str, fmt::fo
{
using FormatAllocator = STLArenaAllocator<char, ArenaType>;
FormatAllocator alloc { arena };
fmt::basic_memory_buffer<char, 0, FormatAllocator> buffer { alloc };
fmt::basic_memory_buffer<char, 1, FormatAllocator> buffer { alloc };
fmt::vformat_to (std::back_inserter (buffer), format_str, args);
return { buffer.data(), buffer.size() };
}
Expand Down
1 change: 0 additions & 1 deletion modules/common/chowdsp_logging/chowdsp_logging.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ BEGIN_JUCE_MODULE_DECLARATION
JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wswitch-enum",
"-Wfloat-equal",
"-Wextra-semi",
"-Wzero-length-array",
"-Wc++20-compat",
"-Wlanguage-extension-token")

Expand Down

0 comments on commit 37a164e

Please sign in to comment.