2022-06-24 14:44 ftp://ftp.de.debian.org/debian/pool/main/p/pygobject/pygobject_3.42.1.orig.tar.xz cppcheck-options: --library=posix --library=gnu --showtime=top5 --check-library --inconclusive --enable=style,information --inline-suppr --template=daca2 -D__GNUC__ --platform=unix64 -rp=temp -j4 platform: Linux-5.10.0-15-amd64-x86_64-with-glibc2.31 python: 3.9.2 client-version: 1.3.25 compiler: g++ (Debian 10.2.1-6) 10.2.1 20210110 cppcheck: head 2.8 head-info: 11860cc (2022-06-24 13:55:04 +0200) count: 55 55 elapsed-time: 3.6 3.0 head-timing-info: Overall time: 0s old-timing-info: Overall time: 0s head results: pygobject-3.42.1/gi/pygboxed.c:199:38: style: Redundant condition: copy_boxed. '!copy_boxed || (copy_boxed && own_ref)' is equivalent to '!copy_boxed || own_ref' [redundantCondition] pygobject-3.42.1/gi/pygenum.c:227:21: style:inconclusive: Function 'pyg_enum_add' argument 2 names different: declaration 'type_name' definition 'typename'. [funcArgNamesDifferent] pygobject-3.42.1/gi/pygenum.h:36:46: note: Function 'pyg_enum_add' argument 2 names different: declaration 'type_name' definition 'typename'. pygobject-3.42.1/gi/pygenum.c:227:21: note: Function 'pyg_enum_add' argument 2 names different: declaration 'type_name' definition 'typename'. pygobject-3.42.1/gi/pygflags.c:252:22: style:inconclusive: Function 'pyg_flags_add' argument 2 names different: declaration 'type_name' definition 'typename'. [funcArgNamesDifferent] pygobject-3.42.1/gi/pygflags.h:36:54: note: Function 'pyg_flags_add' argument 2 names different: declaration 'type_name' definition 'typename'. pygobject-3.42.1/gi/pygflags.c:252:22: note: Function 'pyg_flags_add' argument 2 names different: declaration 'type_name' definition 'typename'. pygobject-3.42.1/gi/pygi-basictype.c:1124:5: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] pygobject-3.42.1/gi/pygi-boxed.c:75:44: style:inconclusive: Function 'pygi_boxed_alloc' argument 2 names different: declaration 'size' definition 'size_out'. [funcArgNamesDifferent] pygobject-3.42.1/gi/pygi-boxed.h:38:51: note: Function 'pygi_boxed_alloc' argument 2 names different: declaration 'size' definition 'size_out'. pygobject-3.42.1/gi/pygi-boxed.c:75:44: note: Function 'pygi_boxed_alloc' argument 2 names different: declaration 'size' definition 'size_out'. pygobject-3.42.1/gi/pygi-array.c:474:52: warning: Either the condition 'ptr_array_!=NULL' is redundant or there is possible null pointer dereference: ptr_array_. [nullPointerRedundantCheck] pygobject-3.42.1/gi/pygi-array.c:481:32: note: Assuming that condition 'ptr_array_!=NULL' is not redundant pygobject-3.42.1/gi/pygi-array.c:474:52: note: Null pointer dereference pygobject-3.42.1/gi/pygi-cache.c:862:35: error: Returning pointer to local variable 'state' that will be invalid when returning. [returnDanglingLifetime] pygobject-3.42.1/gi/pygi-cache.c:862:52: note: Address of variable taken here. pygobject-3.42.1/gi/pygi-cache.c:862:52: note: Passed to initializer list. pygobject-3.42.1/gi/pygi-cache.c:860:21: note: Variable created here. pygobject-3.42.1/gi/pygi-cache.c:862:35: note: Returning pointer to local variable 'state' that will be invalid when returning. pygobject-3.42.1/gi/pygi-cache.c:899:35: error: Returning pointer to local variable 'state' that will be invalid when returning. [returnDanglingLifetime] pygobject-3.42.1/gi/pygi-cache.c:899:52: note: Address of variable taken here. pygobject-3.42.1/gi/pygi-cache.c:899:52: note: Passed to initializer list. pygobject-3.42.1/gi/pygi-cache.c:895:21: note: Variable created here. pygobject-3.42.1/gi/pygi-cache.c:899:35: note: Returning pointer to local variable 'state' that will be invalid when returning. pygobject-3.42.1/gi/pygi-cache.c:889:50: style:inconclusive: Function 'pygi_ccallback_cache_invoke' argument 1 names different: declaration 'function_cache' definition 'ccallback_cache'. [funcArgNamesDifferent] pygobject-3.42.1/gi/pygi-cache.h:302:49: note: Function 'pygi_ccallback_cache_invoke' argument 1 names different: declaration 'function_cache' definition 'ccallback_cache'. pygobject-3.42.1/gi/pygi-cache.c:889:50: note: Function 'pygi_ccallback_cache_invoke' argument 1 names different: declaration 'function_cache' definition 'ccallback_cache'. pygobject-3.42.1/gi/pygi-foreign-api.h:74:5: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] pygobject-3.42.1/gi/pygi-foreign-cairo.c:59:0: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] pygobject-3.42.1/gi/pygi-foreign-cairo.c:145:0: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] pygobject-3.42.1/gi/pygi-foreign-cairo.c:246:0: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] pygobject-3.42.1/gi/pygi-foreign-cairo.c:335:0: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] pygobject-3.42.1/gi/pygi-foreign-cairo.c:425:0: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] pygobject-3.42.1/gi/pygi-foreign-cairo.c:505:0: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] pygobject-3.42.1/gi/pygi-foreign-cairo.c:564:5: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] pygobject-3.42.1/gi/pygi-foreign-cairo.c:576:5: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] pygobject-3.42.1/gi/pygi-foreign.c:195:9: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] pygobject-3.42.1/gi/pygi-foreign.c:146:42: style:inconclusive: Function 'pygi_struct_foreign_release' argument 1 names different: declaration 'type_info' definition 'base_info'. [funcArgNamesDifferent] pygobject-3.42.1/gi/pygi-foreign.h:38:52: note: Function 'pygi_struct_foreign_release' argument 1 names different: declaration 'type_info' definition 'base_info'. pygobject-3.42.1/gi/pygi-foreign.c:146:42: note: Function 'pygi_struct_foreign_release' argument 1 names different: declaration 'type_info' definition 'base_info'. pygobject-3.42.1/gi/pygi-closure.c:414:61: error: Using pointer to local variable 'cleanup_data' that is out of scope. [invalidLifetime] pygobject-3.42.1/gi/pygi-closure.c:403:54: note: Address of variable taken here. pygobject-3.42.1/gi/pygi-closure.c:403:54: note: Passed to initializer list. pygobject-3.42.1/gi/pygi-closure.c:406:27: note: Assuming condition is false pygobject-3.42.1/gi/pygi-closure.c:397:26: note: Variable created here. pygobject-3.42.1/gi/pygi-closure.c:414:61: note: Using pointer to local variable 'cleanup_data' that is out of scope. pygobject-3.42.1/gi/pygi-closure.c:551:32: style:inconclusive: Function '_pygi_closure_handle' argument 4 names different: declaration 'userdata' definition 'data'. [funcArgNamesDifferent] pygobject-3.42.1/gi/pygi-closure.h:48:42: note: Function '_pygi_closure_handle' argument 4 names different: declaration 'userdata' definition 'data'. pygobject-3.42.1/gi/pygi-closure.c:551:32: note: Function '_pygi_closure_handle' argument 4 names different: declaration 'userdata' definition 'data'. pygobject-3.42.1/gi/pygi-closure.c:633:42: style:inconclusive: Function '_pygi_invoke_closure_free' argument 1 names different: declaration 'user_data' definition 'data'. [funcArgNamesDifferent] pygobject-3.42.1/gi/pygi-closure.h:50:42: note: Function '_pygi_invoke_closure_free' argument 1 names different: declaration 'user_data' definition 'data'. pygobject-3.42.1/gi/pygi-closure.c:633:42: note: Function '_pygi_invoke_closure_free' argument 1 names different: declaration 'user_data' definition 'data'. pygobject-3.42.1/gi/pygi-closure.c:655:38: style:inconclusive: Function '_pygi_make_native_closure' argument 4 names different: declaration 'function' definition 'py_function'. [funcArgNamesDifferent] pygobject-3.42.1/gi/pygi-closure.h:55:52: note: Function '_pygi_make_native_closure' argument 4 names different: declaration 'function' definition 'py_function'. pygobject-3.42.1/gi/pygi-closure.c:655:38: note: Function '_pygi_make_native_closure' argument 4 names different: declaration 'function' definition 'py_function'. pygobject-3.42.1/gi/pygi-closure.c:656:37: style:inconclusive: Function '_pygi_make_native_closure' argument 5 names different: declaration 'user_data' definition 'py_user_data'. [funcArgNamesDifferent] pygobject-3.42.1/gi/pygi-closure.h:56:51: note: Function '_pygi_make_native_closure' argument 5 names different: declaration 'user_data' definition 'py_user_data'. pygobject-3.42.1/gi/pygi-closure.c:656:37: note: Function '_pygi_make_native_closure' argument 5 names different: declaration 'user_data' definition 'py_user_data'. pygobject-3.42.1/gi/pygi-invoke.c:594:23: error: Using pointer to local variable 'cleanup_data' that is out of scope. [invalidLifetime] pygobject-3.42.1/gi/pygi-invoke.c:566:64: note: Address of variable taken here. pygobject-3.42.1/gi/pygi-invoke.c:566:64: note: Passed to initializer list. pygobject-3.42.1/gi/pygi-invoke.c:568:27: note: Assuming condition is false pygobject-3.42.1/gi/pygi-invoke.c:561:22: note: Variable created here. pygobject-3.42.1/gi/pygi-invoke.c:594:23: note: Using pointer to local variable 'cleanup_data' that is out of scope. pygobject-3.42.1/gi/pygi-invoke.c:662:12: error: Returning pointer to local variable 'cleanup_data' that will be invalid when returning. [returnDanglingLifetime] pygobject-3.42.1/gi/pygi-invoke.c:608:47: note: Address of variable taken here. pygobject-3.42.1/gi/pygi-invoke.c:608:47: note: Passed to initializer list. pygobject-3.42.1/gi/pygi-invoke.c:610:20: note: Assuming condition is false pygobject-3.42.1/gi/pygi-invoke.c:603:18: note: Variable created here. pygobject-3.42.1/gi/pygi-invoke.c:662:12: note: Returning pointer to local variable 'cleanup_data' that will be invalid when returning. pygobject-3.42.1/gi/pygi-repository.c:106:5: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] pygobject-3.42.1/gi/pygi-signal-closure.c:91:37: error: syntax error [syntaxError] pygobject-3.42.1/gi/pygi-property.c:159:13: style: Redundant initialization for 'arg'. The initialized value is overwritten before it is read. [redundantInitialization] pygobject-3.42.1/gi/pygi-property.c:155:24: note: arg is initialized pygobject-3.42.1/gi/pygi-property.c:159:13: note: arg is overwritten pygobject-3.42.1/gi/pygi-resulttuple.c:346:47: style:inconclusive: Function 'pygi_resulttuple_register_types' argument 1 names different: declaration 'd' definition 'module'. [funcArgNamesDifferent] pygobject-3.42.1/gi/pygi-resulttuple.h:26:47: note: Function 'pygi_resulttuple_register_types' argument 1 names different: declaration 'd' definition 'module'. pygobject-3.42.1/gi/pygi-resulttuple.c:346:47: note: Function 'pygi_resulttuple_register_types' argument 1 names different: declaration 'd' definition 'module'. pygobject-3.42.1/gi/pygi-source.c:232:38: style:inconclusive: Function 'pygi_source_set_callback' argument 1 names different: declaration 'self' definition 'self_module'. [funcArgNamesDifferent] pygobject-3.42.1/gi/pygi-source.h:28:48: note: Function 'pygi_source_set_callback' argument 1 names different: declaration 'self' definition 'self_module'. pygobject-3.42.1/gi/pygi-source.c:232:38: note: Function 'pygi_source_set_callback' argument 1 names different: declaration 'self' definition 'self_module'. pygobject-3.42.1/gi/pygi-source.c:286:44: style: Parameter 'args' can be declared as pointer to const [constParameter] pygobject-3.42.1/gi/pygi-util.c:57:27: style: Parameter 'a' can be declared as pointer to const [constParameter] pygobject-3.42.1/gi/pygi-util.c:57:36: style: Parameter 'b' can be declared as pointer to const [constParameter] pygobject-3.42.1/gi/pygi-struct-marshal.c:104:43: style:inconclusive: Function 'pygi_arg_gvalue_from_py_marshal' argument 4 names different: declaration 'is_allocated' definition 'copy_reference'. [funcArgNamesDifferent] pygobject-3.42.1/gi/pygi-struct-marshal.h:39:64: note: Function 'pygi_arg_gvalue_from_py_marshal' argument 4 names different: declaration 'is_allocated' definition 'copy_reference'. pygobject-3.42.1/gi/pygi-struct-marshal.c:104:43: note: Function 'pygi_arg_gvalue_from_py_marshal' argument 4 names different: declaration 'is_allocated' definition 'copy_reference'. pygobject-3.42.1/gi/pygi-struct-marshal.c:261:43: style:inconclusive: Function 'pygi_arg_struct_from_py_marshal' argument 8 names different: declaration 'is_allocated' definition 'copy_reference'. [funcArgNamesDifferent] pygobject-3.42.1/gi/pygi-struct-marshal.h:48:64: note: Function 'pygi_arg_struct_from_py_marshal' argument 8 names different: declaration 'is_allocated' definition 'copy_reference'. pygobject-3.42.1/gi/pygi-struct-marshal.c:261:43: note: Function 'pygi_arg_struct_from_py_marshal' argument 8 names different: declaration 'is_allocated' definition 'copy_reference'. pygobject-3.42.1/gi/pygi-value.c:930:0: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] pygobject-3.42.1/gi/pygi-value.c:506:18: style: Unused variable: holds_value_array [unusedVariable] pygobject-3.42.1/gi/pygi-value.c:723:18: style: Unused variable: holds_value_array [unusedVariable] pygobject-3.42.1/gi/pygi-type.c:635:10: style: Variable 'res' is reassigned a value before the old one has been used. [redundantAssignment] pygobject-3.42.1/gi/pygi-type.c:626:10: note: res is assigned pygobject-3.42.1/gi/pygi-type.c:635:10: note: res is overwritten pygobject-3.42.1/gi/pygi-type.c:695:10: style: Variable 'res' is reassigned a value before the old one has been used. [redundantAssignment] pygobject-3.42.1/gi/pygi-type.c:686:10: note: res is assigned pygobject-3.42.1/gi/pygi-type.c:695:10: note: res is overwritten pygobject-3.42.1/gi/pygoptiongroup.c:120:25: style: Variable 'g_option_group_free' is assigned a value that is never used. [unreadVariable] pygobject-3.42.1/gi/pygspawn.c:111:30: style:inconclusive: Function 'pyglib_spawn_async' argument 1 names different: declaration 'self' definition 'object'. [funcArgNamesDifferent] pygobject-3.42.1/gi/pygspawn.h:26:41: note: Function 'pyglib_spawn_async' argument 1 names different: declaration 'self' definition 'object'. pygobject-3.42.1/gi/pygspawn.c:111:30: note: Function 'pyglib_spawn_async' argument 1 names different: declaration 'self' definition 'object'. pygobject-3.42.1/tests/gimarshallingtestsextra.c:27:50: error: syntax error [syntaxError] pygobject-3.42.1/tests/test-unknown.c:108:50: style:inconclusive: Function 'test_interface_iface_method' argument 1 names different: declaration 'iface' definition 'instance'. [funcArgNamesDifferent] pygobject-3.42.1/tests/test-unknown.h:40:50: note: Function 'test_interface_iface_method' argument 1 names different: declaration 'iface' definition 'instance'. pygobject-3.42.1/tests/test-unknown.c:108:50: note: Function 'test_interface_iface_method' argument 1 names different: declaration 'iface' definition 'instance'. pygobject-3.42.1/gi/pygobject-object.c:522:15: style:inconclusive: Function 'pygobject_register_class' argument 5 names different: declaration 'bases' definition 'static_bases'. [funcArgNamesDifferent] pygobject-3.42.1/gi/pygobject-object.h:38:53: note: Function 'pygobject_register_class' argument 5 names different: declaration 'bases' definition 'static_bases'. pygobject-3.42.1/gi/pygobject-object.c:522:15: note: Function 'pygobject_register_class' argument 5 names different: declaration 'bases' definition 'static_bases'. pygobject-3.42.1/tests/testhelpermodule.c:578:3: error: There is an unknown macro here somewhere. Configuration is required. If G_GNUC_END_IGNORE_DEPRECATIONS is a macro then please configure it. [unknownMacro] pygobject-3.42.1/gi/pygobject-object.c:123:20: style: Variable 'closures' is assigned a value that is never used. [unreadVariable] pygobject-3.42.1/gi/pygobject-object.c:110:20: style: Variable '_save' is assigned a value that is never used. [unreadVariable] pygobject-3.42.1/gi/pygobject-object.c:363:13: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] pygobject-3.42.1/gi/pygi-info.c:207:9: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] pygobject-3.42.1/gi/pygi-info.c:309:9: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] pygobject-3.42.1/gi/pygi-info.c:748:9: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] pygobject-3.42.1/gi/pygi-info.c:1457:9: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] diff: head pygobject-3.42.1/gi/pygi-source.c:286:44: style: Parameter 'args' can be declared as pointer to const [constParameter] 2.8 pygobject-3.42.1/gi/pygi-source.c:286:44: style: Parameter 'args' can be declared with const [constParameter] head pygobject-3.42.1/gi/pygi-util.c:57:27: style: Parameter 'a' can be declared as pointer to const [constParameter] 2.8 pygobject-3.42.1/gi/pygi-util.c:57:27: style: Parameter 'a' can be declared with const [constParameter] head pygobject-3.42.1/gi/pygi-util.c:57:36: style: Parameter 'b' can be declared as pointer to const [constParameter] 2.8 pygobject-3.42.1/gi/pygi-util.c:57:36: style: Parameter 'b' can be declared with const [constParameter] DONE