2025-05-10 22:28 ftp://ftp.de.debian.org/debian/pool/main/g/gnome-power-manager/gnome-power-manager_43.0.orig.tar.xz cppcheck-options: --library=posix --library=gnu --library=bsd --library=gtk --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: beb3362 (2025-05-10 14:33:23 +0200) count: 23 23 elapsed-time: 0.3 0.3 head-timing-info: old-timing-info: head results: gnome-power-manager-43.0/src/gpm-array-float.c:191:39: style: Parameter 'array' can be declared as pointer to const [constParameterPointer] gnome-power-manager-43.0/src/egg-graph-widget.c:249:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_PARAM_READWRITE [valueFlowBailoutIncompleteVar] gnome-power-manager-43.0/src/egg-graph-widget.c:321:69: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable g_ptr_array_unref [valueFlowBailoutIncompleteVar] gnome-power-manager-43.0/src/egg-graph-widget.c:357:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable egg_graph_widget_parent_class [valueFlowBailoutIncompleteVar] gnome-power-manager-43.0/src/egg-graph-widget.c:515:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable g_autofree [valueFlowBailoutIncompleteVar] gnome-power-manager-43.0/src/egg-graph-widget.c:582:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable g_autofree [valueFlowBailoutIncompleteVar] gnome-power-manager-43.0/src/egg-graph-widget.c:662:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_MINFLOAT [valueFlowBailoutIncompleteVar] gnome-power-manager-43.0/src/egg-graph-widget.c:754:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_MINFLOAT [valueFlowBailoutIncompleteVar] gnome-power-manager-43.0/src/egg-graph-widget.c:1173:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable g_autofree [valueFlowBailoutIncompleteVar] gnome-power-manager-43.0/src/gpm-statistics.c:1606:66: error: There is an unknown macro here somewhere. Configuration is required. If G_DIR_SEPARATOR_S is a macro then please configure it. [unknownMacro] gnome-power-manager-43.0/src/egg-graph-widget.c:368:87: style:inconclusive: Function 'egg_graph_widget_data_add' argument 3 names different: declaration 'array' definition 'data'. [funcArgNamesDifferent] gnome-power-manager-43.0/src/egg-graph-widget.h:70:21: note: Function 'egg_graph_widget_data_add' argument 3 names different: declaration 'array' definition 'data'. gnome-power-manager-43.0/src/egg-graph-widget.c:368:87: note: Function 'egg_graph_widget_data_add' argument 3 names different: declaration 'array' definition 'data'. gnome-power-manager-43.0/src/egg-graph-widget.c:134:25: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] gnome-power-manager-43.0/src/egg-graph-widget.c:139:83: style: Parameter 'pspec' can be declared as pointer to const. However it seems that 'up_graph_get_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gnome-power-manager-43.0/src/egg-graph-widget.c:240:31: note: You might need to cast the function pointer here gnome-power-manager-43.0/src/egg-graph-widget.c:139:83: note: Parameter 'pspec' can be declared as pointer to const gnome-power-manager-43.0/src/egg-graph-widget.c:142:25: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] gnome-power-manager-43.0/src/egg-graph-widget.c:184:89: style: Parameter 'pspec' can be declared as pointer to const. However it seems that 'up_graph_set_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gnome-power-manager-43.0/src/egg-graph-widget.c:241:31: note: You might need to cast the function pointer here gnome-power-manager-43.0/src/egg-graph-widget.c:184:89: note: Parameter 'pspec' can be declared as pointer to const gnome-power-manager-43.0/src/egg-graph-widget.c:368:87: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] gnome-power-manager-43.0/src/egg-graph-widget.c:659:17: style: Variable 'point' can be declared as pointer to const [constVariablePointer] gnome-power-manager-43.0/src/egg-graph-widget.c:758:17: style: Variable 'point' can be declared as pointer to const [constVariablePointer] gnome-power-manager-43.0/src/egg-graph-widget.c:892:25: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] gnome-power-manager-43.0/src/egg-graph-widget.c:919:17: style: Variable 'point' can be declared as pointer to const [constVariablePointer] gnome-power-manager-43.0/src/egg-graph-widget.c:57:11: style: struct member 'EggGraphWidgetPrivate::title' is never used. [unusedStructMember] gnome-power-manager-43.0/src/egg-graph-widget.c:503:18: style: Variable 'offsetx' is assigned a value that is never used. [unreadVariable] gnome-power-manager-43.0/src/egg-graph-widget.c:504:18: style: Variable 'offsety' is assigned a value that is never used. [unreadVariable] diff: DONE