2025-07-11 12:42 ftp://ftp.de.debian.org/debian/pool/main/s/setserial/setserial_2.17.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-63-generic-x86_64-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: 8f3d36a (2025-07-08 11:07:56 +0200) count: 19 19 elapsed-time: 0.0 0.1 head-timing-info: old-timing-info: head results: setserial-2.17/setserial.c:717:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] setserial-2.17/setserial.c:421:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] setserial-2.17/setserial.c:486:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] setserial-2.17/setserial.c:626:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] setserial-2.17/setserial.c:657:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] setserial-2.17/setserial.c:727:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] setserial-2.17/setserial.c:160:3: warning: %x in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] setserial-2.17/setserial.c:162:3: warning: %o in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] setserial-2.17/setserial.c:142:21: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] setserial-2.17/setserial.c:153:18: style: Parameter 's' can be declared as pointer to const [constParameterPointer] setserial-2.17/setserial.c:168:40: style: Parameter 'serinfo' can be declared as pointer to const [constParameterPointer] setserial-2.17/setserial.c:169:10: style: Parameter 'prefix' can be declared as pointer to const [constParameterPointer] setserial-2.17/setserial.c:169:24: style: Parameter 'postfix' can be declared as pointer to const [constParameterPointer] setserial-2.17/setserial.c:347:26: style: Parameter 'device' can be declared as pointer to const [constParameterPointer] setserial-2.17/setserial.c:352:26: style: Parameter 'device' can be declared as pointer to const [constParameterPointer] setserial-2.17/setserial.c:415:23: style: Parameter 'device' can be declared as pointer to const [constParameterPointer] setserial-2.17/setserial.c:483:8: style: Variable 'word' can be declared as pointer to const [constVariablePointer] setserial-2.17/setserial.c:620:25: style: Parameter 'device' can be declared as pointer to const [constParameterPointer] setserial-2.17/setserial.c:482:16: style: Variable 'do_invert' is assigned a value that is never used. [unreadVariable] diff: DONE