2025-05-05 11:37 ftp://ftp.de.debian.org/debian/pool/main/l/lice5/lice5_5.3.0.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: fcc0493 (2025-05-05 13:08:11 +0200) count: 28 27 elapsed-time: 0.1 0.1 head-timing-info: old-timing-info: head results: lice5/extra/sscan.c:53:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] lice5/extra/sscan.c:98:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] lice5/extra/sscan.c:181:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] lice5/extra/sscan.c:167:2: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] lice5/extra/sscan.c:230:2: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] lice5/extra/sscan.c:102:8: style: Obsolescent function 'gethostbyname' called. It is recommended to use 'getaddrinfo' instead. [prohibitedgethostbynameCalled] lice5/extra/sscan.c:185:8: style: Obsolescent function 'gethostbyname' called. It is recommended to use 'getaddrinfo' instead. [prohibitedgethostbynameCalled] lice5/extra/sscan.c:57:11: style: Condition 'argc>=3' is always true [knownConditionTrueFalse] lice5/extra/sscan.c:52:11: note: Assuming that condition 'argc<3' is not redundant lice5/extra/sscan.c:57:11: note: Condition 'argc>=3' is always true lice5/extra/sscan.c:83:6: style: Local variable 'c' shadows outer variable [shadowVariable] lice5/extra/sscan.c:36:42: note: Shadowed declaration lice5/extra/sscan.c:83:6: note: Shadow variable lice5/extra/sscan.c:83:9: style: Local variable 'd' shadows outer variable [shadowVariable] lice5/extra/sscan.c:36:50: note: Shadowed declaration lice5/extra/sscan.c:83:9: note: Shadow variable lice5/extra/sscan.c:89:7: style: Local variable 'hexstr' shadows outer variable [shadowVariable] lice5/extra/sscan.c:27:12: note: Shadowed declaration lice5/extra/sscan.c:89:7: note: Shadow variable lice5/extra/sscan.c:173:9: style: Local variable 'd' shadows outer variable [shadowVariable] lice5/extra/sscan.c:36:50: note: Shadowed declaration lice5/extra/sscan.c:173:9: note: Shadow variable lice5/extra/sscan.c:48:26: style: Parameter 'argv' can be declared as const array [constParameter] lice5/extra/sscan.c:85:7: style: Variable 'keystring' can be declared as const array [constVariable] lice5/extra/sscan.c:95:18: style: Variable 'he' can be declared as pointer to const [constVariablePointer] lice5/extra/sscan.c:170:19: style: Parameter 'host' can be declared as pointer to const [constParameterPointer] lice5/extra/sscan.c:170:31: style: Parameter 'ba' can be declared as pointer to const [constParameterPointer] lice5/extra/sscan.c:170:41: style: Parameter 'bb' can be declared as pointer to const [constParameterPointer] lice5/extra/sscan.c:170:51: style: Parameter 'bc' can be declared as pointer to const [constParameterPointer] lice5/extra/sscan.c:170:61: style: Parameter 'bd' can be declared as pointer to const [constParameterPointer] lice5/extra/sscan.c:176:18: style: Variable 'he' can be declared as pointer to const [constVariablePointer] lice5/extra/sscan.c:82:8: style: Variable 's' is assigned a value that is never used. [unreadVariable] lice5/extra/sscan.c:82:6: style: Variable 's' is assigned a value that is never used. [unreadVariable] lice5/extra/sscan.c:83:6: style: Unused variable: c [unusedVariable] lice5/extra/sscan.c:83:12: style: Unused variable: r [unusedVariable] lice5/extra/sscan.c:94:17: style: Unused variable: MyHostAddr [unusedVariable] lice5/extra/sscan.c:172:6: style: Unused variable: wgsock [unusedVariable] lice5/extra/sscan.c:175:17: style: Unused variable: MyHostAddr [unusedVariable] diff: head lice5/extra/sscan.c:82:6: style: Variable 's' is assigned a value that is never used. [unreadVariable] DONE