2026-05-01 02:28 ftp://ftp.de.debian.org/debian/pool/main/a/adjtimex/adjtimex_1.29.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 -j8 platform: Linux-6.18.15+deb14-amd64-x86_64-with-glibc2.42 python: 3.13.12 client-version: 1.4.0 compiler: g++ (Debian 15.2.0-17) 15.2.0 cppcheck: head 2.20.0 head-info: 0fda84ef (2026-05-01 02:32:52 +0200) count: 65 64 elapsed-time: 0.4 0.3 head-timing-info: old-timing-info: head results: adjtimex-1.29/mat.c:56:11: style: Variable '_a' can be declared as pointer to const [constVariablePointer] adjtimex-1.29/mat.c:71:11: style: Variable '_a' can be declared as pointer to const [constVariablePointer] adjtimex-1.29/mat.c:72:11: style: Variable '_b' can be declared as pointer to const [constVariablePointer] adjtimex-1.29/mat.c:88:11: style: Variable '_a' can be declared as pointer to const [constVariablePointer] adjtimex-1.29/mat.c:89:11: style: Variable '_b' can be declared as pointer to const [constVariablePointer] adjtimex-1.29/mat.c:104:11: style: Variable '_a' can be declared as pointer to const [constVariablePointer] adjtimex-1.29/mat.c:105:11: style: Variable '_b' can be declared as pointer to const [constVariablePointer] adjtimex-1.29/mat.c:134:11: style: Variable '_a' can be declared as pointer to const [constVariablePointer] adjtimex-1.29/mat.c:135:11: style: Variable '_b' can be declared as pointer to const [constVariablePointer] adjtimex-1.29/mat.c:164:11: style: Variable '_a' can be declared as pointer to const [constVariablePointer] adjtimex-1.29/mat.c:165:11: style: Variable '_b' can be declared as pointer to const [constVariablePointer] adjtimex-1.29/mat.c:214:11: style: Variable '_a' can be declared as pointer to const [constVariablePointer] adjtimex-1.29/mat.c:252:11: style: Variable '_a' can be declared as pointer to const [constVariablePointer] adjtimex-1.29/mat.c:253:11: style: Variable '_b' can be declared as pointer to const [constVariablePointer] adjtimex-1.29/mat.c:297:11: style: Variable '_a' can be declared as pointer to const [constVariablePointer] adjtimex-1.29/mat.c:298:11: style: Variable '_b' can be declared as pointer to const [constVariablePointer] adjtimex-1.29/mat.c:315:4: style: Variable 's' is assigned a value that is never used. [unreadVariable] adjtimex-1.29/adjtimex.c:249:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] adjtimex-1.29/adjtimex.c:265:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ADJ_TICK [valueFlowBailoutIncompleteVar] adjtimex-1.29/adjtimex.c:338:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] adjtimex-1.29/adjtimex.c:599:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] adjtimex-1.29/adjtimex.c:649:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] adjtimex-1.29/adjtimex.c:761:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] adjtimex-1.29/adjtimex.c:1024:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] adjtimex-1.29/adjtimex.c:1064:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] adjtimex-1.29/adjtimex.c:1280:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ADJ_FREQUENCY [valueFlowBailoutIncompleteVar] adjtimex-1.29/adjtimex.c:1361:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] adjtimex-1.29/adjtimex.c:1544:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] adjtimex-1.29/adjtimex.c:1596:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BOOT_TIME [valueFlowBailoutIncompleteVar] adjtimex-1.29/adjtimex.c:1684:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] adjtimex-1.29/adjtimex.c:1750:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] adjtimex-1.29/adjtimex.c:1824:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] adjtimex-1.29/adjtimex.c:1884:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tzname [valueFlowBailoutIncompleteVar] adjtimex-1.29/adjtimex.c:2190:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ADJ_FREQUENCY [valueFlowBailoutIncompleteVar] adjtimex-1.29/adjtimex.c:923:42: style: Obsolete function 'asctime' called. It is recommended to use 'strftime' instead. [prohibitedasctimeCalled] adjtimex-1.29/adjtimex.c:1355:9: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] adjtimex-1.29/adjtimex.c:1357:46: style: Obsolete function 'asctime' called. It is recommended to use 'strftime' instead. [prohibitedasctimeCalled] adjtimex-1.29/adjtimex.c:1368:39: style: Obsolete function 'asctime' called. It is recommended to use 'strftime' instead. [prohibitedasctimeCalled] adjtimex-1.29/adjtimex.c:1468:9: portability: Non reentrant function 'gmtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'gmtime_r'. [prohibitedgmtimeCalled] adjtimex-1.29/adjtimex.c:1505:14: portability: Non reentrant function 'gmtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'gmtime_r'. [prohibitedgmtimeCalled] adjtimex-1.29/adjtimex.c:1813:10: portability: Non reentrant function 'gmtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'gmtime_r'. [prohibitedgmtimeCalled] adjtimex-1.29/adjtimex.c:1876:12: portability: Non reentrant function 'gmtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'gmtime_r'. [prohibitedgmtimeCalled] adjtimex-1.29/adjtimex.c:1881:8: portability: Non reentrant function 'gmtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'gmtime_r'. [prohibitedgmtimeCalled] adjtimex-1.29/adjtimex.c:651:15: style: Condition 'port_fd<0' is always true [knownConditionTrueFalse] adjtimex-1.29/adjtimex.c:645:15: note: Assuming that condition 'port_fd>=0' is not redundant adjtimex-1.29/adjtimex.c:651:15: note: Condition 'port_fd<0' is always true adjtimex-1.29/adjtimex.c:1120:5: style: 'continue' is redundant since it is the last statement in a loop. [redundantContinue] adjtimex-1.29/adjtimex.c:1542:24: style:inconclusive: Function 'failntpdate' argument 1 names different: declaration '' definition 's'. [funcArgNamesDifferentUnnamed] adjtimex-1.29/adjtimex.c:260:16: style: Local variable 'txc' shadows outer variable [shadowVariable] adjtimex-1.29/adjtimex.c:116:14: note: Shadowed declaration adjtimex-1.29/adjtimex.c:260:16: note: Shadow variable adjtimex-1.29/adjtimex.c:730:17: style: Local variable 'count' shadows outer variable [shadowVariable] adjtimex-1.29/adjtimex.c:135:5: note: Shadowed declaration adjtimex-1.29/adjtimex.c:730:17: note: Shadow variable adjtimex-1.29/adjtimex.c:1128:16: style: Local variable 'txc' shadows outer variable [shadowVariable] adjtimex-1.29/adjtimex.c:116:14: note: Shadowed declaration adjtimex-1.29/adjtimex.c:1128:16: note: Shadow variable adjtimex-1.29/adjtimex.c:1401:12: style: Local variable 'buf' shadows outer variable [shadowVariable] adjtimex-1.29/adjtimex.c:1338:12: note: Shadowed declaration adjtimex-1.29/adjtimex.c:1401:12: note: Shadow variable adjtimex-1.29/adjtimex.c:1715:26: style: Local variable 'ca' shadows outer variable [shadowVariable] adjtimex-1.29/adjtimex.c:114:3: note: Shadowed declaration adjtimex-1.29/adjtimex.c:1715:26: note: Shadow variable adjtimex-1.29/adjtimex.c:210:8: style: Variable 'msg' can be declared as const array [constVariable] adjtimex-1.29/adjtimex.c:306:22: style: Parameter 'argv' can be declared as const array [constParameter] adjtimex-1.29/adjtimex.c:1131:20: style: Variable 'pca' can be declared as pointer to const [constVariablePointer] adjtimex-1.29/adjtimex.c:1542:24: style: Parameter 's' can be declared as pointer to const [constParameterPointer] adjtimex-1.29/adjtimex.c:1555:16: style: Variable 'ph' can be declared as pointer to const [constVariablePointer] adjtimex-1.29/adjtimex.c:1556:20: style: Variable 'pca' can be declared as pointer to const [constVariablePointer] adjtimex-1.29/adjtimex.c:1588:18: style: Variable 'up' can be declared as pointer to const [constVariablePointer] adjtimex-1.29/adjtimex.c:1889:27: style: Parameter 'first' can be declared as pointer to const [constParameterPointer] adjtimex-1.29/adjtimex.c:1889:45: style: Parameter 'second' can be declared as pointer to const [constParameterPointer] adjtimex-1.29/adjtimex.c:1928:16: style: Variable 'ph' can be declared as pointer to const [constVariablePointer] adjtimex-1.29/adjtimex.c:2137:22: style: Variable 'pca' can be declared as pointer to const [constVariablePointer] adjtimex-1.29/adjtimex.c:51:6: style: struct member 'rtc_time::tm_yday' is never used. [unusedStructMember] adjtimex-1.29/adjtimex.c:859:13: style: Variable 'got_tick' is assigned a value that is never used. [unreadVariable] adjtimex-1.29/adjtimex.c:1532:9: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] diff: head adjtimex-1.29/adjtimex.c:1542:24: style:inconclusive: Function 'failntpdate' argument 1 names different: declaration '' definition 's'. [funcArgNamesDifferentUnnamed] DONE