Task #1277 - fixed.err
back to task #1277download
Error: CLANG_WARNING: tesseract-5.3.4-build/tesseract-5.3.4/src/classify/intmatcher.cpp:915:7: warning[deadcode.DeadStores]: Value stored to 'ActualProtoNum' is never read # 913| tprintf("Proto Mask:\n"); # 914| for (ProtoSetIndex = 0; ProtoSetIndex < ClassTemplate->NumProtoSets; ProtoSetIndex++) { # 915|-> ActualProtoNum = (ProtoSetIndex * PROTOS_PER_PROTO_SET); # 916| for (ProtoWordNum = 0; ProtoWordNum < 2; ProtoWordNum++, ProtoMask++) { # 917| ActualProtoNum = (ProtoSetIndex * PROTOS_PER_PROTO_SET); Error: COMPILER_WARNING (CWE-477): tesseract-5.3.4-build/tesseract-5.3.4/src/training/pango/pango_font_info.cpp: scope_hint: In member function ‘bool tesseract::PangoFontInfo::CoversUTF8Text(const char*, int) const’ tesseract-5.3.4-build/tesseract-5.3.4/src/training/pango/pango_font_info.cpp:233:27: warning[-Wdeprecated-declarations]: ‘void pango_coverage_unref(PangoCoverage*)’ is deprecated: Use 'g_object_unref' instead # 233 | pango_coverage_unref(coverage); # | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ /usr/include/pango-1.0/pango/pango-font.h:25: included_from: Included from here. tesseract-5.3.4-build/tesseract-5.3.4/src/training/pango/pango_font_info.h:27: included_from: Included from here. tesseract-5.3.4-build/tesseract-5.3.4/src/training/pango/pango_font_info.cpp:32: included_from: Included from here. /usr/include/pango-1.0/pango/pango-coverage.h:82:20: note: declared here # 82 | void pango_coverage_unref (PangoCoverage *coverage); # | ^~~~~~~~~~~~~~~~~~~~ # 231| tmp[len] = '\0'; # 232| tlog(2, "'%s' (U+%x) not covered by font\n", tmp, *it); # 233|-> pango_coverage_unref(coverage); # 234| g_object_unref(font); # 235| return false; Error: COMPILER_WARNING (CWE-477): tesseract-5.3.4-build/tesseract-5.3.4/src/training/pango/pango_font_info.cpp:238:23: warning[-Wdeprecated-declarations]: ‘void pango_coverage_unref(PangoCoverage*)’ is deprecated: Use 'g_object_unref' instead # 238 | pango_coverage_unref(coverage); # | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ /usr/include/pango-1.0/pango/pango-coverage.h:82:20: note: declared here # 82 | void pango_coverage_unref (PangoCoverage *coverage); # | ^~~~~~~~~~~~~~~~~~~~ # 236| } # 237| } # 238|-> pango_coverage_unref(coverage); # 239| g_object_unref(font); # 240| return true; Error: COMPILER_WARNING (CWE-477): tesseract-5.3.4-build/tesseract-5.3.4/src/training/pango/pango_font_info.cpp: scope_hint: In member function ‘int tesseract::PangoFontInfo::DropUncoveredChars(std::string*) const’ tesseract-5.3.4-build/tesseract-5.3.4/src/training/pango/pango_font_info.cpp:306:23: warning[-Wdeprecated-declarations]: ‘void pango_coverage_unref(PangoCoverage*)’ is deprecated: Use 'g_object_unref' instead # 306 | pango_coverage_unref(coverage); # | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ /usr/include/pango-1.0/pango/pango-coverage.h:82:20: note: declared here # 82 | void pango_coverage_unref (PangoCoverage *coverage); # | ^~~~~~~~~~~~~~~~~~~~ # 304| out += utf8_len; # 305| } # 306|-> pango_coverage_unref(coverage); # 307| g_object_unref(font); # 308| utf8_text->resize(out - utf8_text->c_str()); Error: COMPILER_WARNING (CWE-477): tesseract-5.3.4-build/tesseract-5.3.4/src/training/pango/pango_font_info.cpp: scope_hint: In static member function ‘static int tesseract::FontUtils::FontScore(const std::unordered_map<int, long int>&, const std::string&, int*, std::vector<bool>*)’ tesseract-5.3.4-build/tesseract-5.3.4/src/training/pango/pango_font_info.cpp:606:23: warning[-Wdeprecated-declarations]: ‘void pango_coverage_unref(PangoCoverage*)’ is deprecated: Use 'g_object_unref' instead # 606 | pango_coverage_unref(coverage); # | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ /usr/include/pango-1.0/pango/pango-coverage.h:82:20: note: declared here # 82 | void pango_coverage_unref (PangoCoverage *coverage); # | ^~~~~~~~~~~~~~~~~~~~ # 604| } # 605| } # 606|-> pango_coverage_unref(coverage); # 607| g_object_unref(font); # 608| return ok_chars;