Skip to content

Commit

Permalink
Fixed unused [[nodiscard]] warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
Goubermouche committed Dec 19, 2023
1 parent 740f033 commit 0cdad7e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ namespace sigma::ir {
unwind->section_num = (xdata_section + 1) * 2;

// generate .pdata
unwind->pdata_chunk = utility::byte_buffer(function_count * 3 * sizeof(u32));
unwind->pdata_chunk = utility::byte_buffer(function_count * 3 * sizeof(u32));
const auto pdata = reinterpret_cast<uint32_t*>(unwind->pdata_chunk.get_data());

unwind->pdata_relocations = utility::byte_buffer((overflow + function_count * 3) * sizeof(coff_image_relocation));
Expand Down
2 changes: 1 addition & 1 deletion source/utility/containers/contiguous_container.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ namespace utility {
std::memcpy(m_data, other.m_data, m_capacity * sizeof(type));
}

[[nodiscard]] contiguous_container& operator=(const contiguous_container& other) {
contiguous_container& operator=(const contiguous_container& other) {
if(&other == this) {
return *this;
}
Expand Down

0 comments on commit 0cdad7e

Please sign in to comment.