2025-05-10 22:20 ftp://ftp.de.debian.org/debian/pool/main/g/gnome-connections/gnome-connections_48.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: 61 61 elapsed-time: 0.3 0.3 head-timing-info: old-timing-info: head results: gnome-connections-48.0/subprojects/gtk-frdp/examples/gtk-frdp-viewer.c:42:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_TYPE_APPLICATION_WINDOW [valueFlowBailoutIncompleteVar] gnome-connections-48.0/subprojects/gtk-frdp/examples/gtk-frdp-viewer.c:70:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GtkApplication [valueFlowBailoutIncompleteVar] gnome-connections-48.0/subprojects/gtk-frdp/examples/gtk-frdp-viewer.c:64:1: error: Memory leak: window [memleak] gnome-connections-48.0/subprojects/gtk-frdp/src/frdp-channel-display-control.c:129:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_PARAM_READWRITE [valueFlowBailoutIncompleteVar] gnome-connections-48.0/subprojects/gtk-frdp/src/frdp-channel-display-control.c:196:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CHANNEL_RC_OK [valueFlowBailoutIncompleteVar] gnome-connections-48.0/subprojects/gtk-frdp/src/frdp-channel-display-control.c:220:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DISPLAY_CONTROL_MAX_MONITOR_WIDTH [valueFlowBailoutIncompleteVar] gnome-connections-48.0/subprojects/gtk-frdp/src/frdp-channel-display-control.c:62:56: style: Parameter 'pspec' can be declared as pointer to const. However it seems that 'frdp_channel_display_control_get_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gnome-connections-48.0/subprojects/gtk-frdp/src/frdp-channel-display-control.c:121:33: note: You might need to cast the function pointer here gnome-connections-48.0/subprojects/gtk-frdp/src/frdp-channel-display-control.c:62:56: note: Parameter 'pspec' can be declared as pointer to const gnome-connections-48.0/subprojects/gtk-frdp/src/frdp-channel-display-control.c:65:37: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] gnome-connections-48.0/subprojects/gtk-frdp/src/frdp-channel-display-control.c:91:58: style: Parameter 'pspec' can be declared as pointer to const. However it seems that 'frdp_channel_display_control_set_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gnome-connections-48.0/subprojects/gtk-frdp/src/frdp-channel-display-control.c:122:33: note: You might need to cast the function pointer here gnome-connections-48.0/subprojects/gtk-frdp/src/frdp-channel-display-control.c:91:58: note: Parameter 'pspec' can be declared as pointer to const gnome-connections-48.0/subprojects/gtk-frdp/src/frdp-channel-display-control.c:169:63: style: Parameter 'self' can be declared as pointer to const [constParameterPointer] gnome-connections-48.0/subprojects/gtk-frdp/src/frdp-channel.c:89:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_PARAM_READWRITE [valueFlowBailoutIncompleteVar] gnome-connections-48.0/subprojects/gtk-frdp/src/frdp-channel.c:40:42: style: Parameter 'pspec' can be declared as pointer to const. However it seems that 'frdp_channel_get_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gnome-connections-48.0/subprojects/gtk-frdp/src/frdp-channel.c:81:33: note: You might need to cast the function pointer here gnome-connections-48.0/subprojects/gtk-frdp/src/frdp-channel.c:40:42: note: Parameter 'pspec' can be declared as pointer to const gnome-connections-48.0/subprojects/gtk-frdp/src/frdp-channel.c:43:23: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] gnome-connections-48.0/subprojects/gtk-frdp/src/frdp-channel.c:60:42: style: Parameter 'pspec' can be declared as pointer to const. However it seems that 'frdp_channel_set_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gnome-connections-48.0/subprojects/gtk-frdp/src/frdp-channel.c:82:33: note: You might need to cast the function pointer here gnome-connections-48.0/subprojects/gtk-frdp/src/frdp-channel.c:60:42: note: Parameter 'pspec' can be declared as pointer to const gnome-connections-48.0/subprojects/gtk-frdp/src/frdp-channel.c:93:33: style: Parameter 'self' can be declared as pointer to const [constParameterPointer] gnome-connections-48.0/subprojects/gtk-frdp/src/frdp-channel-clipboard.c:1328:78: error: There is an unknown macro here somewhere. Configuration is required. If G_FILE_ATTRIBUTE_STANDARD_TYPE is a macro then please configure it. [unknownMacro] gnome-connections-48.0/subprojects/gtk-frdp/src/frdp-display.c:125:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_BUTTON_PRESS [valueFlowBailoutIncompleteVar] gnome-connections-48.0/subprojects/gtk-frdp/src/frdp-display.c:381:82: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_PARAM_READWRITE [valueFlowBailoutIncompleteVar] gnome-connections-48.0/subprojects/gtk-frdp/src/frdp-display.c:491:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_POINTER_MOTION_MASK [valueFlowBailoutIncompleteVar] gnome-connections-48.0/subprojects/gtk-frdp/src/frdp-display.c:595:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_ALIGN_FILL [valueFlowBailoutIncompleteVar] gnome-connections-48.0/subprojects/gtk-frdp/src/frdp-display.c:615:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_ALIGN_FILL [valueFlowBailoutIncompleteVar] gnome-connections-48.0/subprojects/gtk-frdp/src/frdp-display.c:654:14: style: Condition 'priv->awaiting_authentication' is always true [knownConditionTrueFalse] gnome-connections-48.0/subprojects/gtk-frdp/src/frdp-display.c:648:35: note: Assignment 'priv->awaiting_authentication=!0', assigned value is 1 gnome-connections-48.0/subprojects/gtk-frdp/src/frdp-display.c:654:14: note: Condition 'priv->awaiting_authentication' is always true gnome-connections-48.0/subprojects/gtk-frdp/src/frdp-display.c:730:14: style: Condition 'priv->awaiting_certificate_verification' is always true [knownConditionTrueFalse] gnome-connections-48.0/subprojects/gtk-frdp/src/frdp-display.c:726:45: note: Assignment 'priv->awaiting_certificate_verification=!0', assigned value is 1 gnome-connections-48.0/subprojects/gtk-frdp/src/frdp-display.c:730:14: note: Condition 'priv->awaiting_certificate_verification' is always true gnome-connections-48.0/subprojects/gtk-frdp/src/frdp-display.c:768:14: style: Condition 'priv->awaiting_certificate_change_verification' is always true [knownConditionTrueFalse] gnome-connections-48.0/subprojects/gtk-frdp/src/frdp-display.c:764:52: note: Assignment 'priv->awaiting_certificate_change_verification=!0', assigned value is 1 gnome-connections-48.0/subprojects/gtk-frdp/src/frdp-display.c:768:14: note: Condition 'priv->awaiting_certificate_change_verification' is always true gnome-connections-48.0/subprojects/gtk-frdp/src/frdp-display.c:703:50: style:inconclusive: Function 'frdp_display_certificate_verify_ex' argument 1 names different: declaration 'self' definition 'display'. [funcArgNamesDifferent] gnome-connections-48.0/subprojects/gtk-frdp/src/frdp-display.h:56:61: note: Function 'frdp_display_certificate_verify_ex' argument 1 names different: declaration 'self' definition 'display'. gnome-connections-48.0/subprojects/gtk-frdp/src/frdp-display.c:703:50: note: Function 'frdp_display_certificate_verify_ex' argument 1 names different: declaration 'self' definition 'display'. gnome-connections-48.0/subprojects/gtk-frdp/src/frdp-display.c:737:57: style:inconclusive: Function 'frdp_display_certificate_change_verify_ex' argument 1 names different: declaration 'self' definition 'display'. [funcArgNamesDifferent] gnome-connections-48.0/subprojects/gtk-frdp/src/frdp-display.h:65:68: note: Function 'frdp_display_certificate_change_verify_ex' argument 1 names different: declaration 'self' definition 'display'. gnome-connections-48.0/subprojects/gtk-frdp/src/frdp-display.c:737:57: note: Function 'frdp_display_certificate_change_verify_ex' argument 1 names different: declaration 'self' definition 'display'. gnome-connections-48.0/subprojects/gtk-frdp/src/frdp-display.c:784:57: style:inconclusive: Function 'frdp_display_certificate_verify_ex_finish' argument 1 names different: declaration 'self' definition 'display'. [funcArgNamesDifferent] gnome-connections-48.0/subprojects/gtk-frdp/src/frdp-display.h:77:68: note: Function 'frdp_display_certificate_verify_ex_finish' argument 1 names different: declaration 'self' definition 'display'. gnome-connections-48.0/subprojects/gtk-frdp/src/frdp-display.c:784:57: note: Function 'frdp_display_certificate_verify_ex_finish' argument 1 names different: declaration 'self' definition 'display'. gnome-connections-48.0/subprojects/gtk-frdp/src/frdp-display.c:809:64: style:inconclusive: Function 'frdp_display_certificate_change_verify_ex_finish' argument 1 names different: declaration 'self' definition 'display'. [funcArgNamesDifferent] gnome-connections-48.0/subprojects/gtk-frdp/src/frdp-display.h:80:75: note: Function 'frdp_display_certificate_change_verify_ex_finish' argument 1 names different: declaration 'self' definition 'display'. gnome-connections-48.0/subprojects/gtk-frdp/src/frdp-display.c:809:64: note: Function 'frdp_display_certificate_change_verify_ex_finish' argument 1 names different: declaration 'self' definition 'display'. gnome-connections-48.0/subprojects/gtk-frdp/src/frdp-display.c:73:23: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] gnome-connections-48.0/subprojects/gtk-frdp/src/frdp-display.c:95:51: style: Parameter 'event' can be declared as pointer to const. However it seems that 'frdp_display_motion_notify_event' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gnome-connections-48.0/subprojects/gtk-frdp/src/frdp-display.c:368:39: note: You might need to cast the function pointer here gnome-connections-48.0/subprojects/gtk-frdp/src/frdp-display.c:95:51: note: Parameter 'event' can be declared as pointer to const gnome-connections-48.0/subprojects/gtk-frdp/src/frdp-display.c:113:50: style: Parameter 'event' can be declared as pointer to const. However it seems that 'frdp_display_button_press_event' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gnome-connections-48.0/subprojects/gtk-frdp/src/frdp-display.c:370:40: note: You might need to cast the function pointer here gnome-connections-48.0/subprojects/gtk-frdp/src/frdp-display.c:113:50: note: Parameter 'event' can be declared as pointer to const gnome-connections-48.0/subprojects/gtk-frdp/src/frdp-display.c:161:44: style: Parameter 'event' can be declared as pointer to const. However it seems that 'frdp_display_scroll_event' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gnome-connections-48.0/subprojects/gtk-frdp/src/frdp-display.c:371:32: note: You might need to cast the function pointer here gnome-connections-48.0/subprojects/gtk-frdp/src/frdp-display.c:161:44: note: Parameter 'event' can be declared as pointer to const gnome-connections-48.0/subprojects/gtk-frdp/src/frdp-display.c:283:42: style: Parameter 'pspec' can be declared as pointer to const. However it seems that 'frdp_display_get_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gnome-connections-48.0/subprojects/gtk-frdp/src/frdp-display.c:363:33: note: You might need to cast the function pointer here gnome-connections-48.0/subprojects/gtk-frdp/src/frdp-display.c:283:42: note: Parameter 'pspec' can be declared as pointer to const gnome-connections-48.0/subprojects/gtk-frdp/src/frdp-display.c:287:16: style: Variable 'session' can be declared as pointer to const [constVariablePointer] gnome-connections-48.0/subprojects/gtk-frdp/src/frdp-display.c:324:42: style: Parameter 'pspec' can be declared as pointer to const. However it seems that 'frdp_display_set_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gnome-connections-48.0/subprojects/gtk-frdp/src/frdp-display.c:364:33: note: You might need to cast the function pointer here gnome-connections-48.0/subprojects/gtk-frdp/src/frdp-display.c:324:42: note: Parameter 'pspec' can be declared as pointer to const gnome-connections-48.0/subprojects/gtk-frdp/src/frdp-display.c:687:48: style: Parameter 'username' can be declared as pointer to const [constParameterPointer] gnome-connections-48.0/subprojects/gtk-frdp/src/frdp-display.c:688:48: style: Parameter 'password' can be declared as pointer to const [constParameterPointer] gnome-connections-48.0/subprojects/gtk-frdp/src/frdp-display.c:689:48: style: Parameter 'domain' can be declared as pointer to const [constParameterPointer] gnome-connections-48.0/subprojects/gtk-frdp/src/frdp-session.c:153:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAIRO_FORMAT_ARGB32 [valueFlowBailoutIncompleteVar] gnome-connections-48.0/subprojects/gtk-frdp/src/frdp-session.c:460:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RDPEI_DVC_CHANNEL_NAME [valueFlowBailoutIncompleteVar] gnome-connections-48.0/subprojects/gtk-frdp/src/frdp-session.c:502:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RDPEI_DVC_CHANNEL_NAME [valueFlowBailoutIncompleteVar] gnome-connections-48.0/subprojects/gtk-frdp/src/frdp-session.c:540:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NEG_DSTBLT_INDEX [valueFlowBailoutIncompleteVar] gnome-connections-48.0/subprojects/gtk-frdp/src/frdp-session.c:598:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GdkRectangle [valueFlowBailoutIncompleteVar] gnome-connections-48.0/subprojects/gtk-frdp/src/frdp-session.c:659:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PIXEL_FORMAT_BGRX32 [valueFlowBailoutIncompleteVar] gnome-connections-48.0/subprojects/gtk-frdp/src/frdp-session.c:735:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable freerdp_free [valueFlowBailoutIncompleteVar] gnome-connections-48.0/subprojects/gtk-frdp/src/frdp-session.c:782:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WAIT_TIMEOUT [valueFlowBailoutIncompleteVar] gnome-connections-48.0/subprojects/gtk-frdp/src/frdp-session.c:1048:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENCRYPTION_METHOD_40BIT [valueFlowBailoutIncompleteVar] gnome-connections-48.0/subprojects/gtk-frdp/src/frdp-session.c:1238:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable frdp_session_parent_class [valueFlowBailoutIncompleteVar] gnome-connections-48.0/subprojects/gtk-frdp/src/frdp-session.c:1256:82: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_PARAM_READWRITE [valueFlowBailoutIncompleteVar] gnome-connections-48.0/subprojects/gtk-frdp/src/frdp-session.c:1431:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PTR_FLAGS_MOVE [valueFlowBailoutIncompleteVar] gnome-connections-48.0/subprojects/gtk-frdp/src/frdp-session.c:1492:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PTR_FLAGS_WHEEL [valueFlowBailoutIncompleteVar] gnome-connections-48.0/subprojects/gtk-frdp/src/frdp-session.c:1566:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_KEY_PRESS [valueFlowBailoutIncompleteVar] gnome-connections-48.0/subprojects/gtk-frdp/src/frdp-session.c:167:17: style: Variable 'pointer' can be declared as pointer to const [constVariablePointer] gnome-connections-48.0/subprojects/gtk-frdp/src/frdp-session.c:260:16: style: Variable 'settings' can be declared as pointer to const [constVariablePointer] gnome-connections-48.0/subprojects/gtk-frdp/src/frdp-session.c:261:11: style: Variable 'gdi' can be declared as pointer to const [constVariablePointer] gnome-connections-48.0/subprojects/gtk-frdp/src/frdp-session.c:578:31: style: Parameter 'context' can be declared as pointer to const. However it seems that 'frdp_begin_paint' is a callback function, if 'context' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gnome-connections-48.0/subprojects/gtk-frdp/src/frdp-session.c:679:50: note: You might need to cast the function pointer here gnome-connections-48.0/subprojects/gtk-frdp/src/frdp-session.c:578:31: note: Parameter 'context' can be declared as pointer to const gnome-connections-48.0/subprojects/gtk-frdp/src/frdp-session.c:615:23: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] gnome-connections-48.0/subprojects/gtk-frdp/src/frdp-session.c:649:16: style: Variable 'settings' can be declared as pointer to const [constVariablePointer] gnome-connections-48.0/subprojects/gtk-frdp/src/frdp-session.c:1149:40: style: Parameter 'pspec' can be declared as pointer to const. However it seems that 'frdp_session_get_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gnome-connections-48.0/subprojects/gtk-frdp/src/frdp-session.c:1247:33: note: You might need to cast the function pointer here gnome-connections-48.0/subprojects/gtk-frdp/src/frdp-session.c:1149:40: note: Parameter 'pspec' can be declared as pointer to const gnome-connections-48.0/subprojects/gtk-frdp/src/frdp-session.c:1152:16: style: Variable 'settings' can be declared as pointer to const [constVariablePointer] gnome-connections-48.0/subprojects/gtk-frdp/src/frdp-session.c:1190:42: style: Parameter 'pspec' can be declared as pointer to const. However it seems that 'frdp_session_set_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gnome-connections-48.0/subprojects/gtk-frdp/src/frdp-session.c:1248:33: note: You might need to cast the function pointer here gnome-connections-48.0/subprojects/gtk-frdp/src/frdp-session.c:1190:42: note: Parameter 'pspec' can be declared as pointer to const diff: DONE