2025-12-11 06:46 ftp://ftp.de.debian.org/debian/pool/main/e/ebook2cwgui/ebook2cwgui_0.1.2.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=wxwidgets --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j1 platform: Linux-6.8.0-88-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.69 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04) 14.2.0 cppcheck: head 2.18.0 head-info: 40cf3c3 (2025-12-10 19:11:39 +0100) count: 18 18 elapsed-time: 0.3 0.7 head-timing-info: old-timing-info: head results: ebook2cwgui-0.1.2/about.cpp:69:13: style: Either there is a missing 'override', or the member function 'About::OnClose' can be static. [functionStatic] ebook2cwgui-0.1.2/about.h:33:8: note: Either there is a missing 'override', or the member function 'About::OnClose' can be static. ebook2cwgui-0.1.2/about.cpp:69:13: note: Either there is a missing 'override', or the member function 'About::OnClose' can be static. ebook2cwgui-0.1.2/about.h:30:3: style: Class 'About' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] ebook2cwgui-0.1.2/ebook2cwgui.cpp:101:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x [valueFlowBailoutIncompleteVar] ebook2cwgui-0.1.2/ebook2cwgui.cpp:571:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable wxConvISO8859_1 [valueFlowBailoutIncompleteVar] ebook2cwgui-0.1.2/ebook2cwgui.cpp:749:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable read [valueFlowBailoutIncompleteVar] ebook2cwgui-0.1.2/ebook2cwgui.cpp:615:8: warning: Return value of function file.GetFirstLine() is not used. [ignoredReturnValue] ebook2cwgui-0.1.2/ebook2cwgui.cpp:105:2: performance: Variable 'Ebook2cwCmd' is assigned in constructor body. Consider performing initialization in initialization list. [useInitializationList] ebook2cwgui-0.1.2/ebook2cwgui.h:36:3: style: Class 'Ebook2cw' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] ebook2cwgui-0.1.2/ebook2cwgui.cpp:525:7: warning: %d in format string (no. 1) requires 'int' but the argument type is 'signed long'. [invalidPrintfArgType_sint] ebook2cwgui-0.1.2/ebook2cwgui.cpp:603:11: style: The scope of the variable 'line' can be reduced. [variableScope] ebook2cwgui-0.1.2/ebook2cwgui.cpp:636:12: style: Local variable 'param' shadows outer variable [shadowVariable] ebook2cwgui-0.1.2/ebook2cwgui.cpp:603:17: note: Shadowed declaration ebook2cwgui-0.1.2/ebook2cwgui.cpp:636:12: note: Shadow variable ebook2cwgui-0.1.2/ebook2cwgui.cpp:636:31: style: Local variable 'value' shadows outer variable [shadowVariable] ebook2cwgui-0.1.2/ebook2cwgui.cpp:603:24: note: Shadowed declaration ebook2cwgui-0.1.2/ebook2cwgui.cpp:636:31: note: Shadow variable ebook2cwgui-0.1.2/ebook2cwgui.cpp:602:48: style: Parameter 'event' can be declared as reference to const [constParameterReference] ebook2cwgui-0.1.2/ebook2cwgui.cpp:666:51: style: Parameter 'event' can be declared as reference to const. However it seems that 'OnWebsiteLinkHover' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ebook2cwgui-0.1.2/ebook2cwgui.cpp:318:73: note: You might need to cast the function pointer here ebook2cwgui-0.1.2/ebook2cwgui.cpp:666:51: note: Parameter 'event' can be declared as reference to const ebook2cwgui-0.1.2/ebook2cwgui.cpp:396:11: style: Unused variable: tmp [unusedVariable] ebook2cwgui-0.1.2/ebook2cwgui.cpp:603:17: style: Unused variable: param [unusedVariable] ebook2cwgui-0.1.2/ebook2cwgui.cpp:603:24: style: Unused variable: value [unusedVariable] ebook2cwgui-0.1.2/ebook2cwgui.cpp:683:6: style: Variable 'dir' is assigned a value that is never used. [unreadVariable] diff: 2.18.0 ebook2cwgui-0.1.2/about.cpp:69:13: performance:inconclusive: Either there is a missing 'override', or the member function 'About::OnClose' can be static. [functionStatic] ebook2cwgui-0.1.2/about.h:33:8: note: Either there is a missing 'override', or the member function 'About::OnClose' can be static. ebook2cwgui-0.1.2/about.cpp:69:13: note: Either there is a missing 'override', or the member function 'About::OnClose' can be static. head ebook2cwgui-0.1.2/about.cpp:69:13: style: Either there is a missing 'override', or the member function 'About::OnClose' can be static. [functionStatic] ebook2cwgui-0.1.2/about.h:33:8: note: Either there is a missing 'override', or the member function 'About::OnClose' can be static. ebook2cwgui-0.1.2/about.cpp:69:13: note: Either there is a missing 'override', or the member function 'About::OnClose' can be static. DONE