2026-05-02 17:04 ftp://ftp.de.debian.org/debian/pool/main/i/iotop-c/iotop-c_1.31.orig.tar.xz 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 -j1 platform: Linux-6.8.0-1047-aws-aarch64-with-glibc2.35 python: 3.10.12 client-version: 1.4.0 compiler: g++ (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0 cppcheck: head 2.20.0 head-info: e5c4a73 (2026-05-01 11:10:43 +0200) count: 91 86 elapsed-time: 2.8 2.5 head-timing-info: old-timing-info: head results: iotop-1.31/src/arr.c:42:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] iotop-1.31/src/arr.c:65:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] iotop-1.31/src/arr.c:58:44: style:inconclusive: Function 'arr_add' argument 1 names different: declaration 'a' definition 'pa'. [funcArgNamesDifferent] iotop-1.31/src/iotop.h:286:44: note: Function 'arr_add' argument 1 names different: declaration 'a' definition 'pa'. iotop-1.31/src/arr.c:58:44: note: Function 'arr_add' argument 1 names different: declaration 'a' definition 'pa'. iotop-1.31/src/arr.c:58:67: style:inconclusive: Function 'arr_add' argument 2 names different: declaration 's' definition 'ps'. [funcArgNamesDifferent] iotop-1.31/src/iotop.h:286:66: note: Function 'arr_add' argument 2 names different: declaration 's' definition 'ps'. iotop-1.31/src/arr.c:58:67: note: Function 'arr_add' argument 2 names different: declaration 's' definition 'ps'. iotop-1.31/src/checks.c:38:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _LINUX_CAPABILITY_VERSION_3 [valueFlowBailoutIncompleteVar] iotop-1.31/src/configfile.c:34:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] iotop-1.31/src/configfile.c:52:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] iotop-1.31/src/configfile.c:94:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] iotop-1.31/src/configfile.c:53:8: style: Variable 'xdgconfig' can be declared as pointer to const [constVariablePointer] iotop-1.31/src/configfile.c:54:8: style: Variable 'home' can be declared as pointer to const [constVariablePointer] iotop-1.31/src/delayacct.c:30:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] iotop-1.31/src/delayacct.c:68:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOENT [valueFlowBailoutIncompleteVar] iotop-1.31/src/delayacct.c:78:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_WRONLY [valueFlowBailoutIncompleteVar] iotop-1.31/src/delayacct.c:74:8: style: Variable 'v' can be declared as pointer to const [constVariablePointer] iotop-1.31/src/ioprio.c:30:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIO_PROCESS [valueFlowBailoutIncompleteVar] iotop-1.31/src/ioprio.c:80:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SYS_ioprio_set [valueFlowBailoutIncompleteVar] iotop-1.31/src/main.c:194:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optind [valueFlowBailoutIncompleteVar] iotop-1.31/src/main.c:499:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_ALL [valueFlowBailoutIncompleteVar] iotop-1.31/src/main.c:360:26: portability: Non reentrant function 'getpwnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwnam_r'. [prohibitedgetpwnamCalled] iotop-1.31/src/main.c:269:10: style: Local variable 'i' shadows outer variable [shadowVariable] iotop-1.31/src/main.c:175:6: note: Shadowed declaration iotop-1.31/src/main.c:269:10: note: Shadow variable iotop-1.31/src/main.c:172:8: style: Variable 'no_renice' can be declared as pointer to const [constVariablePointer] iotop-1.31/src/main.c:173:8: style: Variable 'no_color' can be declared as pointer to const [constVariablePointer] iotop-1.31/src/main.c:202:25: style: Variable 'long_options' can be declared as const array [constVariable] iotop-1.31/src/main.c:360:22: style: Variable 'pwd' can be declared as pointer to const [constVariablePointer] iotop-1.31/src/ucell.c:114:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] iotop-1.31/src/ucell.c:163:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] iotop-1.31/src/ucell.c:195:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] iotop-1.31/src/ucell.c:238:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] iotop-1.31/src/ucell.c:311:7: style: Variable 's' can be declared as const array [constVariable] iotop-1.31/src/ucell.c:320:7: style: Variable 's' can be declared as const array [constVariable] iotop-1.31/src/ucell.c:329:7: style: Variable 's' can be declared as const array [constVariable] iotop-1.31/src/ucell.c:338:7: style: Variable 's' can be declared as const array [constVariable] iotop-1.31/src/ucell.c:618:29: style: Parameter 'uc' can be declared as pointer to const [constParameterPointer] iotop-1.31/src/ucell.c:625:32: style: Parameter 'uc' can be declared as pointer to const [constParameterPointer] iotop-1.31/src/ucell.c:710:35: style: Parameter 'uc' can be declared as pointer to const [constParameterPointer] iotop-1.31/src/utils.c:37:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] iotop-1.31/src/utils.c:189:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLOCK_MONOTONIC [valueFlowBailoutIncompleteVar] iotop-1.31/src/utils.c:146:56: style:inconclusive: Function 'pidgen_cb' argument 2 names different: declaration '' definition 'hint1'. [funcArgNamesDifferentUnnamed] iotop-1.31/src/utils.c:146:78: style:inconclusive: Function 'pidgen_cb' argument 3 names different: declaration '' definition 'hint2'. [funcArgNamesDifferentUnnamed] iotop-1.31/src/utils.c:274:46: style:inconclusive: Function 'u8strpadt' argument 2 names different: declaration 'len' definition 'rlen'. [funcArgNamesDifferent] iotop-1.31/src/iotop.h:218:46: note: Function 'u8strpadt' argument 2 names different: declaration 'len' definition 'rlen'. iotop-1.31/src/utils.c:274:46: note: Function 'u8strpadt' argument 2 names different: declaration 'len' definition 'rlen'. iotop-1.31/src/utils.c:70:11: style: Variable 'ep' can be declared as pointer to const [constVariablePointer] iotop-1.31/src/utils.c:150:18: style: Variable 'de' can be declared as pointer to const [constVariablePointer] iotop-1.31/src/utils.c:164:20: style: Variable 'tde' can be declared as pointer to const [constVariablePointer] iotop-1.31/src/utils.c:237:8: style: Variable 's' can be declared as pointer to const [constVariablePointer] iotop-1.31/src/view_batch.c:101:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable REG_NOMATCH [valueFlowBailoutIncompleteVar] iotop-1.31/src/view_batch.c:132:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] iotop-1.31/src/view_batch.c:160:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] iotop-1.31/src/view_curses.c:321:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable REG_NOMATCH [valueFlowBailoutIncompleteVar] iotop-1.31/src/view_curses.c:394:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable A_REVERSE [valueFlowBailoutIncompleteVar] iotop-1.31/src/view_curses.c:645:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable A_REVERSE [valueFlowBailoutIncompleteVar] iotop-1.31/src/view_curses.c:702:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable A_REVERSE [valueFlowBailoutIncompleteVar] iotop-1.31/src/view_curses.c:790:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable A_REVERSE [valueFlowBailoutIncompleteVar] iotop-1.31/src/view_curses.c:1911:71: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable REG_EXTENDED [valueFlowBailoutIncompleteVar] iotop-1.31/src/view_curses.c:1936:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERR [valueFlowBailoutIncompleteVar] iotop-1.31/src/view_curses.c:2370:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERR [valueFlowBailoutIncompleteVar] iotop-1.31/src/view_curses.c:2555:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_CTYPE [valueFlowBailoutIncompleteVar] iotop-1.31/src/view_curses.c:2649:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERR [valueFlowBailoutIncompleteVar] iotop-1.31/src/view_curses.c:1023:7: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] iotop-1.31/src/view_curses.c:1585:8: portability: Non reentrant function 'getpwuid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwuid_r'. [prohibitedgetpwuidCalled] iotop-1.31/src/view_curses.c:1599:8: portability: Non reentrant function 'getpwuid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwuid_r'. [prohibitedgetpwuidCalled] iotop-1.31/src/view_curses.c:2635:3: warning: %u in format string (no. 2) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] iotop-1.31/src/view_curses.c:503:6: style: Local variable 'hh' shadows outer variable [shadowVariable] iotop-1.31/src/view_curses.c:129:31: note: Shadowed declaration iotop-1.31/src/view_curses.c:503:6: note: Shadow variable iotop-1.31/src/view_curses.c:504:6: style: Local variable 'hw' shadows outer variable [shadowVariable] iotop-1.31/src/view_curses.c:129:22: note: Shadowed declaration iotop-1.31/src/view_curses.c:504:6: note: Shadow variable iotop-1.31/src/view_curses.c:1639:10: style: Local variable 'ps' shadows outer argument [shadowArgument] iotop-1.31/src/view_curses.c:758:83: note: Shadowed declaration iotop-1.31/src/view_curses.c:1639:10: note: Shadow variable iotop-1.31/src/view_curses.c:523:12: style: Variable 'acc' can be declared as pointer to const [constVariablePointer] iotop-1.31/src/view_curses.c:563:12: style: Variable 'grt' can be declared as pointer to const [constVariablePointer] iotop-1.31/src/view_curses.c:615:12: style: Variable 'tda' can be declared as pointer to const [constVariablePointer] iotop-1.31/src/view_curses.c:1020:15: style: Variable 'tm' can be declared as pointer to const [constVariablePointer] iotop-1.31/src/view_curses.c:1440:24: style: Variable 'p' can be declared as pointer to const [constVariablePointer] iotop-1.31/src/view_curses.c:2505:13: style: Variable 'ss' can be declared as pointer to const [constVariablePointer] iotop-1.31/src/view_curses.c:2547:8: style: Variable 'term' can be declared as pointer to const [constVariablePointer] iotop-1.31/src/views.c:80:131: style:inconclusive: Function 'create_diff' argument 6 names different: declaration '' definition 'width'. [funcArgNamesDifferentUnnamed] iotop-1.31/src/views.c:80:142: style:inconclusive: Function 'create_diff' argument 7 names different: declaration '' definition 'cnt'. [funcArgNamesDifferentUnnamed] iotop-1.31/src/views.c:52:44: style: Parameter 'act' can be declared as pointer to const [constParameterPointer] iotop-1.31/src/views.c:87:23: style: Variable 'p' can be declared as pointer to const [constVariablePointer] iotop-1.31/src/views.c:416:40: style: Parameter 's' can be declared as pointer to const [constParameterPointer] iotop-1.31/src/vmstat.c:34:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] iotop-1.31/src/vmstat.c:30:13: style: Variable 'pi' can be declared as pointer to const [constVariablePointer] iotop-1.31/src/vmstat.c:30:17: style: Variable 'po' can be declared as pointer to const [constVariablePointer] iotop-1.31/src/xxxid_info.c:67:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GENL_HDRLEN [valueFlowBailoutIncompleteVar] iotop-1.31/src/xxxid_info.c:104:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TASKSTATS_GENL_NAME [valueFlowBailoutIncompleteVar] iotop-1.31/src/xxxid_info.c:128:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_NETLINK [valueFlowBailoutIncompleteVar] iotop-1.31/src/xxxid_info.c:152:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] iotop-1.31/src/xxxid_info.c:282:6: portability: Non reentrant function 'getpwuid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwuid_r'. [prohibitedgetpwuidCalled] iotop-1.31/src/xxxid_info.c:310:59: style:inconclusive: Function 'fetch_data' argument 1 names different: declaration '' definition 'filter'. [funcArgNamesDifferentUnnamed] iotop-1.31/src/xxxid_info.c:55:101: style: Parameter 'nla_data' can be declared as pointer to const [constParameterPointer] iotop-1.31/src/xxxid_info.c:172:20: style: Variable 'err' can be declared as pointer to const [constVariablePointer] iotop-1.31/src/xxxid_info.c:202:24: style: Variable 'ts' can be declared as pointer to const [constVariablePointer] iotop-1.31/src/xxxid_info.c:203:28: style: Variable 't14' can be declared as pointer to const [constVariablePointer] iotop-1.31/src/xxxid_info.c:204:28: style: Variable 't15' can be declared as pointer to const [constVariablePointer] iotop-1.31/src/xxxid_info.c:254:17: style: Variable 'pwd' can be declared as pointer to const [constVariablePointer] diff: head iotop-1.31/src/utils.c:146:56: style:inconclusive: Function 'pidgen_cb' argument 2 names different: declaration '' definition 'hint1'. [funcArgNamesDifferentUnnamed] head iotop-1.31/src/utils.c:146:78: style:inconclusive: Function 'pidgen_cb' argument 3 names different: declaration '' definition 'hint2'. [funcArgNamesDifferentUnnamed] head iotop-1.31/src/views.c:80:131: style:inconclusive: Function 'create_diff' argument 6 names different: declaration '' definition 'width'. [funcArgNamesDifferentUnnamed] head iotop-1.31/src/views.c:80:142: style:inconclusive: Function 'create_diff' argument 7 names different: declaration '' definition 'cnt'. [funcArgNamesDifferentUnnamed] head iotop-1.31/src/xxxid_info.c:310:59: style:inconclusive: Function 'fetch_data' argument 1 names different: declaration '' definition 'filter'. [funcArgNamesDifferentUnnamed] DONE