2025-09-01 02:41 ftp://ftp.de.debian.org/debian/pool/main/liba/libaccounts-glib/libaccounts-glib_1.27.orig.tar.bz2 cppcheck-options: --library=posix --library=gnu --library=bsd --library=gtk --library=sqlite3 --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-79-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.67 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04) 14.2.0 cppcheck: head 2.18.0 head-info: 2ee39fe (2025-08-30 22:07:31 +0200) count: 26 95 elapsed-time: 0.4 1.5 head-timing-info: old-timing-info: head results: libaccounts-glib-VERSION_1.27/libaccounts-glib/ag-internals.h:52:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] libaccounts-glib-VERSION_1.27/libaccounts-glib/ag-internals.h:52:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] libaccounts-glib-VERSION_1.27/libaccounts-glib/ag-util.c:63:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GValue [valueFlowBailoutIncompleteVar] libaccounts-glib-VERSION_1.27/libaccounts-glib/ag-util.c:74:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GValue [valueFlowBailoutIncompleteVar] libaccounts-glib-VERSION_1.27/libaccounts-glib/ag-util.c:81:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_VALUE_INIT [valueFlowBailoutIncompleteVar] libaccounts-glib-VERSION_1.27/libaccounts-glib/ag-util.c:137:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_TYPE_STRV [valueFlowBailoutIncompleteVar] libaccounts-glib-VERSION_1.27/libaccounts-glib/ag-util.c:174:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] libaccounts-glib-VERSION_1.27/libaccounts-glib/ag-util.c:210:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GQuark [valueFlowBailoutIncompleteVar] libaccounts-glib-VERSION_1.27/libaccounts-glib/ag-util.c:245:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XML_READER_TYPE_TEXT [valueFlowBailoutIncompleteVar] libaccounts-glib-VERSION_1.27/libaccounts-glib/ag-util.c:258:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XML_READER_TYPE_END_ELEMENT [valueFlowBailoutIncompleteVar] libaccounts-glib-VERSION_1.27/libaccounts-glib/ag-util.c:354:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XML_READER_TYPE_END_ELEMENT [valueFlowBailoutIncompleteVar] libaccounts-glib-VERSION_1.27/libaccounts-glib/ag-util.c:449:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XML_READER_TYPE_END_ELEMENT [valueFlowBailoutIncompleteVar] libaccounts-glib-VERSION_1.27/libaccounts-glib/ag-util.c:587:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_FILE_TEST_IS_REGULAR [valueFlowBailoutIncompleteVar] libaccounts-glib-VERSION_1.27/libaccounts-glib/ag-util.c:176:9: error: Memory leak: variant [memleak] libaccounts-glib-VERSION_1.27/libaccounts-glib/ag-util.c:78:37: style:inconclusive: Function '_ag_value_to_variant' argument 1 names different: declaration 'value' definition 'in_value'. [funcArgNamesDifferent] libaccounts-glib-VERSION_1.27/libaccounts-glib/ag-util.h:49:47: note: Function '_ag_value_to_variant' argument 1 names different: declaration 'value' definition 'in_value'. libaccounts-glib-VERSION_1.27/libaccounts-glib/ag-util.c:78:37: note: Function '_ag_value_to_variant' argument 1 names different: declaration 'value' definition 'in_value'. libaccounts-glib-VERSION_1.27/libaccounts-glib/ag-util.c:185:12: style: Variable 'string_value' can be declared as pointer to const [constVariablePointer] libaccounts-glib-VERSION_1.27/libaccounts-glib/ag-util.c:186:12: style: Variable 'type' can be declared as pointer to const [constVariablePointer] libaccounts-glib-VERSION_1.27/tests/check_ag.c:1962:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] libaccounts-glib-VERSION_1.27/tests/check_ag.c:1962:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] libaccounts-glib-VERSION_1.27/tests/test-process.c:202:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] libaccounts-glib-VERSION_1.27/tests/test-process.c:202:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] libaccounts-glib-VERSION_1.27/tools/backup.c:87:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DATABASE_DIR [valueFlowBailoutIncompleteVar] libaccounts-glib-VERSION_1.27/tools/backup.c:139:20: error: Allocation with g_path_get_basename, g_set_prgname doesn't release it. [leakNoVarFunctionCall] libaccounts-glib-VERSION_1.27/tools/backup.c:126:13: style: Variable 'success' is reassigned a value before the old one has been used. [redundantAssignment] libaccounts-glib-VERSION_1.27/tools/backup.c:123:13: note: success is assigned libaccounts-glib-VERSION_1.27/tools/backup.c:126:13: note: success is overwritten libaccounts-glib-VERSION_1.27/tools/main.c:33:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] libaccounts-glib-VERSION_1.27/tools/main.c:33:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] diff: 2.18.0 libaccounts-glib-VERSION_1.27/libaccounts-glib/ag-account-service.h:91:1: error: There is an unknown macro here somewhere. Configuration is required. If AG_DEPRECATED_FOR is a macro then please configure it. [unknownMacro] 2.18.0 libaccounts-glib-VERSION_1.27/libaccounts-glib/ag-account.h:117:1: error: There is an unknown macro here somewhere. Configuration is required. If AG_DEPRECATED_FOR is a macro then please configure it. [unknownMacro] 2.18.0 libaccounts-glib-VERSION_1.27/libaccounts-glib/ag-auth-data.h:47:1: error: There is an unknown macro here somewhere. Configuration is required. If AG_DEPRECATED_FOR is a macro then please configure it. [unknownMacro] head libaccounts-glib-VERSION_1.27/libaccounts-glib/ag-internals.h:52:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] head libaccounts-glib-VERSION_1.27/libaccounts-glib/ag-internals.h:52:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] 2.18.0 libaccounts-glib-VERSION_1.27/tests/check_ag.c:1029:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_TYPE_STRING [valueFlowBailoutIncompleteVar] 2.18.0 libaccounts-glib-VERSION_1.27/tests/check_ag.c:105:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IRUSR [valueFlowBailoutIncompleteVar] 2.18.0 libaccounts-glib-VERSION_1.27/tests/check_ag.c:1083:35: error: Dereferencing 'changed_fields' after it is deallocated / released [deallocuse] 2.18.0 libaccounts-glib-VERSION_1.27/tests/check_ag.c:1090:35: error: Dereferencing 'changed_fields' after it is deallocated / released [deallocuse] 2.18.0 libaccounts-glib-VERSION_1.27/tests/check_ag.c:1091:35: error: Dereferencing 'changed_fields' after it is deallocated / released [deallocuse] 2.18.0 libaccounts-glib-VERSION_1.27/tests/check_ag.c:1092:5: error: Memory pointed to by 'changed_fields' is freed twice. [doubleFree] libaccounts-glib-VERSION_1.27/tests/check_ag.c:1056:5: note: Memory pointed to by 'changed_fields' is freed twice. libaccounts-glib-VERSION_1.27/tests/check_ag.c:1092:5: note: Memory pointed to by 'changed_fields' is freed twice. 2.18.0 libaccounts-glib-VERSION_1.27/tests/check_ag.c:1163:20: style: Local variable 'account' shadows outer variable [shadowVariable] libaccounts-glib-VERSION_1.27/tests/check_ag.c:61:19: note: Shadowed declaration libaccounts-glib-VERSION_1.27/tests/check_ag.c:1163:20: note: Shadow variable 2.18.0 libaccounts-glib-VERSION_1.27/tests/check_ag.c:1163:20: style: Variable 'account' can be declared as pointer to const [constVariablePointer] 2.18.0 libaccounts-glib-VERSION_1.27/tests/check_ag.c:1164:20: style: Local variable 'service' shadows outer variable [shadowVariable] libaccounts-glib-VERSION_1.27/tests/check_ag.c:63:19: note: Shadowed declaration libaccounts-glib-VERSION_1.27/tests/check_ag.c:1164:20: note: Shadow variable 2.18.0 libaccounts-glib-VERSION_1.27/tests/check_ag.c:1329:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_TYPE_STRING [valueFlowBailoutIncompleteVar] 2.18.0 libaccounts-glib-VERSION_1.27/tests/check_ag.c:1341:13: style: Variable 'value' can be declared as pointer to const [constVariablePointer] 2.18.0 libaccounts-glib-VERSION_1.27/tests/check_ag.c:1404:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_TYPE_UINT [valueFlowBailoutIncompleteVar] 2.18.0 libaccounts-glib-VERSION_1.27/tests/check_ag.c:1585:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_TYPE_STRING [valueFlowBailoutIncompleteVar] 2.18.0 libaccounts-glib-VERSION_1.27/tests/check_ag.c:164:12: style: Condition 's1!=NULL' is always true [knownConditionTrueFalse] 2.18.0 libaccounts-glib-VERSION_1.27/tests/check_ag.c:1757:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_TYPE_STRING [valueFlowBailoutIncompleteVar] 2.18.0 libaccounts-glib-VERSION_1.27/tests/check_ag.c:177:28: style: Parameter 'start_time' can be declared as pointer to const [constParameterPointer] 2.18.0 libaccounts-glib-VERSION_1.27/tests/check_ag.c:177:57: style: Parameter 'end_time' can be declared as pointer to const [constParameterPointer] head libaccounts-glib-VERSION_1.27/tests/check_ag.c:1962:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] head libaccounts-glib-VERSION_1.27/tests/check_ag.c:1962:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] 2.18.0 libaccounts-glib-VERSION_1.27/tests/check_ag.c:1994:20: style: Local variable 'service' shadows outer variable [shadowVariable] libaccounts-glib-VERSION_1.27/tests/check_ag.c:63:19: note: Shadowed declaration libaccounts-glib-VERSION_1.27/tests/check_ag.c:1994:20: note: Shadow variable 2.18.0 libaccounts-glib-VERSION_1.27/tests/check_ag.c:2265:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_TYPE_STRING [valueFlowBailoutIncompleteVar] 2.18.0 libaccounts-glib-VERSION_1.27/tests/check_ag.c:2571:16: style: Local variable 'service' shadows outer variable [shadowVariable] libaccounts-glib-VERSION_1.27/tests/check_ag.c:63:19: note: Shadowed declaration libaccounts-glib-VERSION_1.27/tests/check_ag.c:2571:16: note: Shadow variable 2.18.0 libaccounts-glib-VERSION_1.27/tests/check_ag.c:2770:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_TYPE_INT [valueFlowBailoutIncompleteVar] 2.18.0 libaccounts-glib-VERSION_1.27/tests/check_ag.c:282:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AG_ACCOUNTS_ERROR_READONLY [valueFlowBailoutIncompleteVar] 2.18.0 libaccounts-glib-VERSION_1.27/tests/check_ag.c:2867:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] 2.18.0 libaccounts-glib-VERSION_1.27/tests/check_ag.c:2877:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] 2.18.0 libaccounts-glib-VERSION_1.27/tests/check_ag.c:2941:29: style: Condition 'account_id!=0' is always false [knownConditionTrueFalse] libaccounts-glib-VERSION_1.27/tests/check_ag.c:2929:18: note: Assignment 'account_id=0', assigned value is 0 libaccounts-glib-VERSION_1.27/tests/check_ag.c:2941:29: note: Condition 'account_id!=0' is always false 2.18.0 libaccounts-glib-VERSION_1.27/tests/check_ag.c:2995:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_TYPE_INT [valueFlowBailoutIncompleteVar] 2.18.0 libaccounts-glib-VERSION_1.27/tests/check_ag.c:3143:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_TYPE_STRING [valueFlowBailoutIncompleteVar] 2.18.0 libaccounts-glib-VERSION_1.27/tests/check_ag.c:3252:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_CREAT [valueFlowBailoutIncompleteVar] 2.18.0 libaccounts-glib-VERSION_1.27/tests/check_ag.c:3278:5: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] 2.18.0 libaccounts-glib-VERSION_1.27/tests/check_ag.c:3515:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] 2.18.0 libaccounts-glib-VERSION_1.27/tests/check_ag.c:3553:39: style: Condition 'create_signal_counter==1' is always false [knownConditionTrueFalse] libaccounts-glib-VERSION_1.27/tests/check_ag.c:3545:29: note: Assignment 'create_signal_counter=0', assigned value is 0 libaccounts-glib-VERSION_1.27/tests/check_ag.c:3553:39: note: Condition 'create_signal_counter==1' is always false 2.18.0 libaccounts-glib-VERSION_1.27/tests/check_ag.c:3622:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] 2.18.0 libaccounts-glib-VERSION_1.27/tests/check_ag.c:3624:16: style: Local variable 'service' shadows outer variable [shadowVariable] libaccounts-glib-VERSION_1.27/tests/check_ag.c:63:19: note: Shadowed declaration libaccounts-glib-VERSION_1.27/tests/check_ag.c:3624:16: note: Shadow variable 2.18.0 libaccounts-glib-VERSION_1.27/tests/check_ag.c:3743:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] 2.18.0 libaccounts-glib-VERSION_1.27/tests/check_ag.c:3939:16: style: Local variable 'account' shadows outer variable [shadowVariable] libaccounts-glib-VERSION_1.27/tests/check_ag.c:61:19: note: Shadowed declaration libaccounts-glib-VERSION_1.27/tests/check_ag.c:3939:16: note: Shadow variable 2.18.0 libaccounts-glib-VERSION_1.27/tests/check_ag.c:3940:16: style: Local variable 'service' shadows outer variable [shadowVariable] libaccounts-glib-VERSION_1.27/tests/check_ag.c:63:19: note: Shadowed declaration libaccounts-glib-VERSION_1.27/tests/check_ag.c:3940:16: note: Shadow variable 2.18.0 libaccounts-glib-VERSION_1.27/tests/check_ag.c:3944:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] 2.18.0 libaccounts-glib-VERSION_1.27/tests/check_ag.c:3984:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_CREAT [valueFlowBailoutIncompleteVar] 2.18.0 libaccounts-glib-VERSION_1.27/tests/check_ag.c:4037:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable test_init [valueFlowBailoutIncompleteVar] 2.18.0 libaccounts-glib-VERSION_1.27/tests/check_ag.c:407:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AG_SETTING_SOURCE_NONE [valueFlowBailoutIncompleteVar] 2.18.0 libaccounts-glib-VERSION_1.27/tests/check_ag.c:4163:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CK_NORMAL [valueFlowBailoutIncompleteVar] 2.18.0 libaccounts-glib-VERSION_1.27/tests/check_ag.c:510:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] 2.18.0 libaccounts-glib-VERSION_1.27/tests/check_ag.c:559:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] 2.18.0 libaccounts-glib-VERSION_1.27/tests/check_ag.c:628:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] 2.18.0 libaccounts-glib-VERSION_1.27/tests/check_ag.c:648:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] 2.18.0 libaccounts-glib-VERSION_1.27/tests/check_ag.c:686:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AG_MANAGER_OBJECT_PATH [valueFlowBailoutIncompleteVar] 2.18.0 libaccounts-glib-VERSION_1.27/tests/check_ag.c:767:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_TYPE_STRING [valueFlowBailoutIncompleteVar] 2.18.0 libaccounts-glib-VERSION_1.27/tests/test-process.c:117:35: style: Parameter 'account' can be declared as pointer to const. However it seems that 'account_store_cb' is a callback function, if 'account' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libaccounts-glib-VERSION_1.27/tests/test-process.c:332:32: note: You might need to cast the function pointer here libaccounts-glib-VERSION_1.27/tests/test-process.c:117:35: note: Parameter 'account' can be declared as pointer to const 2.18.0 libaccounts-glib-VERSION_1.27/tests/test-process.c:118:33: style: Parameter 'user_data' can be declared as pointer to const. However it seems that 'account_store_cb' is a callback function, if 'user_data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libaccounts-glib-VERSION_1.27/tests/test-process.c:332:32: note: You might need to cast the function pointer here libaccounts-glib-VERSION_1.27/tests/test-process.c:118:33: note: Parameter 'user_data' can be declared as pointer to const 2.18.0 libaccounts-glib-VERSION_1.27/tests/test-process.c:142:33: style: Parameter 'args' can be declared as pointer to const. However it seems that 'test_delete' is a callback function, if 'args' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libaccounts-glib-VERSION_1.27/tests/test-process.c:386:38: note: You might need to cast the function pointer here libaccounts-glib-VERSION_1.27/tests/test-process.c:142:33: note: Parameter 'args' can be declared as pointer to const 2.18.0 libaccounts-glib-VERSION_1.27/tests/test-process.c:175:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_TYPE_INT [valueFlowBailoutIncompleteVar] head libaccounts-glib-VERSION_1.27/tests/test-process.c:202:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] head libaccounts-glib-VERSION_1.27/tests/test-process.c:202:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] 2.18.0 libaccounts-glib-VERSION_1.27/tests/test-process.c:235:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_TYPE_INT [valueFlowBailoutIncompleteVar] 2.18.0 libaccounts-glib-VERSION_1.27/tests/test-process.c:277:33: style: Parameter 'args' can be declared as pointer to const. However it seems that 'test_change' is a callback function, if 'args' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libaccounts-glib-VERSION_1.27/tests/test-process.c:398:38: note: You might need to cast the function pointer here libaccounts-glib-VERSION_1.27/tests/test-process.c:277:33: note: Parameter 'args' can be declared as pointer to const 2.18.0 libaccounts-glib-VERSION_1.27/tests/test-process.c:287:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_TYPE_STRING [valueFlowBailoutIncompleteVar] 2.18.0 libaccounts-glib-VERSION_1.27/tests/test-process.c:308:40: style: Parameter 'args' can be declared as pointer to const. However it seems that 'test_enabled_event' is a callback function, if 'args' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libaccounts-glib-VERSION_1.27/tests/test-process.c:406:38: note: You might need to cast the function pointer here libaccounts-glib-VERSION_1.27/tests/test-process.c:308:40: note: Parameter 'args' can be declared as pointer to const 2.18.0 libaccounts-glib-VERSION_1.27/tests/test-process.c:323:41: style: Parameter 'args' can be declared as pointer to const. However it seems that 'test_enabled_event2' is a callback function, if 'args' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libaccounts-glib-VERSION_1.27/tests/test-process.c:410:38: note: You might need to cast the function pointer here libaccounts-glib-VERSION_1.27/tests/test-process.c:323:41: note: Parameter 'args' can be declared as pointer to const 2.18.0 libaccounts-glib-VERSION_1.27/tests/test-process.c:344:34: style: Parameter 'args' can be declared as pointer to const. However it seems that 'test_lock_db' is a callback function, if 'args' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libaccounts-glib-VERSION_1.27/tests/test-process.c:402:38: note: You might need to cast the function pointer here libaccounts-glib-VERSION_1.27/tests/test-process.c:344:34: note: Parameter 'args' can be declared as pointer to const 2.18.0 libaccounts-glib-VERSION_1.27/tests/test-process.c:351:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] 2.18.0 libaccounts-glib-VERSION_1.27/tests/test-process.c:364:5: error: Resource leak: sqldb [resourceLeak] 2.18.0 libaccounts-glib-VERSION_1.27/tools/main.c:1067:31: style: Parameter 'id' can be declared as pointer to const [constParameterPointer] 2.18.0 libaccounts-glib-VERSION_1.27/tools/main.c:1102:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] 2.18.0 libaccounts-glib-VERSION_1.27/tools/main.c:114:24: style: Parameter 'command' can be declared as pointer to const [constParameterPointer] 2.18.0 libaccounts-glib-VERSION_1.27/tools/main.c:1150:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] 2.18.0 libaccounts-glib-VERSION_1.27/tools/main.c:178:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_TYPE_INT [valueFlowBailoutIncompleteVar] 2.18.0 libaccounts-glib-VERSION_1.27/tools/main.c:278:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] head libaccounts-glib-VERSION_1.27/tools/main.c:33:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] head libaccounts-glib-VERSION_1.27/tools/main.c:33:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] 2.18.0 libaccounts-glib-VERSION_1.27/tools/main.c:373:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_TYPE_INT [valueFlowBailoutIncompleteVar] 2.18.0 libaccounts-glib-VERSION_1.27/tools/main.c:507:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GValue [valueFlowBailoutIncompleteVar] 2.18.0 libaccounts-glib-VERSION_1.27/tools/main.c:637:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GValue [valueFlowBailoutIncompleteVar] 2.18.0 libaccounts-glib-VERSION_1.27/tools/main.c:819:13: style: Variable 'id' is assigned a value that is never used. [unreadVariable] 2.18.0 libaccounts-glib-VERSION_1.27/tools/main.c:843:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] 2.18.0 libaccounts-glib-VERSION_1.27/tools/main.c:894:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] 2.18.0 libaccounts-glib-VERSION_1.27/tools/main.c:951:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] 2.18.0 libaccounts-glib-VERSION_1.27/tools/main.c:994:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] 2.18.0 libaccounts-glib-VERSION_1.27/tools/main.c:996:9: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] DONE