Error: CLANG_WARNING: [#def1] 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): [#def2] 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): [#def3] 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): [#def4] 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): [#def5] 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;
analyzer-version-clang | 18.1.7 |
analyzer-version-cppcheck | 2.14.2 |
analyzer-version-gcc | 14.1.1 |
analyzer-version-gcc-analyzer | 14.1.1 |
analyzer-version-shellcheck | 0.10.0 |
diffbase-analyzer-version-clang | 18.1.7 |
diffbase-analyzer-version-cppcheck | 2.14.2 |
diffbase-analyzer-version-gcc | 14.1.1 |
diffbase-analyzer-version-gcc-analyzer | 14.1.1 |
diffbase-analyzer-version-shellcheck | 0.10.0 |
diffbase-enabled-plugins | clang, cppcheck, gcc, shellcheck |
diffbase-exit-code | 0 |
diffbase-host | ip-172-16-1-80.us-west-2.compute.internal |
diffbase-mock-config | fedora-41-x86_64 |
diffbase-project-name | tesseract-5.4.1-1.fc41 |
diffbase-store-results-to | /tmp/tmp2hyeg2ri/tesseract-5.4.1-1.fc41.tar.xz |
diffbase-time-created | 2024-07-03 18:16:47 |
diffbase-time-finished | 2024-07-03 18:29:12 |
diffbase-tool | csmock |
diffbase-tool-args | '/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmp2hyeg2ri/tesseract-5.4.1-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmp2hyeg2ri/tesseract-5.4.1-1.fc41.src.rpm' |
diffbase-tool-version | csmock-3.5.3-1.el9 |
enabled-plugins | clang, cppcheck, gcc, shellcheck |
exit-code | 0 |
host | ip-172-16-1-80.us-west-2.compute.internal |
mock-config | fedora-41-x86_64 |
project-name | tesseract-5.3.4-4.fc40 |
store-results-to | /tmp/tmprn4xsnjf/tesseract-5.3.4-4.fc40.tar.xz |
time-created | 2024-07-03 18:03:45 |
time-finished | 2024-07-03 18:16:35 |
title | Fixed defects |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmprn4xsnjf/tesseract-5.3.4-4.fc40.tar.xz' '--gcc-analyze' '/tmp/tmprn4xsnjf/tesseract-5.3.4-4.fc40.src.rpm' |
tool-version | csmock-3.5.3-1.el9 |