2026-02-20 00:45 ftp://ftp.de.debian.org/debian/pool/main/a/ayatana-indicator-a11y/ayatana-indicator-a11y_25.4.0.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 -j4 platform: Linux-5.14.0-611.26.1.el9_7.x86_64-x86_64-with-glibc2.34 python: 3.9.25 client-version: 1.3.69 compiler: g++ (GCC) 11.5.0 20240719 (Red Hat 11.5.0-11) cppcheck: head 2.19.0 head-info: 179f04a (2026-02-19 22:01:17 +0100) count: 22 3 elapsed-time: 0.3 0.0 head-timing-info: old-timing-info: head results: ayatana-indicator-a11y-25.4.0/src/main.c:34:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_SOURCE_REMOVE [valueFlowBailoutIncompleteVar] ayatana-indicator-a11y-25.4.0/src/main.c:39:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_ALL [valueFlowBailoutIncompleteVar] ayatana-indicator-a11y-25.4.0/src/service.c:163:80: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_DBUS_CALL_FLAGS_NONE [valueFlowBailoutIncompleteVar] ayatana-indicator-a11y-25.4.0/src/service.c:223:180: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_DBUS_CALL_FLAGS_NONE [valueFlowBailoutIncompleteVar] ayatana-indicator-a11y-25.4.0/src/service.c:288:101: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_CONNECT_SWAPPED [valueFlowBailoutIncompleteVar] ayatana-indicator-a11y-25.4.0/src/service.c:349:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] ayatana-indicator-a11y-25.4.0/src/service.c:414:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable indicator_a11y_service_parent_class [valueFlowBailoutIncompleteVar] ayatana-indicator-a11y-25.4.0/src/service.c:443:78: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_DBUS_CALL_FLAGS_NONE [valueFlowBailoutIncompleteVar] ayatana-indicator-a11y-25.4.0/src/service.c:659:69: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable id [valueFlowBailoutIncompleteVar] ayatana-indicator-a11y-25.4.0/src/service.c:1557:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_BUS_TYPE_SESSION [valueFlowBailoutIncompleteVar] ayatana-indicator-a11y-25.4.0/src/service.c:429:44: portability: Non reentrant function 'getpwnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwnam_r'. [prohibitedgetpwnamCalled] ayatana-indicator-a11y-25.4.0/src/service.c:942:27: warning: Identical inner 'if' condition is always true. [identicalInnerCondition] ayatana-indicator-a11y-25.4.0/src/service.c:940:132: note: outer condition: self->pPrivate->sHighContrast ayatana-indicator-a11y-25.4.0/src/service.c:942:27: note: identical inner condition: self->pPrivate->sHighContrast ayatana-indicator-a11y-25.4.0/src/service.c:751:13: warning: %i in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] ayatana-indicator-a11y-25.4.0/src/service.c:751:13: warning: %i in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] ayatana-indicator-a11y-25.4.0/src/service.c:1175:9: style: Statements following noreturn function 'g_error()' will never be executed. [unreachableCode] ayatana-indicator-a11y-25.4.0/src/service.c:223:19: style: Local variable 'pUser' shadows outer argument [shadowArgument] ayatana-indicator-a11y-25.4.0/src/service.c:216:64: note: Shadowed declaration ayatana-indicator-a11y-25.4.0/src/service.c:223:19: note: Shadow variable ayatana-indicator-a11y-25.4.0/src/service.c:494:23: style: Local variable 'pValue' shadows outer argument [shadowArgument] ayatana-indicator-a11y-25.4.0/src/service.c:449:63: note: Shadowed declaration ayatana-indicator-a11y-25.4.0/src/service.c:494:23: note: Shadow variable ayatana-indicator-a11y-25.4.0/src/service.c:698:32: style: Local variable 'pOutputInfo' shadows outer variable [shadowVariable] ayatana-indicator-a11y-25.4.0/src/service.c:625:28: note: Shadowed declaration ayatana-indicator-a11y-25.4.0/src/service.c:698:32: note: Shadow variable ayatana-indicator-a11y-25.4.0/src/service.c:417:68: style: Parameter 'sProperty' can be declared as pointer to const [constParameterPointer] ayatana-indicator-a11y-25.4.0/src/service.c:417:89: style: Parameter 'pValue' can be declared as pointer to const [constParameterPointer] ayatana-indicator-a11y-25.4.0/src/service.c:1001:92: style: Parameter 'pUserData' can be declared as pointer to const. However it seems that 'valueToVariant' is a callback function, if 'pUserData' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ayatana-indicator-a11y-25.4.0/src/service.c:1478:146: note: You might need to cast the function pointer here ayatana-indicator-a11y-25.4.0/src/service.c:1001:92: note: Parameter 'pUserData' can be declared as pointer to const ayatana-indicator-a11y-25.4.0/src/service.c:48:11: style: struct member '_IndicatorA11yServicePrivate::nOrcaSubscription' is never used. [unusedStructMember] diff: head ayatana-indicator-a11y-25.4.0/src/service.c:1001:92: style: Parameter 'pUserData' can be declared as pointer to const. However it seems that 'valueToVariant' is a callback function, if 'pUserData' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ayatana-indicator-a11y-25.4.0/src/service.c:1478:146: note: You might need to cast the function pointer here ayatana-indicator-a11y-25.4.0/src/service.c:1001:92: note: Parameter 'pUserData' can be declared as pointer to const 2.19.0 ayatana-indicator-a11y-25.4.0/src/service.c:1127:18: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [syntaxError] head ayatana-indicator-a11y-25.4.0/src/service.c:1175:9: style: Statements following noreturn function 'g_error()' will never be executed. [unreachableCode] head ayatana-indicator-a11y-25.4.0/src/service.c:1557:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_BUS_TYPE_SESSION [valueFlowBailoutIncompleteVar] head ayatana-indicator-a11y-25.4.0/src/service.c:163:80: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_DBUS_CALL_FLAGS_NONE [valueFlowBailoutIncompleteVar] head ayatana-indicator-a11y-25.4.0/src/service.c:223:180: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_DBUS_CALL_FLAGS_NONE [valueFlowBailoutIncompleteVar] head ayatana-indicator-a11y-25.4.0/src/service.c:223:19: style: Local variable 'pUser' shadows outer argument [shadowArgument] ayatana-indicator-a11y-25.4.0/src/service.c:216:64: note: Shadowed declaration ayatana-indicator-a11y-25.4.0/src/service.c:223:19: note: Shadow variable head ayatana-indicator-a11y-25.4.0/src/service.c:288:101: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_CONNECT_SWAPPED [valueFlowBailoutIncompleteVar] head ayatana-indicator-a11y-25.4.0/src/service.c:349:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] head ayatana-indicator-a11y-25.4.0/src/service.c:414:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable indicator_a11y_service_parent_class [valueFlowBailoutIncompleteVar] head ayatana-indicator-a11y-25.4.0/src/service.c:417:68: style: Parameter 'sProperty' can be declared as pointer to const [constParameterPointer] head ayatana-indicator-a11y-25.4.0/src/service.c:417:89: style: Parameter 'pValue' can be declared as pointer to const [constParameterPointer] head ayatana-indicator-a11y-25.4.0/src/service.c:429:44: portability: Non reentrant function 'getpwnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwnam_r'. [prohibitedgetpwnamCalled] head ayatana-indicator-a11y-25.4.0/src/service.c:443:78: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_DBUS_CALL_FLAGS_NONE [valueFlowBailoutIncompleteVar] head ayatana-indicator-a11y-25.4.0/src/service.c:48:11: style: struct member '_IndicatorA11yServicePrivate::nOrcaSubscription' is never used. [unusedStructMember] head ayatana-indicator-a11y-25.4.0/src/service.c:494:23: style: Local variable 'pValue' shadows outer argument [shadowArgument] ayatana-indicator-a11y-25.4.0/src/service.c:449:63: note: Shadowed declaration ayatana-indicator-a11y-25.4.0/src/service.c:494:23: note: Shadow variable head ayatana-indicator-a11y-25.4.0/src/service.c:659:69: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable id [valueFlowBailoutIncompleteVar] head ayatana-indicator-a11y-25.4.0/src/service.c:698:32: style: Local variable 'pOutputInfo' shadows outer variable [shadowVariable] ayatana-indicator-a11y-25.4.0/src/service.c:625:28: note: Shadowed declaration ayatana-indicator-a11y-25.4.0/src/service.c:698:32: note: Shadow variable head ayatana-indicator-a11y-25.4.0/src/service.c:751:13: warning: %i in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] head ayatana-indicator-a11y-25.4.0/src/service.c:751:13: warning: %i in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] head ayatana-indicator-a11y-25.4.0/src/service.c:942:27: warning: Identical inner 'if' condition is always true. [identicalInnerCondition] ayatana-indicator-a11y-25.4.0/src/service.c:940:132: note: outer condition: self->pPrivate->sHighContrast ayatana-indicator-a11y-25.4.0/src/service.c:942:27: note: identical inner condition: self->pPrivate->sHighContrast DONE