Skip to content

Commit

Permalink
training: Add 'static' to some local functions
Browse files Browse the repository at this point in the history
Fix also the missing exit value for text2image.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
  • Loading branch information
stweil committed Apr 15, 2018
1 parent 3f967d2 commit a6fef12
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions training/text2image.cpp
Expand Up @@ -412,7 +412,7 @@ using tesseract::SpanUTF8NotWhitespace;
using tesseract::SpanUTF8Whitespace;
using tesseract::StringRenderer;

int Main() {
static int Main() {
if (FLAGS_list_available_fonts) {
const std::vector<std::string>& all_fonts = FontUtils::ListAvailableFonts();
for (unsigned int i = 0; i < all_fonts.size(); ++i) {
Expand Down Expand Up @@ -673,5 +673,5 @@ int Main() {

int main(int argc, char** argv) {
tesseract::ParseCommandLineFlags(argv[0], &argc, &argv, true);
Main();
return Main();
}
2 changes: 1 addition & 1 deletion training/unicharset_extractor.cpp
Expand Up @@ -61,7 +61,7 @@ static void AddStringsToUnicharset(const GenericVector<STRING>& strings,
}
}

int Main(int argc, char** argv) {
static int Main(int argc, char** argv) {
UNICHARSET unicharset;
// Load input files
for (int arg = 1; arg < argc; ++arg) {
Expand Down

0 comments on commit a6fef12

Please sign in to comment.