2026-05-04 09:28 ftp://ftp.de.debian.org/debian/pool/main/p/powerdebug/powerdebug_0.7.0-2013.08.orig.tar.bz2 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: 62 55 elapsed-time: 0.3 0.2 head-timing-info: old-timing-info: head results: linaro-powerdebug-0.7.0-2013.08/clocks.c:422:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] linaro-powerdebug-0.7.0-2013.08/clocks.c:424:20: style: Condition 'locate_debugfs(clk_dir_path[CCF])' is always false [knownConditionTrueFalse] linaro-powerdebug-0.7.0-2013.08/clocks.c:424:20: note: Calling function 'locate_debugfs' returns 0 linaro-powerdebug-0.7.0-2013.08/clocks.c:424:20: note: Condition 'locate_debugfs(clk_dir_path[CCF])' is always false linaro-powerdebug-0.7.0-2013.08/clocks.c:424:57: style: Condition 'locate_debugfs(clk_dir_path[OCF])' is always false [knownConditionTrueFalse] linaro-powerdebug-0.7.0-2013.08/clocks.c:424:57: note: Calling function 'locate_debugfs' returns 0 linaro-powerdebug-0.7.0-2013.08/clocks.c:424:57: note: Condition 'locate_debugfs(clk_dir_path[OCF])' is always false linaro-powerdebug-0.7.0-2013.08/clocks.c:107:21: style: Variable 'pclk' can be declared as pointer to const [constVariablePointer] linaro-powerdebug-0.7.0-2013.08/clocks.c:140:35: style: Parameter 'clkarg' can be declared as pointer to const [constParameterPointer] linaro-powerdebug-0.7.0-2013.08/clocks.c:201:47: style: Parameter 'data' can be declared as pointer to const. However it seems that 'is_collapsed' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] linaro-powerdebug-0.7.0-2013.08/clocks.c:278:38: note: You might need to cast the function pointer here linaro-powerdebug-0.7.0-2013.08/clocks.c:201:47: note: Parameter 'data' can be declared as pointer to const linaro-powerdebug-0.7.0-2013.08/clocks.c:203:21: style: Variable 'clk' can be declared as pointer to const [constVariablePointer] linaro-powerdebug-0.7.0-2013.08/clocks.c:213:21: style: Variable 'clk' can be declared as pointer to const [constVariablePointer] linaro-powerdebug-0.7.0-2013.08/clocks.c:250:21: style: Variable 'clock' can be declared as pointer to const [constVariablePointer] linaro-powerdebug-0.7.0-2013.08/clocks.c:427:51: error: Undefined behavior: Variable 'clk_dir_path[CCF]' is used as parameter and destination in sprintf(). [sprintfOverlappingData] linaro-powerdebug-0.7.0-2013.08/clocks.c:428:53: error: Undefined behavior: Variable 'clk_dir_path[OCF]' is used as parameter and destination in sprintf(). [sprintfOverlappingData] linaro-powerdebug-0.7.0-2013.08/display.c:89:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable A_REVERSE [valueFlowBailoutIncompleteVar] linaro-powerdebug-0.7.0-2013.08/display.c:107:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable A_REVERSE [valueFlowBailoutIncompleteVar] linaro-powerdebug-0.7.0-2013.08/display.c:134:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdscr [valueFlowBailoutIncompleteVar] linaro-powerdebug-0.7.0-2013.08/display.c:148:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WA_NORMAL [valueFlowBailoutIncompleteVar] linaro-powerdebug-0.7.0-2013.08/display.c:207:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdscr [valueFlowBailoutIncompleteVar] linaro-powerdebug-0.7.0-2013.08/display.c:278:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WA_BOLD [valueFlowBailoutIncompleteVar] linaro-powerdebug-0.7.0-2013.08/display.c:316:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdscr [valueFlowBailoutIncompleteVar] linaro-powerdebug-0.7.0-2013.08/display.c:575:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdscr [valueFlowBailoutIncompleteVar] linaro-powerdebug-0.7.0-2013.08/display.c:609:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable A_BOLD [valueFlowBailoutIncompleteVar] linaro-powerdebug-0.7.0-2013.08/display.c:385:25: style: Condition 'display_show_footer(current_win,"find (esc to exit)?")' is always false [knownConditionTrueFalse] linaro-powerdebug-0.7.0-2013.08/display.c:385:25: note: Calling function 'display_show_footer' returns 0 linaro-powerdebug-0.7.0-2013.08/display.c:385:25: note: Condition 'display_show_footer(current_win,"find (esc to exit)?")' is always false linaro-powerdebug-0.7.0-2013.08/display.c:455:25: style: Condition 'display_show_header(current_win)' is always false [knownConditionTrueFalse] linaro-powerdebug-0.7.0-2013.08/display.c:455:25: note: Calling function 'display_show_header' returns 0 linaro-powerdebug-0.7.0-2013.08/display.c:455:25: note: Condition 'display_show_header(current_win)' is always false linaro-powerdebug-0.7.0-2013.08/display.c:458:25: style: Condition 'display_show_footer(current_win,NULL)' is always false [knownConditionTrueFalse] linaro-powerdebug-0.7.0-2013.08/display.c:458:25: note: Calling function 'display_show_footer' returns 0 linaro-powerdebug-0.7.0-2013.08/display.c:458:25: note: Condition 'display_show_footer(current_win,NULL)' is always false linaro-powerdebug-0.7.0-2013.08/display.c:530:25: style: Condition 'display_show_header(current_win)' is always false [knownConditionTrueFalse] linaro-powerdebug-0.7.0-2013.08/display.c:530:25: note: Calling function 'display_show_header' returns 0 linaro-powerdebug-0.7.0-2013.08/display.c:530:25: note: Condition 'display_show_header(current_win)' is always false linaro-powerdebug-0.7.0-2013.08/display.c:533:25: style: Condition 'display_show_footer(current_win,strlen(string)?string:"find (esc to exit)?")' is always false [knownConditionTrueFalse] linaro-powerdebug-0.7.0-2013.08/display.c:533:25: note: Calling function 'display_show_footer' returns 0 linaro-powerdebug-0.7.0-2013.08/display.c:533:25: note: Condition 'display_show_footer(current_win,strlen(string)?string:"find (esc to exit)?")' is always false linaro-powerdebug-0.7.0-2013.08/display.c:597:25: style: Condition 'display_show_header(wdefault)' is always false [knownConditionTrueFalse] linaro-powerdebug-0.7.0-2013.08/display.c:597:25: note: Calling function 'display_show_header' returns 0 linaro-powerdebug-0.7.0-2013.08/display.c:597:25: note: Condition 'display_show_header(wdefault)' is always false linaro-powerdebug-0.7.0-2013.08/display.c:600:25: style: Condition 'display_show_footer(wdefault,NULL)' is always false [knownConditionTrueFalse] linaro-powerdebug-0.7.0-2013.08/display.c:600:25: note: Calling function 'display_show_footer' returns 0 linaro-powerdebug-0.7.0-2013.08/display.c:600:25: note: Condition 'display_show_footer(wdefault,NULL)' is always false linaro-powerdebug-0.7.0-2013.08/display.c:253:3: error: Common realloc mistake: 'rowdata' nulled but not freed upon failure [memleakOnRealloc] linaro-powerdebug-0.7.0-2013.08/display.c:130:29: style:inconclusive: Function 'display_refresh_pad' argument 1 names different: declaration 'window' definition 'win'. [funcArgNamesDifferent] linaro-powerdebug-0.7.0-2013.08/display.h:29:36: note: Function 'display_refresh_pad' argument 1 names different: declaration 'window' definition 'win'. linaro-powerdebug-0.7.0-2013.08/display.c:130:29: note: Function 'display_refresh_pad' argument 1 names different: declaration 'window' definition 'win'. linaro-powerdebug-0.7.0-2013.08/display.c:154:32: style:inconclusive: Function 'display_get_row_data' argument 1 names different: declaration 'window' definition 'win'. [funcArgNamesDifferent] linaro-powerdebug-0.7.0-2013.08/display.h:31:39: note: Function 'display_get_row_data' argument 1 names different: declaration 'window' definition 'win'. linaro-powerdebug-0.7.0-2013.08/display.c:154:32: note: Function 'display_get_row_data' argument 1 names different: declaration 'window' definition 'win'. linaro-powerdebug-0.7.0-2013.08/display.c:266:30: style:inconclusive: Function 'display_reset_cursor' argument 1 names different: declaration 'window' definition 'win'. [funcArgNamesDifferent] linaro-powerdebug-0.7.0-2013.08/display.h:30:37: note: Function 'display_reset_cursor' argument 1 names different: declaration 'window' definition 'win'. linaro-powerdebug-0.7.0-2013.08/display.c:266:30: note: Function 'display_reset_cursor' argument 1 names different: declaration 'window' definition 'win'. linaro-powerdebug-0.7.0-2013.08/display.c:273:28: style:inconclusive: Function 'display_print_line' argument 1 names different: declaration 'window' definition 'win'. [funcArgNamesDifferent] linaro-powerdebug-0.7.0-2013.08/display.h:26:35: note: Function 'display_print_line' argument 1 names different: declaration 'window' definition 'win'. linaro-powerdebug-0.7.0-2013.08/display.c:273:28: note: Function 'display_print_line' argument 1 names different: declaration 'window' definition 'win'. linaro-powerdebug-0.7.0-2013.08/display.c:205:18: style: Variable 'rowdata' can be declared as pointer to const [constVariablePointer] linaro-powerdebug-0.7.0-2013.08/display.c:230:18: style: Variable 'rowdata' can be declared as pointer to const [constVariablePointer] linaro-powerdebug-0.7.0-2013.08/display.c:391:44: style: Parameter 'data' can be declared as pointer to const. However it seems that 'display_keystroke' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] linaro-powerdebug-0.7.0-2013.08/display.c:547:22: note: You might need to cast the function pointer here linaro-powerdebug-0.7.0-2013.08/display.c:391:44: note: Parameter 'data' can be declared as pointer to const linaro-powerdebug-0.7.0-2013.08/display.c:467:11: style: Variable 'reg' can be declared as pointer to const [constVariablePointer] linaro-powerdebug-0.7.0-2013.08/display.c:470:7: style: Variable 'match' can be declared as const array [constVariable] linaro-powerdebug-0.7.0-2013.08/gpio.c:270:27: warning: Either the condition '!t' is redundant or there is possible null pointer dereference: t. [nullPointerRedundantCheck] linaro-powerdebug-0.7.0-2013.08/gpio.c:272:6: note: Assuming that condition '!t' is not redundant linaro-powerdebug-0.7.0-2013.08/gpio.c:270:27: note: Null pointer dereference linaro-powerdebug-0.7.0-2013.08/gpio.c:134:20: style: Variable 'pgpio' can be declared as pointer to const [constVariablePointer] linaro-powerdebug-0.7.0-2013.08/gpio.c:187:20: style: Variable 'gpio' can be declared as pointer to const [constVariablePointer] linaro-powerdebug-0.7.0-2013.08/mainloop.c:48:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] linaro-powerdebug-0.7.0-2013.08/mainloop.c:66:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EPOLLIN [valueFlowBailoutIncompleteVar] linaro-powerdebug-0.7.0-2013.08/mainloop.c:102:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EPOLL_CTL_DEL [valueFlowBailoutIncompleteVar] linaro-powerdebug-0.7.0-2013.08/mainloop.c:72:3: error: Common realloc mistake: 'mds' nulled but not freed upon failure [memleakOnRealloc] linaro-powerdebug-0.7.0-2013.08/mainloop.c:63:56: style:inconclusive: Function 'mainloop_add' argument 3 names different: declaration '' definition 'data'. [funcArgNamesDifferentUnnamed] linaro-powerdebug-0.7.0-2013.08/powerdebug.c:134:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] linaro-powerdebug-0.7.0-2013.08/powerdebug.c:235:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] linaro-powerdebug-0.7.0-2013.08/powerdebug.c:100:32: style: Parameter 'argv' can be declared as const array [constParameter] linaro-powerdebug-0.7.0-2013.08/powerdebug.c:191:58: style: Parameter 'options' can be declared as pointer to const [constParameterPointer] linaro-powerdebug-0.7.0-2013.08/regulator.c:83:43: style: Parameter 'tree' can be declared as pointer to const. However it seems that 'regulator_dump_cb' is a callback function, if 'tree' is declared with const you might also need to cast function pointer(s). [constParameterCallback] linaro-powerdebug-0.7.0-2013.08/regulator.c:114:33: note: You might need to cast the function pointer here linaro-powerdebug-0.7.0-2013.08/regulator.c:83:43: note: Parameter 'tree' can be declared as pointer to const linaro-powerdebug-0.7.0-2013.08/regulator.c:119:25: style: Variable 'reg' can be declared as pointer to const [constVariablePointer] linaro-powerdebug-0.7.0-2013.08/regulator.c:48:6: style: struct member 'regulator_info::requested_microamps' is never used. [unusedStructMember] linaro-powerdebug-0.7.0-2013.08/sensor.c:114:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DT_REG [valueFlowBailoutIncompleteVar] linaro-powerdebug-0.7.0-2013.08/sensor.c:53:52: style: Parameter 'data' can be declared as pointer to const. However it seems that 'sensor_dump_cb' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] linaro-powerdebug-0.7.0-2013.08/sensor.c:79:36: note: You might need to cast the function pointer here linaro-powerdebug-0.7.0-2013.08/sensor.c:53:52: note: Parameter 'data' can be declared as pointer to const linaro-powerdebug-0.7.0-2013.08/sensor.c:56:22: style: Variable 'sensor' can be declared as pointer to const [constVariablePointer] linaro-powerdebug-0.7.0-2013.08/sensor.c:208:22: style: Variable 'sensor' can be declared as pointer to const [constVariablePointer] linaro-powerdebug-0.7.0-2013.08/tree.c:196:69: style:inconclusive: Function 'tree_load' argument 3 names different: declaration '' definition 'follow'. [funcArgNamesDifferentUnnamed] linaro-powerdebug-0.7.0-2013.08/tree.c:219:58: style:inconclusive: Function 'tree_for_each' argument 3 names different: declaration '' definition 'data'. [funcArgNamesDifferentUnnamed] linaro-powerdebug-0.7.0-2013.08/tree.c:242:66: style:inconclusive: Function 'tree_for_each_reverse' argument 3 names different: declaration '' definition 'data'. [funcArgNamesDifferentUnnamed] linaro-powerdebug-0.7.0-2013.08/tree.c:265:65: style:inconclusive: Function 'tree_for_each_parent' argument 3 names different: declaration '' definition 'data'. [funcArgNamesDifferentUnnamed] linaro-powerdebug-0.7.0-2013.08/utils.c:49:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] linaro-powerdebug-0.7.0-2013.08/utils.c:69:30: style: Parameter 'value' can be declared as pointer to const [constParameterPointer] diff: head linaro-powerdebug-0.7.0-2013.08/display.c:467:11: style: Variable 'reg' can be declared as pointer to const [constVariablePointer] head linaro-powerdebug-0.7.0-2013.08/display.c:470:7: style: Variable 'match' can be declared as const array [constVariable] head linaro-powerdebug-0.7.0-2013.08/mainloop.c:63:56: style:inconclusive: Function 'mainloop_add' argument 3 names different: declaration '' definition 'data'. [funcArgNamesDifferentUnnamed] head linaro-powerdebug-0.7.0-2013.08/tree.c:196:69: style:inconclusive: Function 'tree_load' argument 3 names different: declaration '' definition 'follow'. [funcArgNamesDifferentUnnamed] head linaro-powerdebug-0.7.0-2013.08/tree.c:219:58: style:inconclusive: Function 'tree_for_each' argument 3 names different: declaration '' definition 'data'. [funcArgNamesDifferentUnnamed] head linaro-powerdebug-0.7.0-2013.08/tree.c:242:66: style:inconclusive: Function 'tree_for_each_reverse' argument 3 names different: declaration '' definition 'data'. [funcArgNamesDifferentUnnamed] head linaro-powerdebug-0.7.0-2013.08/tree.c:265:65: style:inconclusive: Function 'tree_for_each_parent' argument 3 names different: declaration '' definition 'data'. [funcArgNamesDifferentUnnamed] DONE