Skip to content

Commit 9929587

Browse files
committed
Remove extra semicolons
This fixes these compiler warnings: ccmain/equationdetect.cpp:1519:2: warning: extra ‘;’ [-Wpedantic] ccstruct/blobs.cpp:65:17: warning: extra ‘;’ [-Wpedantic] ccstruct/blobs.h:178:18: warning: extra ‘;’ [-Wpedantic] ccstruct/ratngs.cpp:36:22: warning: extra ‘;’ [-Wpedantic] ccstruct/ratngs.cpp:37:22: warning: extra ‘;’ [-Wpedantic] ccutil/ambigs.cpp:46:20: warning: extra ‘;’ [-Wpedantic] ccutil/ambigs.h:137:21: warning: extra ‘;’ [-Wpedantic] cutil/structures.cpp:36:45: warning: extra ‘;’ [-Wpedantic] textord/equationdetectbase.cpp:65:2: warning: extra ‘;’ [-Wpedantic] textord/equationdetectbase.h:57:2: warning: extra ‘;’ [-Wpedantic] wordrec/lm_state.cpp:25:28: warning: extra ‘;’ [-Wpedantic] wordrec/lm_state.h:190:29: warning: extra ‘;’ [-Wpedantic] Signed-off-by: Stefan Weil <[email protected]>
1 parent fa9e43f commit 9929587

File tree

11 files changed

+12
-12
lines changed

11 files changed

+12
-12
lines changed

ccmain/equationdetect.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1516,4 +1516,4 @@ void EquationDetect::PrintSpecialBlobsDensity(const ColPartition* part) const {
15161516
tprintf("\n");
15171517
}
15181518

1519-
}; // namespace tesseract
1519+
} // namespace tesseract

ccstruct/blobs.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ const TPOINT kDivisibleVerticalItalic(1, 5);
6262
F u n c t i o n s
6363
----------------------------------------------------------------------*/
6464

65-
CLISTIZE(EDGEPT);
65+
CLISTIZE(EDGEPT)
6666

6767
// Returns true when the two line segments cross each other.
6868
// (Moved from outlines.cpp).

ccstruct/blobs.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ struct EDGEPT {
175175
};
176176

177177
// For use in chop and findseam to keep a list of which EDGEPTs were inserted.
178-
CLISTIZEH(EDGEPT);
178+
CLISTIZEH(EDGEPT)
179179

180180
struct TESSLINE {
181181
TESSLINE() : is_hole(false), loop(NULL), next(NULL) {}

ccstruct/ratngs.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@
3333

3434
using tesseract::ScriptPos;
3535

36-
ELISTIZE(BLOB_CHOICE);
37-
ELISTIZE(WERD_CHOICE);
36+
ELISTIZE(BLOB_CHOICE)
37+
ELISTIZE(WERD_CHOICE)
3838

3939
const float WERD_CHOICE::kBadRating = 100000.0;
4040
// Min offset in baseline-normalized coords to make a character a subscript.

ccutil/ambigs.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ AmbigSpec::AmbigSpec() {
4343
wrong_ngram_size = 0;
4444
}
4545

46-
ELISTIZE(AmbigSpec);
46+
ELISTIZE(AmbigSpec)
4747

4848
// Initializes the ambigs by adding a NULL pointer to each table.
4949
void UnicharAmbigs::InitUnicharAmbigs(const UNICHARSET& unicharset,

ccutil/ambigs.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ class AmbigSpec : public ELIST_LINK {
134134
AmbigType type;
135135
int wrong_ngram_size;
136136
};
137-
ELISTIZEH(AmbigSpec);
137+
ELISTIZEH(AmbigSpec)
138138

139139
// AMBIG_TABLE[i] stores a set of ambiguities whose
140140
// wrong ngram starts with unichar id i.

cutil/structures.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@
3333
/*----------------------------------------------------------------------
3434
F u n c t i o n s
3535
----------------------------------------------------------------------*/
36-
makestructure(new_cell, free_cell, list_rec);
36+
makestructure(new_cell, free_cell, list_rec)

textord/equationdetectbase.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,4 @@ void EquationDetectBase::RenderSpecialText(Pix* pix,
6262
boxDestroy(&box);
6363
}
6464

65-
}; // namespace tesseract
65+
} // namespace tesseract

textord/equationdetectbase.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,6 @@ class EquationDetectBase {
5454
static void RenderSpecialText(Pix* pix, BLOBNBOX* blob);
5555
};
5656

57-
}; // namespace tesseract
57+
} // namespace tesseract
5858

5959
#endif // TESSERACT_TEXTORD_EQUATIONDETECTBASE_H_

wordrec/lm_state.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
namespace tesseract {
2424

25-
ELISTIZE(ViterbiStateEntry);
25+
ELISTIZE(ViterbiStateEntry)
2626

2727
void ViterbiStateEntry::Print(const char *msg) const {
2828
tprintf("%s ViterbiStateEntry", msg);

wordrec/lm_state.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ struct ViterbiStateEntry : public ELIST_LINK {
187187
STRING *debug_str;
188188
};
189189

190-
ELISTIZEH(ViterbiStateEntry);
190+
ELISTIZEH(ViterbiStateEntry)
191191

192192
/// Struct to store information maintained by various language model components.
193193
struct LanguageModelState {

0 commit comments

Comments
 (0)