Fix unused variable warning on Xcode 14.3

This commit is contained in:
Iris Morelle 2023-05-04 01:03:59 -04:00
parent 5c3bdd9e07
commit b567b4286c
No known key found for this signature in database
GPG key ID: BB9666228F278524

View file

@ -580,14 +580,11 @@ point table::calculate_best_size() const
);
int row_max_width = row_min_width + max_xtra;
int row = 0;
point row_size, total_size;
for(std::size_t n = 0; n < item_sizes.size(); n++) {
if(row_size.x + item_sizes[n].x > row_max_width) {
// Start new row
row++;
total_size.y += row_size.y;