Fix compiler warnings caused by empty statements

Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
Stefan Weil 2021-12-23 16:35:03 +01:00
parent a8bdc78985
commit edf5c91ab9
6 changed files with 0 additions and 9 deletions

View File

@ -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) {

View File

@ -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));

View File

@ -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) {

View File

@ -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++) {
;
}
}

View File

@ -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++;

View File

@ -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);