Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/b17phase3.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ b17Phase3Results b17RunPhase3(
// The final table will simply store the deltas between each line_point, in fixed space
// groups(parks), with a checkpoint in each group.
Bits right_entry_bits;
int added_to_cache = 0;
[[maybe_unused]] int added_to_cache = 0;
uint8_t index_size = table_index == 6 ? k + 1 : k;
for (uint64_t index = 0; index < total_r_entries; index++) {
right_reader_entry_buf = R_sort_manager->ReadEntry(right_reader, 2);
Expand Down
2 changes: 1 addition & 1 deletion src/phase3.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ Phase3Results RunPhase3(
// Now we will write on of the final tables, since we have a table sorted by line point.
// The final table will simply store the deltas between each line_point, in fixed space
// groups(parks), with a checkpoint in each group.
int added_to_cache = 0;
[[maybe_unused]] int added_to_cache = 0;
uint8_t const sort_key_shift = 128 - right_sort_key_size;
uint8_t const index_shift = sort_key_shift - (k + (table_index == 6 ? 1 : 0));
for (uint64_t index = 0; index < total_r_entries; index++) {
Expand Down
4 changes: 2 additions & 2 deletions src/prover_disk.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ class DiskProver {
{
std::vector<LargeBits> qualities;

uint32_t p7_entries_size = 0;
[[maybe_unused]] uint32_t p7_entries_size = 0;

{
std::lock_guard<std::mutex> l(_mtx);
Expand Down Expand Up @@ -585,7 +585,7 @@ class DiskProver {
#endif
// This inner loop goes from table 6 to table 1, getting the two backpointers,
// and following one of them.
uint64_t alt_position;
[[maybe_unused]] uint64_t alt_position;
for (uint8_t table_index = 6; table_index > GetEndTable(); table_index--) {
uint128_t line_point = ReadLinePoint(disk_file, table_index, position);

Expand Down
2 changes: 1 addition & 1 deletion src/uniformsort.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ namespace UniformSort {
uint64_t read_pos = input_disk_begin;
uint64_t buf_size = 0;
uint64_t buf_ptr = 0;
uint64_t swaps = 0;
[[maybe_unused]] uint64_t swaps = 0;
for (uint64_t i = 0; i < num_entries; i++) {
if (buf_size == 0) {
// If read buffer is empty, read from disk and refill it.
Expand Down
4 changes: 2 additions & 2 deletions tests/test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -838,7 +838,7 @@ TEST_CASE("Sort on disk")
vector<Bits> input;
const uint32_t memory_len = 1000000;
SortManager manager(memory_len, 16, 4, size, ".", "test-files", 0, 1);
int total_written_1 = 0;
[[maybe_unused]] int total_written_1 = 0;
for (uint32_t i = 0; i < iters; i++) {
vector<unsigned char> hash_input = intToBytes(i, 4);
vector<unsigned char> hash(picosha2::k_digest_size);
Expand Down Expand Up @@ -866,7 +866,7 @@ TEST_CASE("Sort on disk")
vector<Bits> input;
const uint32_t memory_len = 1000000;
SortManager manager(memory_len, 16, 4, size, ".", "test-files", 0, 1);
int total_written_1 = 0;
[[maybe_unused]] int total_written_1 = 0;
for (uint32_t i = 0; i < iters; i++) {
vector<unsigned char> hash_input = intToBytes(i, 4);
vector<unsigned char> hash(picosha2::k_digest_size);
Expand Down
Loading