2025-08-29 20:57 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-6.12.41+deb13-amd64-x86_64-with-glibc2.41 python: 3.13.5 client-version: 1.3.67 compiler: g++ (Debian 14.2.0-19) 14.2.0 cppcheck: head 2.18.0 head-info: 478055e (2025-08-29 18:53:24 +0200) count: 4 21 elapsed-time: 0.1 0.5 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:1127:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] 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( ... ) [preprocessorErrorDirective] diff: head ayatana-indicator-a11y-25.4.0/src/service.c:1127:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] head 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( ... ) [preprocessorErrorDirective] 2.18.0 ayatana-indicator-a11y-25.4.0/src/service.c:1130:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_REGEX_CASELESS [valueFlowBailoutIncompleteVar] 2.18.0 ayatana-indicator-a11y-25.4.0/src/service.c:1175:9: style: Statements following noreturn function 'g_error()' will never be executed. [unreachableCode] 2.18.0 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] 2.18.0 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] 2.18.0 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 2.18.0 ayatana-indicator-a11y-25.4.0/src/service.c:288:101: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_CONNECT_SWAPPED [valueFlowBailoutIncompleteVar] 2.18.0 ayatana-indicator-a11y-25.4.0/src/service.c:349:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] 2.18.0 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] 2.18.0 ayatana-indicator-a11y-25.4.0/src/service.c:417:68: style: Parameter 'sProperty' can be declared as pointer to const [constParameterPointer] 2.18.0 ayatana-indicator-a11y-25.4.0/src/service.c:417:89: style: Parameter 'pValue' can be declared as pointer to const [constParameterPointer] 2.18.0 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] 2.18.0 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] 2.18.0 ayatana-indicator-a11y-25.4.0/src/service.c:48:11: style: struct member '_IndicatorA11yServicePrivate::nOrcaSubscription' is never used. [unusedStructMember] 2.18.0 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 2.18.0 ayatana-indicator-a11y-25.4.0/src/service.c:659:69: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable id [valueFlowBailoutIncompleteVar] 2.18.0 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 2.18.0 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] 2.18.0 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] 2.18.0 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