Skip to content

Commit ade0dfa

Browse files
committed
Fix two compiler warnings in tesseract.cpp
Signed-off-by: Stefan Weil <sw@weilnetz.de>
1 parent 68caca6 commit ade0dfa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/tesseract.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ static bool ParseArgs(int argc, char **argv, const char **lang, const char **ima
418418
try {
419419
auto loglevel = loglevels.at(loglevel_string);
420420
log_level = loglevel;
421-
} catch (const std::out_of_range &e) {
421+
} catch (const std::out_of_range &) {
422422
// TODO: Allow numeric argument?
423423
tprintf("Error, unsupported --loglevel %s\n", loglevel_string.c_str());
424424
return false;
@@ -648,7 +648,7 @@ static void PreloadRenderers(tesseract::TessBaseAPI &api,
648648
*
649649
**********************************************************************/
650650

651-
int main1(int argc, char **argv) {
651+
static int main1(int argc, char **argv) {
652652
#if defined(__USE_GNU) && defined(HAVE_FEENABLEEXCEPT)
653653
// Raise SIGFPE.
654654
# if defined(__clang__)

0 commit comments

Comments
 (0)