2025-11-21 08:39 ftp://ftp.de.debian.org/debian/pool/main/f/forwords/forwords_1.0.5.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=qt --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 -j4 platform: Linux-6.12.57+deb13-amd64-x86_64-with-glibc2.41 python: 3.13.5 client-version: 1.3.67 compiler: g++ (Debian 14.2.0-19) 14.2.0 cppcheck: head 2.18.0 head-info: 5374cd3 (2025-11-20 15:35:39 +0100) count: 81 81 elapsed-time: 0.2 0.2 head-timing-info: old-timing-info: head results: forwords-1.0.5/src/common.h:47:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Dirs [valueFlowBailoutIncompleteVar] forwords-1.0.5/src/common.h:57:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Files [valueFlowBailoutIncompleteVar] forwords-1.0.5/src/common.h:75:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RAND_MAX [valueFlowBailoutIncompleteVar] forwords-1.0.5/src/dlgedit.cpp:48:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Hide [valueFlowBailoutIncompleteVar] forwords-1.0.5/src/dlgsettings.cpp:121:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Directory [valueFlowBailoutIncompleteVar] forwords-1.0.5/src/dlgtest1.cpp:46:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Hide [valueFlowBailoutIncompleteVar] forwords-1.0.5/src/dlgedit.cpp:187:15: performance:inconclusive: Either there is a missing 'override', or the member function 'dlgEdit::on_pbExit_clicked' can be static. [functionStatic] forwords-1.0.5/src/dlgedit.h:53:10: note: Either there is a missing 'override', or the member function 'dlgEdit::on_pbExit_clicked' can be static. forwords-1.0.5/src/dlgedit.cpp:187:15: note: Either there is a missing 'override', or the member function 'dlgEdit::on_pbExit_clicked' can be static. forwords-1.0.5/src/dlgsettings.cpp:194:19: performance:inconclusive: Either there is a missing 'override', or the member function 'dlgSettings::on_pbExit_clicked' can be static. [functionStatic] forwords-1.0.5/src/dlgsettings.h:56:10: note: Either there is a missing 'override', or the member function 'dlgSettings::on_pbExit_clicked' can be static. forwords-1.0.5/src/dlgsettings.cpp:194:19: note: Either there is a missing 'override', or the member function 'dlgSettings::on_pbExit_clicked' can be static. forwords-1.0.5/src/common.h:53:38: performance: Function parameter 'path' should be passed by const reference. [passedByValue] forwords-1.0.5/src/common.h:53:51: performance: Function parameter 'extention' should be passed by const reference. [passedByValue] forwords-1.0.5/src/common.h:66:30: style: Parameter 'vRange' can be declared as pointer to const [constParameterPointer] forwords-1.0.5/src/common.h:66:43: style: Parameter 'vValue' can be declared as pointer to const [constParameterPointer] forwords-1.0.5/src/common.h:73:25: style: Parameter 'vRange' can be declared as pointer to const [constParameterPointer] forwords-1.0.5/src/dlgedit.cpp:31:17: style: Unused variable: s [unusedVariable] forwords-1.0.5/src/dlgsettings.cpp:58:38: performance: Function parameter 's' should be passed by const reference. [passedByValue] forwords-1.0.5/src/dlgtest3.cpp:165:16: performance:inconclusive: Either there is a missing 'override', or the member function 'dlgTest3::on_pbExit_clicked' can be static. [functionStatic] forwords-1.0.5/src/dlgtest3.h:47:10: note: Either there is a missing 'override', or the member function 'dlgTest3::on_pbExit_clicked' can be static. forwords-1.0.5/src/dlgtest3.cpp:165:16: note: Either there is a missing 'override', or the member function 'dlgTest3::on_pbExit_clicked' can be static. forwords-1.0.5/src/dlgtest1.cpp:183:18: style: Condition 'lent>0' is always true [knownConditionTrueFalse] forwords-1.0.5/src/dlgtest1.cpp:173:14: note: Assuming that condition 'lent<1' is not redundant forwords-1.0.5/src/dlgtest1.cpp:183:18: note: Condition 'lent>0' is always true forwords-1.0.5/src/dlgtest1.cpp:128:9: style: The scope of the variable 'tr' can be reduced. [variableScope] forwords-1.0.5/src/dlgtest1.cpp:171:9: style: The scope of the variable 'vInd' can be reduced. [variableScope] forwords-1.0.5/src/dlgtest1.cpp:56:13: style: Unused variable: s [unusedVariable] forwords-1.0.5/src/dlgtest1.cpp:170:13: style: Unused variable: s [unusedVariable] forwords-1.0.5/src/tts.cpp:67:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EE_OK [valueFlowBailoutIncompleteVar] forwords-1.0.5/src/tts.cpp:78:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable POS_CHARACTER [valueFlowBailoutIncompleteVar] forwords-1.0.5/src/tts.cpp:103:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AUDIO_OUTPUT_SYNCH_PLAYBACK [valueFlowBailoutIncompleteVar] forwords-1.0.5/src/tts.cpp:26:6: warning: Member variable 'tts::fTTSinit' is not initialized in the constructor. [uninitMemberVar] forwords-1.0.5/src/tts.cpp:26:6: warning: Member variable 'tts::fListVoices' is not initialized in the constructor. [uninitMemberVar] forwords-1.0.5/src/tts.cpp:26:6: warning: Member variable 'tts::fSetVoice' is not initialized in the constructor. [uninitMemberVar] forwords-1.0.5/src/tts.cpp:26:6: warning: Member variable 'tts::fSynth' is not initialized in the constructor. [uninitMemberVar] forwords-1.0.5/src/tts.cpp:26:6: warning: Member variable 'tts::fEspeakCancel' is not initialized in the constructor. [uninitMemberVar] forwords-1.0.5/src/tts.cpp:26:6: warning: Member variable 'tts::lVoices' is not initialized in the constructor. [uninitMemberVar] forwords-1.0.5/src/tts.cpp:81:25: style:inconclusive: Technically the member function 'tts::getEngines' can be const. [functionConst] forwords-1.0.5/src/tts.h:38:24: note: Technically the member function 'tts::getEngines' can be const. forwords-1.0.5/src/tts.cpp:81:25: note: Technically the member function 'tts::getEngines' can be const. forwords-1.0.5/src/tts.cpp:29:5: warning: Class 'tts' does not have a copy constructor which is recommended since it has dynamic memory/resource management. [noCopyConstructor] forwords-1.0.5/src/tts.cpp:29:5: warning: Class 'tts' does not have a operator= which is recommended since it has dynamic memory/resource management. [noOperatorEq] forwords-1.0.5/src/tts.cpp:97:20: style: C-style pointer casting [cstyleCast] forwords-1.0.5/src/tts.cpp:108:28: style: C-style pointer casting [cstyleCast] forwords-1.0.5/src/tts.cpp:113:26: style: C-style pointer casting [cstyleCast] forwords-1.0.5/src/tts.cpp:118:23: style: C-style pointer casting [cstyleCast] forwords-1.0.5/src/tts.cpp:49:17: style: The scope of the variable 'name' can be reduced. [variableScope] forwords-1.0.5/src/tts.cpp:72:28: performance: Function parameter 'text' should be passed by const reference. [passedByValue] forwords-1.0.5/src/tts.cpp:31:13: style: Unused variable: s [unusedVariable] forwords-1.0.5/src/forwords.cpp:66:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable QJsonObject [valueFlowBailoutIncompleteVar] forwords-1.0.5/src/forwords.cpp:125:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ReadWrite [valueFlowBailoutIncompleteVar] forwords-1.0.5/src/forwords.cpp:169:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ReadWrite [valueFlowBailoutIncompleteVar] forwords-1.0.5/src/forwords.cpp:190:95: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Files [valueFlowBailoutIncompleteVar] forwords-1.0.5/src/forwords.cpp:251:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Dirs [valueFlowBailoutIncompleteVar] forwords-1.0.5/src/forwords.cpp:308:63: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Warning [valueFlowBailoutIncompleteVar] forwords-1.0.5/src/forwords.cpp:327:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ReadOnly [valueFlowBailoutIncompleteVar] forwords-1.0.5/src/forwords.cpp:403:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ReadWrite [valueFlowBailoutIncompleteVar] forwords-1.0.5/src/forwords.cpp:440:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ReadOnly [valueFlowBailoutIncompleteVar] forwords-1.0.5/src/forwords.cpp:616:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ReadWrite [valueFlowBailoutIncompleteVar] forwords-1.0.5/src/forwords.cpp:641:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ReadOnly [valueFlowBailoutIncompleteVar] forwords-1.0.5/src/forwords.cpp:671:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Critical [valueFlowBailoutIncompleteVar] forwords-1.0.5/src/forwords.cpp:704:62: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Critical [valueFlowBailoutIncompleteVar] forwords-1.0.5/src/forwords.cpp:737:93: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Critical [valueFlowBailoutIncompleteVar] forwords-1.0.5/src/forwords.cpp:747:93: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Critical [valueFlowBailoutIncompleteVar] forwords-1.0.5/src/forwords.cpp:758:70: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Critical [valueFlowBailoutIncompleteVar] forwords-1.0.5/src/forwords.cpp:848:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Information [valueFlowBailoutIncompleteVar] forwords-1.0.5/src/forwords.cpp:816:16: performance:inconclusive: Either there is a missing 'override', or the member function 'Forwords::on_actionExitClicked' can be static. [functionStatic] forwords-1.0.5/src/forwords.h:67:10: note: Either there is a missing 'override', or the member function 'Forwords::on_actionExitClicked' can be static. forwords-1.0.5/src/forwords.cpp:816:16: note: Either there is a missing 'override', or the member function 'Forwords::on_actionExitClicked' can be static. forwords-1.0.5/src/forwords.cpp:530:17: style: The scope of the variable 'sl' can be reduced. [variableScope] forwords-1.0.5/src/forwords.cpp:225:14: style: Local variable 'i' shadows outer variable [shadowVariable] forwords-1.0.5/src/forwords.cpp:218:9: note: Shadowed declaration forwords-1.0.5/src/forwords.cpp:225:14: note: Shadow variable forwords-1.0.5/src/forwords.cpp:239:14: style: Local variable 'i' shadows outer variable [shadowVariable] forwords-1.0.5/src/forwords.cpp:218:9: note: Shadowed declaration forwords-1.0.5/src/forwords.cpp:239:14: note: Shadow variable forwords-1.0.5/src/forwords.cpp:356:14: style: Local variable 'i' shadows outer variable [shadowVariable] forwords-1.0.5/src/forwords.cpp:345:9: note: Shadowed declaration forwords-1.0.5/src/forwords.cpp:356:14: note: Shadow variable forwords-1.0.5/src/forwords.cpp:463:18: style: Local variable 'i' shadows outer variable [shadowVariable] forwords-1.0.5/src/forwords.cpp:452:13: note: Shadowed declaration forwords-1.0.5/src/forwords.cpp:463:18: note: Shadow variable forwords-1.0.5/src/forwords.cpp:485:18: style: Local variable 'i' shadows outer variable [shadowVariable] forwords-1.0.5/src/forwords.cpp:452:13: note: Shadowed declaration forwords-1.0.5/src/forwords.cpp:485:18: note: Shadow variable forwords-1.0.5/src/forwords.cpp:518:18: style: Local variable 'i' shadows outer variable [shadowVariable] forwords-1.0.5/src/forwords.cpp:496:13: note: Shadowed declaration forwords-1.0.5/src/forwords.cpp:518:18: note: Shadow variable forwords-1.0.5/src/forwords.cpp:572:25: style: Local variable 'sl' shadows outer variable [shadowVariable] forwords-1.0.5/src/forwords.cpp:530:17: note: Shadowed declaration forwords-1.0.5/src/forwords.cpp:572:25: note: Shadow variable forwords-1.0.5/src/forwords.cpp:322:39: performance: Function parameter 'filename' should be passed by const reference. [passedByValue] forwords-1.0.5/src/forwords.cpp:398:39: performance: Function parameter 'filename' should be passed by const reference. [passedByValue] forwords-1.0.5/src/forwords.cpp:423:35: performance: Function parameter 's' should be passed by const reference. [passedByValue] forwords-1.0.5/src/forwords.cpp:436:36: performance: Function parameter 'filename' should be passed by const reference. [passedByValue] forwords-1.0.5/src/forwords.cpp:436:54: performance: Function parameter 'ext' should be passed by const reference. [passedByValue] forwords-1.0.5/src/forwords.cpp:589:42: performance: Function parameter 'str' should be passed by const reference. [passedByValue] forwords-1.0.5/src/forwords.cpp:773:40: performance: Function parameter 'text' should be passed by const reference. [passedByValue] forwords-1.0.5/src/forwords.cpp:789:38: performance: Function parameter 'text' should be passed by const reference. [passedByValue] forwords-1.0.5/src/forwords.cpp:789:52: performance: Function parameter 'engine' should be passed by const reference. [passedByValue] forwords-1.0.5/src/forwords.cpp:789:68: performance: Function parameter 'voice' should be passed by const reference. [passedByValue] forwords-1.0.5/src/forwords.cpp:810:44: performance: Function parameter 'engine' should be passed by const reference. [passedByValue] forwords-1.0.5/src/forwords.cpp:803:9: style: Consider using std::find_if algorithm instead of a raw loop. [useStlAlgorithm] forwords-1.0.5/src/forwords.cpp:77:16: style: Unused variable: vS [unusedVariable] forwords-1.0.5/src/forwords.cpp:78:16: style: Unused variable: vSIndex [unusedVariable] forwords-1.0.5/src/forwords.cpp:214:30: style: Unused variable: NewFileList [unusedVariable] diff: 2.18.0 forwords-1.0.5/src/tts.cpp:29:5: warning: Class 'tts' does not have a copy constructor which is recommended since it has dynamic memory/resource allocation(s). [noCopyConstructor] head forwords-1.0.5/src/tts.cpp:29:5: warning: Class 'tts' does not have a copy constructor which is recommended since it has dynamic memory/resource management. [noCopyConstructor] 2.18.0 forwords-1.0.5/src/tts.cpp:29:5: warning: Class 'tts' does not have a operator= which is recommended since it has dynamic memory/resource allocation(s). [noOperatorEq] head forwords-1.0.5/src/tts.cpp:29:5: warning: Class 'tts' does not have a operator= which is recommended since it has dynamic memory/resource management. [noOperatorEq] DONE