2026-05-04 05:50 ftp://ftp.de.debian.org/debian/pool/main/p/pasystray/pasystray_0.8.2.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=gtk --library=motif --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: 77 74 elapsed-time: 0.8 0.6 head-timing-info: old-timing-info: head results: pasystray-0.8.2/src/avahi.c:28:28: style: Parameter 'loop' can be declared as pointer to const [constParameterPointer] pasystray-0.8.2/src/avahi.c:29:32: style: Parameter 'mis' can be declared as pointer to const [constParameterPointer] pasystray-0.8.2/src/menu_info.c:208:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PA_CVOLUME_SNPRINT_MAX [valueFlowBailoutIncompleteVar] pasystray-0.8.2/src/menu_info.c:257:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pa_cvolume [valueFlowBailoutIncompleteVar] pasystray-0.8.2/src/menu_info.c:319:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pa_cvolume [valueFlowBailoutIncompleteVar] pasystray-0.8.2/src/menu_info.c:537:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_BUTTON_PRESS [valueFlowBailoutIncompleteVar] pasystray-0.8.2/src/menu_info.c:553:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_CONTROL_MASK [valueFlowBailoutIncompleteVar] pasystray-0.8.2/src/menu_info.c:586:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_CONTROL_MASK [valueFlowBailoutIncompleteVar] pasystray-0.8.2/src/menu_info.c:655:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_CONTROL_MASK [valueFlowBailoutIncompleteVar] pasystray-0.8.2/src/menu_info.c:690:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_RESPONSE_OK [valueFlowBailoutIncompleteVar] pasystray-0.8.2/src/menu_info.c:250:9: style: Local variable 'notify' shadows outer function [shadowFunction] pasystray-0.8.2/src/notify.h:32:17: note: Shadowed declaration pasystray-0.8.2/src/menu_info.c:250:9: note: Shadow variable pasystray-0.8.2/src/menu_info.c:305:66: style: Parameter 'tooltip' can be declared as pointer to const [constParameterPointer] pasystray-0.8.2/src/menu_info.c:433:33: style: Parameter 'tooltip' can be declared as pointer to const [constParameterPointer] pasystray-0.8.2/src/menu_info.c:484:30: style: Parameter 'key' can be declared as pointer to const. However it seems that 'name_equal' is a callback function, if 'key' is declared with const you might also need to cast function pointer(s). [constParameterCallback] pasystray-0.8.2/src/menu_info.c:752:44: note: You might need to cast the function pointer here pasystray-0.8.2/src/menu_info.c:484:30: note: Parameter 'key' can be declared as pointer to const pasystray-0.8.2/src/menu_info.c:484:60: style: Parameter 'user_data' can be declared as pointer to const. However it seems that 'name_equal' is a callback function, if 'user_data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] pasystray-0.8.2/src/menu_info.c:752:44: note: You might need to cast the function pointer here pasystray-0.8.2/src/menu_info.c:484:60: note: Parameter 'user_data' can be declared as pointer to const pasystray-0.8.2/src/menu_info.c:486:23: style: Variable 'mii' can be declared as pointer to const [constVariablePointer] pasystray-0.8.2/src/menu_info.c:496:30: style: Parameter 'key' can be declared as pointer to const. However it seems that 'desc_equal' is a callback function, if 'key' is declared with const you might also need to cast function pointer(s). [constParameterCallback] pasystray-0.8.2/src/menu_info.c:505:41: note: You might need to cast the function pointer here pasystray-0.8.2/src/menu_info.c:496:30: note: Parameter 'key' can be declared as pointer to const pasystray-0.8.2/src/menu_info.c:496:60: style: Parameter 'user_data' can be declared as pointer to const. However it seems that 'desc_equal' is a callback function, if 'user_data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] pasystray-0.8.2/src/menu_info.c:505:41: note: You might need to cast the function pointer here pasystray-0.8.2/src/menu_info.c:496:60: note: Parameter 'user_data' can be declared as pointer to const pasystray-0.8.2/src/menu_info.c:498:23: style: Variable 'mii' can be declared as pointer to const [constVariablePointer] pasystray-0.8.2/src/menu_info.c:582:63: style: Parameter 'event' can be declared as pointer to const. However it seems that 'menu_info_item_scrolled' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] pasystray-0.8.2/src/menu_info.c:377:5: note: You might need to cast the function pointer here pasystray-0.8.2/src/menu_info.c:582:63: note: Parameter 'event' can be declared as pointer to const pasystray-0.8.2/src/menu_info.c:651:43: style: Parameter 'item' can be declared as pointer to const. However it seems that 'menu_info_subitem_clicked' is a callback function, if 'item' is declared with const you might also need to cast function pointer(s). [constParameterCallback] pasystray-0.8.2/src/menu_info.c:451:5: note: You might need to cast the function pointer here pasystray-0.8.2/src/menu_info.c:651:43: note: Parameter 'item' can be declared as pointer to const pasystray-0.8.2/src/menu_info.c:651:65: style: Parameter 'event' can be declared as pointer to const. However it seems that 'menu_info_subitem_clicked' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] pasystray-0.8.2/src/menu_info.c:451:5: note: You might need to cast the function pointer here pasystray-0.8.2/src/menu_info.c:651:65: note: Parameter 'event' can be declared as pointer to const pasystray-0.8.2/src/menu_info.c:652:27: style: Parameter 'mii' can be declared as pointer to const. However it seems that 'menu_info_subitem_clicked' is a callback function, if 'mii' is declared with const you might also need to cast function pointer(s). [constParameterCallback] pasystray-0.8.2/src/menu_info.c:451:5: note: You might need to cast the function pointer here pasystray-0.8.2/src/menu_info.c:652:27: note: Parameter 'mii' can be declared as pointer to const pasystray-0.8.2/src/menu_info.c:704:52: style: Parameter 'mii' can be declared as pointer to const [constParameterPointer] pasystray-0.8.2/src/options.c:110:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VERSION [valueFlowBailoutIncompleteVar] pasystray-0.8.2/src/options.c:186:24: style: Variable 'help_text' can be declared as pointer to const [constVariablePointer] pasystray-0.8.2/src/pasystray.c:60:23: style:inconclusive: Function 'init' argument 1 names different: declaration '' definition 'settings'. [funcArgNamesDifferentUnnamed] pasystray-0.8.2/src/pasystray.c:89:26: style:inconclusive: Function 'destroy' argument 1 names different: declaration '' definition 'settings'. [funcArgNamesDifferentUnnamed] pasystray-0.8.2/src/pulseaudio.c:53:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PA_PROP_APPLICATION_NAME [valueFlowBailoutIncompleteVar] pasystray-0.8.2/src/pulseaudio.c:87:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PA_USEC_PER_SEC [valueFlowBailoutIncompleteVar] pasystray-0.8.2/src/pulseaudio.c:123:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PA_SUBSCRIPTION_MASK_SINK [valueFlowBailoutIncompleteVar] pasystray-0.8.2/src/pulseaudio.c:188:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PA_SUBSCRIPTION_EVENT_TYPE_MASK [valueFlowBailoutIncompleteVar] pasystray-0.8.2/src/pulseaudio.c:302:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PA_SUBSCRIPTION_EVENT_TYPE_MASK [valueFlowBailoutIncompleteVar] pasystray-0.8.2/src/pulseaudio.c:427:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PA_PROP_DEVICE_CLASS [valueFlowBailoutIncompleteVar] pasystray-0.8.2/src/pulseaudio.c:476:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PA_PROP_MEDIA_ROLE [valueFlowBailoutIncompleteVar] pasystray-0.8.2/src/pulseaudio.c:517:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PA_PROP_MEDIA_NAME [valueFlowBailoutIncompleteVar] pasystray-0.8.2/src/pulseaudio.c:182:82: style:inconclusive: Function 'pulseaudio_event_cb' argument 3 names different: declaration 'idx' definition 'index'. [funcArgNamesDifferent] pasystray-0.8.2/src/pulseaudio.h:39:82: note: Function 'pulseaudio_event_cb' argument 3 names different: declaration 'idx' definition 'index'. pasystray-0.8.2/src/pulseaudio.c:182:82: note: Function 'pulseaudio_event_cb' argument 3 names different: declaration 'idx' definition 'index'. pasystray-0.8.2/src/pulseaudio.c:386:19: style: Variable 'mis' can be declared as pointer to const [constVariablePointer] pasystray-0.8.2/src/pulseaudio.c:430:19: style: Variable 'mis' can be declared as pointer to const [constVariablePointer] pasystray-0.8.2/src/pulseaudio_action.c:168:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PA_VOLUME_NORM [valueFlowBailoutIncompleteVar] pasystray-0.8.2/src/pulseaudio_action.c:282:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PA_VOLUME_NORM [valueFlowBailoutIncompleteVar] pasystray-0.8.2/src/pulseaudio_action.c:349:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PA_INVALID_INDEX [valueFlowBailoutIncompleteVar] pasystray-0.8.2/src/pulseaudio_action.c:221:19: style: Variable 'mis' can be declared as pointer to const [constVariablePointer] pasystray-0.8.2/src/pulseaudio_action.c:235:19: style: Variable 'mis' can be declared as pointer to const [constVariablePointer] pasystray-0.8.2/src/pulseaudio_action.c:236:18: style: Variable 'mi' can be declared as pointer to const [constVariablePointer] pasystray-0.8.2/src/pulseaudio_action.c:330:52: style: Parameter 'c' can be declared as pointer to const. However it seems that 'pulseaudio_toggle_mute_success_cb' is a callback function, if 'c' is declared with const you might also need to cast function pointer(s). [constParameterCallback] pasystray-0.8.2/src/pulseaudio_action.c:323:27: note: You might need to cast the function pointer here pasystray-0.8.2/src/pulseaudio_action.c:330:52: note: Parameter 'c' can be declared as pointer to const pasystray-0.8.2/src/pulseaudio_action.c:332:23: style: Variable 'mii' can be declared as pointer to const [constVariablePointer] pasystray-0.8.2/src/pulseaudio_action.c:345:52: style: Parameter 'c' can be declared as pointer to const. However it seems that 'pulseaudio_module_load_success_cb' is a callback function, if 'c' is declared with const you might also need to cast function pointer(s). [constParameterCallback] pasystray-0.8.2/src/pulseaudio_action.c:342:17: note: You might need to cast the function pointer here pasystray-0.8.2/src/pulseaudio_action.c:345:52: note: Parameter 'c' can be declared as pointer to const pasystray-0.8.2/src/pulseaudio_action.c:345:75: style: Parameter 'userdata' can be declared as pointer to const. However it seems that 'pulseaudio_module_load_success_cb' is a callback function, if 'userdata' is declared with const you might also need to cast function pointer(s). [constParameterCallback] pasystray-0.8.2/src/pulseaudio_action.c:342:17: note: You might need to cast the function pointer here pasystray-0.8.2/src/pulseaudio_action.c:345:75: note: Parameter 'userdata' can be declared as pointer to const pasystray-0.8.2/src/pulseaudio_action.c:361:54: style: Parameter 'c' can be declared as pointer to const. However it seems that 'pulseaudio_module_unload_success_cb' is a callback function, if 'c' is declared with const you might also need to cast function pointer(s). [constParameterCallback] pasystray-0.8.2/src/pulseaudio_action.c:358:17: note: You might need to cast the function pointer here pasystray-0.8.2/src/pulseaudio_action.c:361:54: note: Parameter 'c' can be declared as pointer to const pasystray-0.8.2/src/pulseaudio_action.c:363:23: style: Variable 'mii' can be declared as pointer to const [constVariablePointer] pasystray-0.8.2/src/pulseaudio_info.c:45:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PA_SAMPLE_SPEC_SNPRINT_MAX [valueFlowBailoutIncompleteVar] pasystray-0.8.2/src/pulseaudio_info.c:75:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PA_SINK_INVALID_STATE [valueFlowBailoutIncompleteVar] pasystray-0.8.2/src/pulseaudio_info.c:142:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PA_SOURCE_INVALID_STATE [valueFlowBailoutIncompleteVar] pasystray-0.8.2/src/pulseaudio_info.c:209:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PA_SAMPLE_SPEC_SNPRINT_MAX [valueFlowBailoutIncompleteVar] pasystray-0.8.2/src/pulseaudio_info.c:262:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PA_SAMPLE_SPEC_SNPRINT_MAX [valueFlowBailoutIncompleteVar] pasystray-0.8.2/src/pulseaudio_info.c:117:47: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] pasystray-0.8.2/src/pulseaudio_info.c:121:47: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] pasystray-0.8.2/src/pulseaudio_info.c:184:49: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] pasystray-0.8.2/src/pulseaudio_info.c:188:49: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] pasystray-0.8.2/src/systray.c:214:63: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_ICON_SIZE_MENU [valueFlowBailoutIncompleteVar] pasystray-0.8.2/src/systray.c:338:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PACKAGE_VERSION [valueFlowBailoutIncompleteVar] pasystray-0.8.2/src/systray.c:354:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_CONTROL_MASK [valueFlowBailoutIncompleteVar] pasystray-0.8.2/src/systray.c:425:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_CONTROL_MASK [valueFlowBailoutIncompleteVar] pasystray-0.8.2/src/systray.c:97:67: style:inconclusive: Function 'systray_menu_add_application' argument 2 names different: declaration 'text' definition 'name'. [funcArgNamesDifferent] pasystray-0.8.2/src/systray.h:35:67: note: Function 'systray_menu_add_application' argument 2 names different: declaration 'text' definition 'name'. pasystray-0.8.2/src/systray.c:97:67: note: Function 'systray_menu_add_application' argument 2 names different: declaration 'text' definition 'name'. pasystray-0.8.2/src/systray.c:122:70: style:inconclusive: Function 'systray_menu_add_submenu' argument 2 names different: declaration 'mis' definition 'mi'. [funcArgNamesDifferent] pasystray-0.8.2/src/systray.h:39:70: note: Function 'systray_menu_add_submenu' argument 2 names different: declaration 'mis' definition 'mi'. pasystray-0.8.2/src/systray.c:122:70: note: Function 'systray_menu_add_submenu' argument 2 names different: declaration 'mis' definition 'mi'. pasystray-0.8.2/src/systray.c:432:40: style:inconclusive: Function 'start_application_cb' argument 1 names different: declaration 'menuitem' definition 'item'. [funcArgNamesDifferent] pasystray-0.8.2/src/systray.h:64:40: note: Function 'start_application_cb' argument 1 names different: declaration 'menuitem' definition 'item'. pasystray-0.8.2/src/systray.c:432:40: note: Function 'start_application_cb' argument 1 names different: declaration 'menuitem' definition 'item'. pasystray-0.8.2/src/systray.c:295:57: style: Parameter 'item' can be declared as pointer to const [constParameterPointer] pasystray-0.8.2/src/systray.c:307:60: style: Parameter 'item' can be declared as pointer to const [constParameterPointer] pasystray-0.8.2/src/systray.c:319:62: style: Parameter 'item' can be declared as pointer to const [constParameterPointer] pasystray-0.8.2/src/systray.c:432:40: style: Parameter 'item' can be declared as pointer to const. However it seems that 'start_application_cb' is a callback function, if 'item' is declared with const you might also need to cast function pointer(s). [constParameterCallback] pasystray-0.8.2/src/systray.c:105:5: note: You might need to cast the function pointer here pasystray-0.8.2/src/systray.c:432:40: note: Parameter 'item' can be declared as pointer to const pasystray-0.8.2/src/systray_impl.c:177:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_WINDOW_TOPLEVEL [valueFlowBailoutIncompleteVar] pasystray-0.8.2/src/systray_impl.c:199:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_ICON_SIZE_DIALOG [valueFlowBailoutIncompleteVar] pasystray-0.8.2/src/ui.c:66:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GLADE_FILE [valueFlowBailoutIncompleteVar] pasystray-0.8.2/src/ui.c:104:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PA_VOLUME_NORM [valueFlowBailoutIncompleteVar] pasystray-0.8.2/src/ui.c:168:39: style: Parameter 'settings' can be declared as pointer to const [constParameterPointer] pasystray-0.8.2/src/x11-key-grabber.c:141:2: error: failed to evaluate #if condition, undefined function-like macro invocation: G_ENCODE_VERSION( ... ) [syntaxError] diff: head pasystray-0.8.2/src/pasystray.c:60:23: style:inconclusive: Function 'init' argument 1 names different: declaration '' definition 'settings'. [funcArgNamesDifferentUnnamed] head pasystray-0.8.2/src/pasystray.c:89:26: style:inconclusive: Function 'destroy' argument 1 names different: declaration '' definition 'settings'. [funcArgNamesDifferentUnnamed] head pasystray-0.8.2/src/systray.c:432:40: style: Parameter 'item' can be declared as pointer to const. However it seems that 'start_application_cb' is a callback function, if 'item' is declared with const you might also need to cast function pointer(s). [constParameterCallback] pasystray-0.8.2/src/systray.c:105:5: note: You might need to cast the function pointer here pasystray-0.8.2/src/systray.c:432:40: note: Parameter 'item' can be declared as pointer to const DONE