2025-11-23 08:50 ftp://ftp.de.debian.org/debian/pool/main/p/pmccabe/pmccabe_2.8.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 -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: cb76e52 (2025-11-22 14:47:37 +0100) count: 72 69 elapsed-time: 0.6 0.7 head-timing-info: old-timing-info: head results: pmccabe-v2.8/decomment.c:39:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] pmccabe-v2.8/decomment.c:67:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] pmccabe-v2.8/decomment.c:154:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] pmccabe-v2.8/decomment.c:237:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] pmccabe-v2.8/decomment.c:360:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] pmccabe-v2.8/decomment.c:382:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] pmccabe-v2.8/cparse.c:84:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] pmccabe-v2.8/cparse.c:122:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] pmccabe-v2.8/cparse.c:257:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] pmccabe-v2.8/cparse.c:318:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] pmccabe-v2.8/cparse.c:353:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] pmccabe-v2.8/cparse.c:380:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] pmccabe-v2.8/cparse.c:459:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] pmccabe-v2.8/cparse.c:623:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] pmccabe-v2.8/cparse.c:650:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] pmccabe-v2.8/dmain.c:44:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] pmccabe-v2.8/dmain.c:207:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] pmccabe-v2.8/dmain.c:433:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] pmccabe-v2.8/dmain.c:595:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] pmccabe-v2.8/dmain.c:608:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] pmccabe-v2.8/dmain.c:655:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] pmccabe-v2.8/dmain.c:692:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] pmccabe-v2.8/dmain.c:754:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] pmccabe-v2.8/decomment.c:29:11: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] pmccabe-v2.8/decomment.c:379:11: style: Variable 'langoverride' can be declared as pointer to const [constVariablePointer] pmccabe-v2.8/cparse.c:416:10: style: Variable '*buf' is reassigned a value before the old one has been used. [redundantAssignment] pmccabe-v2.8/cparse.c:396:7: note: *buf is assigned pmccabe-v2.8/cparse.c:416:10: note: *buf is overwritten pmccabe-v2.8/cparse.c:437:5: style:inconclusive: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] pmccabe-v2.8/cparse.c:422:26: style: Parameter 'stats' can be declared as pointer to const [constParameterPointer] pmccabe-v2.8/cparse.c:459:12: style: Variable 'c' is assigned a value that is never used. [unreadVariable] pmccabe-v2.8/cparse.c:602:8: style: Variable 'c' is assigned a value that is never used. [unreadVariable] pmccabe-v2.8/gettoken.c:13:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] pmccabe-v2.8/gettoken.c:42:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] pmccabe-v2.8/gettoken.c:71:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] pmccabe-v2.8/gettoken.c:83:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] pmccabe-v2.8/gettoken.c:307:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] pmccabe-v2.8/nmain.c:33:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] pmccabe-v2.8/pmccabe.c:87:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] pmccabe-v2.8/pmccabe.c:214:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] pmccabe-v2.8/pmccabe.c:234:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] pmccabe-v2.8/pmccabe.c:250:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] pmccabe-v2.8/pmccabe.c:300:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] pmccabe-v2.8/pmccabe.c:309:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] pmccabe-v2.8/getopt.c:446:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] pmccabe-v2.8/dmain.c:589:17: style: Local variable 'Cppflag' shadows outer variable [shadowVariable] pmccabe-v2.8/dmain.c:23:6: note: Shadowed declaration pmccabe-v2.8/dmain.c:589:17: note: Shadow variable pmccabe-v2.8/dmain.c:713:17: style: Local variable 'Cppflag' shadows outer variable [shadowVariable] pmccabe-v2.8/dmain.c:23:6: note: Shadowed declaration pmccabe-v2.8/dmain.c:713:17: note: Shadow variable pmccabe-v2.8/dmain.c:233:7: style: Variable 'a' can be declared as pointer to const [constVariablePointer] pmccabe-v2.8/dmain.c:288:7: style: Variable 'a' can be declared as pointer to const [constVariablePointer] pmccabe-v2.8/dmain.c:293:7: style: Variable 'a' can be declared as pointer to const [constVariablePointer] pmccabe-v2.8/dmain.c:360:4: style: Variable 'a' can be declared as pointer to const [constVariablePointer] pmccabe-v2.8/dmain.c:451:4: style: Variable 'a' can be declared as pointer to const [constVariablePointer] pmccabe-v2.8/dmain.c:460:3: style: Variable 'a' can be declared as pointer to const [constVariablePointer] pmccabe-v2.8/dmain.c:464:3: style: Variable 'a' can be declared as pointer to const [constVariablePointer] pmccabe-v2.8/dmain.c:522:4: style: Variable 'a' can be declared as pointer to const [constVariablePointer] pmccabe-v2.8/dmain.c:711:17: style: Parameter 'fname' can be declared as pointer to const [constParameterPointer] pmccabe-v2.8/io.c:33:12: style: Condition 'c=='\n'' is always false [knownConditionTrueFalse] pmccabe-v2.8/io.c:25:11: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] pmccabe-v2.8/nmain.c:254:2: style: Statements following noreturn function 'abort()' will never be executed. [unreachableCode] pmccabe-v2.8/nmain.c:21:16: style: Local variable 'Unbuf' shadows outer variable [shadowVariable] pmccabe-v2.8/pmccabe.h:87:12: note: Shadowed declaration pmccabe-v2.8/nmain.c:21:16: note: Shadow variable pmccabe-v2.8/nmain.c:21:26: style: Local variable 'Unptr' shadows outer variable [shadowVariable] pmccabe-v2.8/pmccabe.h:88:13: note: Shadowed declaration pmccabe-v2.8/nmain.c:21:26: note: Shadow variable pmccabe-v2.8/nmain.c:22:16: style: Local variable 'Pass1' shadows outer variable [shadowVariable] pmccabe-v2.8/pmccabe.h:78:12: note: Shadowed declaration pmccabe-v2.8/nmain.c:22:16: note: Shadow variable pmccabe-v2.8/nmain.c:18:12: style: Parameter 'fname' can be declared as pointer to const [constParameterPointer] pmccabe-v2.8/nmain.c:63:26: style: Parameter 'fs' can be declared as pointer to const [constParameterPointer] pmccabe-v2.8/nmain.c:63:40: style: Parameter 'fn' can be declared as pointer to const [constParameterPointer] pmccabe-v2.8/nmain.c:83:31: style: Parameter 'fs' can be declared as pointer to const [constParameterPointer] pmccabe-v2.8/nmain.c:83:45: style: Parameter 'fn' can be declared as pointer to const [constParameterPointer] pmccabe-v2.8/nmain.c:134:14: style: Variable 'fsp' can be declared as pointer to const [constVariablePointer] pmccabe-v2.8/pmccabe.c:307:23: style:inconclusive: Function 'fileerror' argument 1 names different: declaration 's' definition 'error'. [funcArgNamesDifferent] pmccabe-v2.8/pmccabe.h:136:28: note: Function 'fileerror' argument 1 names different: declaration 's' definition 'error'. pmccabe-v2.8/pmccabe.c:307:23: note: Function 'fileerror' argument 1 names different: declaration 's' definition 'error'. pmccabe-v2.8/pmccabe.c:83:11: style: Variable 'progname' can be declared as pointer to const [constVariablePointer] pmccabe-v2.8/pmccabe.c:270:39: style: Parameter 'sp' can be declared as pointer to const [constParameterPointer] pmccabe-v2.8/getopt.c:616:8: style: Variable 'temp' can be declared as pointer to const [constVariablePointer] pmccabe-v2.8/dmain.c:577:17: style: Local variable 'BetterDecomment' shadows outer variable [shadowVariable] pmccabe-v2.8/pmccabe.c:38:6: note: Shadowed declaration pmccabe-v2.8/dmain.c:577:17: note: Shadow variable pmccabe-v2.8/nmain.c:29:14: style: Local variable 'Cppflag' shadows outer variable [shadowVariable] pmccabe-v2.8/dmain.c:23:6: note: Shadowed declaration pmccabe-v2.8/nmain.c:29:14: note: Shadow variable diff: head pmccabe-v2.8/decomment.c:29:11: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] head pmccabe-v2.8/decomment.c:379:11: style: Variable 'langoverride' can be declared as pointer to const [constVariablePointer] head pmccabe-v2.8/nmain.c:134:14: style: Variable 'fsp' can be declared as pointer to const [constVariablePointer] DONE