mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2025-01-20 07:34:28 +08:00
Fix compiler warnings caused by empty statements
Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
parent
a8bdc78985
commit
edf5c91ab9
@ -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) {
|
||||
|
@ -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));
|
||||
|
@ -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) {
|
||||
|
@ -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++) {
|
||||
;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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++;
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user