2025-05-08 21:05 ftp://ftp.de.debian.org/debian/pool/main/w/wcd/wcd_6.0.5.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --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 -j3 platform: Linux-6.8.0-1022-oracle-aarch64-with-glibc2.39 python: 3.12.3 client-version: 1.3.67 compiler: g++ (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 cppcheck: head 2.17.0 head-info: 66c9938 (2025-05-08 13:55:11 +0200) count: 70 70 elapsed-time: 0.7 0.7 head-timing-info: old-timing-info: head results: wcd-6.0.5/src/c3po/File.c:40:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] wcd-6.0.5/src/c3po/File.c:59:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] wcd-6.0.5/src/c3po/File.c:83:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] wcd-6.0.5/src/c3po/File.c:94:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] wcd-6.0.5/src/c3po/File.c:103:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] wcd-6.0.5/src/c3po/Error.c:34:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] wcd-6.0.5/src/c3po/Command.c:216:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] wcd-6.0.5/src/c3po/Usage.c:31:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] wcd-6.0.5/src/c3po/WcdStack.c:60:10: style:inconclusive: Found duplicate branches for 'if' and 'else'. [duplicateBranch] wcd-6.0.5/src/c3po/WcdStack.c:66:10: note: Found duplicate branches for 'if' and 'else'. wcd-6.0.5/src/c3po/WcdStack.c:60:10: note: Found duplicate branches for 'if' and 'else'. wcd-6.0.5/src/c3po/namesetw.c:33:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable namesetw_struct [valueFlowBailoutIncompleteVar] wcd-6.0.5/src/c3po/namesetw.c:53:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable namesetw_struct [valueFlowBailoutIncompleteVar] wcd-6.0.5/src/c3po/namesetw.c:108:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable textw [valueFlowBailoutIncompleteVar] wcd-6.0.5/src/finddirs.c:314:86: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] wcd-6.0.5/src/finddirs.c:486:77: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] wcd-6.0.5/src/finddirs.c:290:9: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] wcd-6.0.5/src/finddirs.c:319:12: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] wcd-6.0.5/src/finddirs.c:446:9: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] wcd-6.0.5/src/finddirs.c:483:12: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] wcd-6.0.5/src/graphics.c:203:8: error: There is an unknown macro here somewhere. Configuration is required. If dirnodeFold is a macro then please configure it. [unknownMacro] wcd-6.0.5/src/match.c:127:26: style:inconclusive: Function 'recmatch' argument 1 names different: declaration 'pattern' definition 'p'. [funcArgNamesDifferent] wcd-6.0.5/src/match.c:87:26: note: Function 'recmatch' argument 1 names different: declaration 'pattern' definition 'p'. wcd-6.0.5/src/match.c:127:26: note: Function 'recmatch' argument 1 names different: declaration 'pattern' definition 'p'. wcd-6.0.5/src/match.c:127:33: style:inconclusive: Function 'recmatch' argument 2 names different: declaration 'string' definition 's'. [funcArgNamesDifferent] wcd-6.0.5/src/match.c:87:40: note: Function 'recmatch' argument 2 names different: declaration 'string' definition 's'. wcd-6.0.5/src/match.c:127:33: note: Function 'recmatch' argument 2 names different: declaration 'string' definition 's'. wcd-6.0.5/src/match.c:127:39: style:inconclusive: Function 'recmatch' argument 3 names different: declaration 'ignore_case' definition 'ic'. [funcArgNamesDifferent] wcd-6.0.5/src/match.c:87:52: note: Function 'recmatch' argument 3 names different: declaration 'ignore_case' definition 'ic'. wcd-6.0.5/src/match.c:127:39: note: Function 'recmatch' argument 3 names different: declaration 'ignore_case' definition 'ic'. wcd-6.0.5/src/querycp.c:194:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODESET [valueFlowBailoutIncompleteVar] wcd-6.0.5/src/matchl.c:333:27: style:inconclusive: Function 'recmatchl' argument 1 names different: declaration 'pattern' definition 'p'. [funcArgNamesDifferent] wcd-6.0.5/src/matchl.c:254:27: note: Function 'recmatchl' argument 1 names different: declaration 'pattern' definition 'p'. wcd-6.0.5/src/matchl.c:333:27: note: Function 'recmatchl' argument 1 names different: declaration 'pattern' definition 'p'. wcd-6.0.5/src/matchl.c:333:34: style:inconclusive: Function 'recmatchl' argument 2 names different: declaration 'string' definition 's'. [funcArgNamesDifferent] wcd-6.0.5/src/matchl.c:254:41: note: Function 'recmatchl' argument 2 names different: declaration 'string' definition 's'. wcd-6.0.5/src/matchl.c:333:34: note: Function 'recmatchl' argument 2 names different: declaration 'string' definition 's'. wcd-6.0.5/src/matchl.c:333:40: style:inconclusive: Function 'recmatchl' argument 3 names different: declaration 'ignore_case' definition 'ic'. [funcArgNamesDifferent] wcd-6.0.5/src/matchl.c:254:53: note: Function 'recmatchl' argument 3 names different: declaration 'ignore_case' definition 'ic'. wcd-6.0.5/src/matchl.c:333:40: note: Function 'recmatchl' argument 3 names different: declaration 'ignore_case' definition 'ic'. wcd-6.0.5/src/matchw.c:291:33: style:inconclusive: Function 'recmatchwcs' argument 1 names different: declaration 'pattern' definition 'p'. [funcArgNamesDifferent] wcd-6.0.5/src/matchw.c:185:33: note: Function 'recmatchwcs' argument 1 names different: declaration 'pattern' definition 'p'. wcd-6.0.5/src/matchw.c:291:33: note: Function 'recmatchwcs' argument 1 names different: declaration 'pattern' definition 'p'. wcd-6.0.5/src/matchw.c:291:44: style:inconclusive: Function 'recmatchwcs' argument 2 names different: declaration 'string' definition 's'. [funcArgNamesDifferent] wcd-6.0.5/src/matchw.c:185:51: note: Function 'recmatchwcs' argument 2 names different: declaration 'string' definition 's'. wcd-6.0.5/src/matchw.c:291:44: note: Function 'recmatchwcs' argument 2 names different: declaration 'string' definition 's'. wcd-6.0.5/src/matchw.c:291:50: style:inconclusive: Function 'recmatchwcs' argument 3 names different: declaration 'ignore_case' definition 'ic'. [funcArgNamesDifferent] wcd-6.0.5/src/matchw.c:185:63: note: Function 'recmatchwcs' argument 3 names different: declaration 'ignore_case' definition 'ic'. wcd-6.0.5/src/matchw.c:291:50: note: Function 'recmatchwcs' argument 3 names different: declaration 'ignore_case' definition 'ic'. wcd-6.0.5/src/wcddir.c:554:74: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] wcd-6.0.5/src/wcddir.c:659:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] wcd-6.0.5/src/wcddir.c:674:77: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] wcd-6.0.5/src/wcddir.c:683:74: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] wcd-6.0.5/src/wcddir.c:712:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] wcd-6.0.5/src/wfixpath.c:65:83: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] wcd-6.0.5/src/wcd.c:170:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] wcd-6.0.5/src/wcd.c:182:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] wcd-6.0.5/src/wcd.c:209:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] wcd-6.0.5/src/wcd.c:236:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] wcd-6.0.5/src/wcd.c:288:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] wcd-6.0.5/src/wcd.c:344:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] wcd-6.0.5/src/wcd.c:409:87: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] wcd-6.0.5/src/wcd.c:1111:62: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] wcd-6.0.5/src/wcd.c:1893:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] wcd-6.0.5/src/wcd.c:2115:63: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODESET [valueFlowBailoutIncompleteVar] wcd-6.0.5/src/wcd.c:2519:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_ALL [valueFlowBailoutIncompleteVar] wcd-6.0.5/src/wcd.c:2403:14: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] wcd-6.0.5/src/wcd.c:2412:17: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] wcd-6.0.5/src/wcd.c:2422:14: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] wcd-6.0.5/src/wcd.c:2433:17: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] wcd-6.0.5/src/wcd.c:1894:4: portability: fflush() called on input stream 'stdin' may result in undefined behaviour on non-linux systems. [fflushOnInputStream] wcd-6.0.5/src/wcd.c:1381:51: style:inconclusive: Function 'read_treefile' argument 3 names different: declaration 'silent' definition 'quiet'. [funcArgNamesDifferent] wcd-6.0.5/src/wcd.h:149:51: note: Function 'read_treefile' argument 3 names different: declaration 'silent' definition 'quiet'. wcd-6.0.5/src/wcd.c:1381:51: note: Function 'read_treefile' argument 3 names different: declaration 'silent' definition 'quiet'. wcd-6.0.5/src/wcd.c:1499:64: style:inconclusive: Function 'read_treefile_line' argument 3 names different: declaration 'file_name' definition 'filename'. [funcArgNamesDifferent] wcd-6.0.5/src/wcd.h:174:64: note: Function 'read_treefile_line' argument 3 names different: declaration 'file_name' definition 'filename'. wcd-6.0.5/src/wcd.c:1499:64: note: Function 'read_treefile_line' argument 3 names different: declaration 'file_name' definition 'filename'. wcd-6.0.5/src/wcd.c:380:14: style: Variable 'src' can be declared as pointer to const [constVariablePointer] wcd-6.0.5/src/wcd.c:401:26: style: Parameter 'string' can be declared as pointer to const [constParameterPointer] wcd-6.0.5/src/wcd.c:442:23: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] wcd-6.0.5/src/wcd.c:706:8: style: Variable 'path' can be declared as pointer to const [constVariablePointer] wcd-6.0.5/src/wcd.c:1381:25: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] wcd-6.0.5/src/wcd.c:1444:30: style: Parameter 'dir' can be declared as pointer to const [constParameterPointer] wcd-6.0.5/src/wcd.c:1472:24: style: Parameter 'dir' can be declared as pointer to const [constParameterPointer] wcd-6.0.5/src/wcd.c:1593:36: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] wcd-6.0.5/src/wcd.c:1745:41: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] wcd-6.0.5/src/wcd.c:1749:10: style: Variable 'dir' can be declared as pointer to const [constVariablePointer] wcd-6.0.5/src/wcd.c:1823:28: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] wcd-6.0.5/src/wcd.c:2282:10: style: Variable 'path' can be declared as pointer to const [constVariablePointer] wcd-6.0.5/src/wcd.c:2471:16: style: Variable 'stackptr' can be declared as pointer to const [constVariablePointer] wcd-6.0.5/src/wcd.c:3498:22: style: Variable 'ptr' is assigned a value that is never used. [unreadVariable] wcd-6.0.5/src/wcd.c:3791:19: style: Variable 'ptr' is assigned a value that is never used. [unreadVariable] wcd-6.0.5/src/wcd.c:2492:9: style: Variable 'changedrive' is assigned a value that is never used. [unreadVariable] wcd-6.0.5/src/wcd.c:2493:9: style: Unused variable: drive [unusedVariable] diff: DONE