2025-11-03 04:04 ftp://ftp.de.debian.org/debian/pool/main/x/xfce4-battery-plugin/xfce4-battery-plugin_1.1.5.orig.tar.bz2 cppcheck-options: --library=posix --library=gnu --library=bsd --library=gtk --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-87-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.69 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04) 14.2.0 cppcheck: head 2.18.0 head-info: 1f35303 (2025-11-01 19:39:44 +0100) count: 12 19 elapsed-time: 0.2 1.1 head-timing-info: old-timing-info: head results: xfce4-battery-plugin-1.1.5/panel-plugin/battery.c:420:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GTK_CHECK_VERSION( ... ) [preprocessorErrorDirective] xfce4-battery-plugin-1.1.5/panel-plugin/battery.c:420:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GTK_CHECK_VERSION( ... ) [preprocessorErrorDirective] xfce4-battery-plugin-1.1.5/panel-plugin/libacpi.c:327:5: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] xfce4-battery-plugin-1.1.5/panel-plugin/libacpi.c:194:20: style: Variable 'batt' can be declared as pointer to const [constVariablePointer] xfce4-battery-plugin-1.1.5/panel-plugin/libacpi.c:195:11: style: Variable 'name' can be declared as pointer to const [constVariablePointer] xfce4-battery-plugin-1.1.5/panel-plugin/libacpi.c:395:20: style: Variable 'propety' can be declared as pointer to const [constVariablePointer] xfce4-battery-plugin-1.1.5/panel-plugin/libacpi.c:396:11: style: Variable 'name' can be declared as pointer to const [constVariablePointer] xfce4-battery-plugin-1.1.5/panel-plugin/libacpi.c:428:19: style: Variable 'tmp' can be declared as pointer to const [constVariablePointer] xfce4-battery-plugin-1.1.5/panel-plugin/libacpi.c:519:20: style: Variable 'propety' can be declared as pointer to const [constVariablePointer] xfce4-battery-plugin-1.1.5/panel-plugin/libacpi.c:520:11: style: Variable 'name' can be declared as pointer to const [constVariablePointer] xfce4-battery-plugin-1.1.5/panel-plugin/libacpi.c:541:19: style: Variable 'tmp' can be declared as pointer to const [constVariablePointer] xfce4-battery-plugin-1.1.5/panel-plugin/libacpi.c:674:11: style: Variable 'proc_fan_status' can be declared as pointer to const [constVariablePointer] diff: 2.18.0 xfce4-battery-plugin-1.1.5/panel-plugin/battery.c:1076:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_RESPONSE_HELP [valueFlowBailoutIncompleteVar] 2.18.0 xfce4-battery-plugin-1.1.5/panel-plugin/battery.c:1116:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_DIALOG_DESTROY_WITH_PARENT [valueFlowBailoutIncompleteVar] 2.18.0 xfce4-battery-plugin-1.1.5/panel-plugin/battery.c:1386:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XFCE_LICENSE_TEXT_GPL [valueFlowBailoutIncompleteVar] 2.18.0 xfce4-battery-plugin-1.1.5/panel-plugin/battery.c:172:12: style: Unused variable: cssminsizes [unusedVariable] 2.18.0 xfce4-battery-plugin-1.1.5/panel-plugin/battery.c:307:80: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_ICON_SIZE_BUTTON [valueFlowBailoutIncompleteVar] 2.18.0 xfce4-battery-plugin-1.1.5/panel-plugin/battery.c:341:15: style: Variable 't' can be declared as pointer to const [constVariablePointer] head xfce4-battery-plugin-1.1.5/panel-plugin/battery.c:420:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GTK_CHECK_VERSION( ... ) [preprocessorErrorDirective] head xfce4-battery-plugin-1.1.5/panel-plugin/battery.c:420:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GTK_CHECK_VERSION( ... ) [preprocessorErrorDirective] 2.18.0 xfce4-battery-plugin-1.1.5/panel-plugin/battery.c:503:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_STYLE_PROVIDER_PRIORITY_APPLICATION [valueFlowBailoutIncompleteVar] 2.18.0 xfce4-battery-plugin-1.1.5/panel-plugin/battery.c:583:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XFCE_PANEL_PLUGIN_MODE_VERTICAL [valueFlowBailoutIncompleteVar] 2.18.0 xfce4-battery-plugin-1.1.5/panel-plugin/battery.c:991:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_FILE_CHOOSER_ACTION_OPEN [valueFlowBailoutIncompleteVar] DONE