From edf5c91ab97f4e6cc12588f377cc8590b8886022 Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Thu, 23 Dec 2021 16:35:03 +0100 Subject: [PATCH] Fix compiler warnings caused by empty statements Signed-off-by: Stefan Weil --- src/ccutil/ambigs.cpp | 1 - src/ccutil/unicharset.h | 1 - src/textord/makerow.cpp | 1 - src/textord/oldbasel.cpp | 4 ---- src/textord/pithsync.cpp | 1 - src/textord/strokewidth.cpp | 1 - 6 files changed, 9 deletions(-) diff --git a/src/ccutil/ambigs.cpp b/src/ccutil/ambigs.cpp index 316ab563a..b59566105 100644 --- a/src/ccutil/ambigs.cpp +++ b/src/ccutil/ambigs.cpp @@ -142,7 +142,6 @@ void UnicharAmbigs::LoadUnicharAmbigs(const UNICHARSET &encoder_set, TFile *ambi for (j = 0; j < adaption_ambigs_entry->size() && (*adaption_ambigs_entry)[j] > id_to_insert; ++j) { - ; } if (j < adaption_ambigs_entry->size()) { if ((*adaption_ambigs_entry)[j] != id_to_insert) { diff --git a/src/ccutil/unicharset.h b/src/ccutil/unicharset.h index f573ce8f5..dd0ff8f3d 100644 --- a/src/ccutil/unicharset.h +++ b/src/ccutil/unicharset.h @@ -614,7 +614,6 @@ public: if (INVALID_UNICHAR_ID == unichar_id) { *width = 0.0f; *width_sd = 0.0f; - ; return; } ASSERT_HOST(contains_unichar_id(unichar_id)); diff --git a/src/textord/makerow.cpp b/src/textord/makerow.cpp index 686de19dd..61d8fde90 100644 --- a/src/textord/makerow.cpp +++ b/src/textord/makerow.cpp @@ -2336,7 +2336,6 @@ void assign_blobs_to_rows( // find lines if (!row_it.empty()) { for (row_it.move_to_first(); !row_it.at_last() && row_it.data()->min_y() > top; row_it.forward()) { - ; } row = row_it.data(); if (row->min_y() <= top && row->max_y() >= bottom) { diff --git a/src/textord/oldbasel.cpp b/src/textord/oldbasel.cpp index c08213237..d5291fd4d 100644 --- a/src/textord/oldbasel.cpp +++ b/src/textord/oldbasel.cpp @@ -174,14 +174,12 @@ void Textord::correlate_neighbours(TO_BLOCK *block, // block rows are in. otherrow >= 0 && (rows[otherrow]->xheight < 0.0 || !row->baseline.overlap(&rows[otherrow]->baseline, MAXOVERLAP)); otherrow--) { - ; } upperrow = otherrow; /*decent row above */ for (otherrow = rowindex + 1; otherrow < rowcount && (rows[otherrow]->xheight < 0.0 || !row->baseline.overlap(&rows[otherrow]->baseline, MAXOVERLAP)); otherrow++) { - ; } lowerrow = otherrow; /*decent row below */ if (upperrow >= 0) { @@ -1107,13 +1105,11 @@ int segment_spline( // make xstarts /*find rising y centre */ for (ptindex = turnpoints[segment - 1] + 1; ptindex < turnpoints[segment] && ycoords[ptindex + 1] <= lastmax; ptindex++) { - ; } } else { /*find falling y centre */ for (ptindex = turnpoints[segment - 1] + 1; ptindex < turnpoints[segment] && ycoords[ptindex + 1] >= lastmax; ptindex++) { - ; } } diff --git a/src/textord/pithsync.cpp b/src/textord/pithsync.cpp index 36e80a7d1..3b56f7383 100644 --- a/src/textord/pithsync.cpp +++ b/src/textord/pithsync.cpp @@ -669,7 +669,6 @@ double check_pitch_sync3( // find segmentation do { for (x = best_end->position() - pitch + pitch_error; x < best_end->position() - pitch_error && projection->pile_count(x) == 0; x++) { - ; } if (x < best_end->position() - pitch_error) { occupation_count++; diff --git a/src/textord/strokewidth.cpp b/src/textord/strokewidth.cpp index 2829756d9..c1fa3c696 100644 --- a/src/textord/strokewidth.cpp +++ b/src/textord/strokewidth.cpp @@ -161,7 +161,6 @@ void StrokeWidth::FindTextlineDirectionAndFixBrokenCJK(PageSegMode pageseg_mode, InsertBlobs(input_block); // Repair broken CJK characters if needed. while (cjk_merge && FixBrokenCJK(input_block)) { - ; } // Grade blobs by inspection of neighbours. FindTextlineFlowDirection(pageseg_mode, false);