2026-05-03 01:11 ftp://ftp.de.debian.org/debian/pool/main/l/lomiri-indicator-location/lomiri-indicator-location_25.10.2.orig.tar.bz2 cppcheck-options: --library=posix --library=gnu --library=bsd --library=googletest --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 -j1 platform: Linux-6.8.0-1047-aws-aarch64-with-glibc2.35 python: 3.10.12 client-version: 1.4.0 compiler: g++ (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0 cppcheck: head 2.20.0 head-info: e5c4a73 (2026-05-01 11:10:43 +0200) count: 79 62 elapsed-time: 0.4 0.3 head-timing-info: old-timing-info: head results: lomiri-indicator-location-25.10.2/src/location-service-controller.cc:40:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_BUS_TYPE_SYSTEM [valueFlowBailoutIncompleteVar] lomiri-indicator-location-25.10.2/src/location-service-controller.cc:152:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_DBUS_CALL_FLAGS_NONE [valueFlowBailoutIncompleteVar] lomiri-indicator-location-25.10.2/src/utils.h:27:10: style:inconclusive: Technically the member function 'GObjectDeleter::operator()' can be const. [functionConst] lomiri-indicator-location-25.10.2/src/location-service-controller.h:30:14: style: The destructor '~LocationServiceController' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] lomiri-indicator-location-25.10.2/src/controller.h:28:14: note: Virtual destructor in base class lomiri-indicator-location-25.10.2/src/location-service-controller.h:30:14: note: Destructor in derived class lomiri-indicator-location-25.10.2/src/utils.h:34:20: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] lomiri-indicator-location-25.10.2/src/utils.h:38:20: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] lomiri-indicator-location-25.10.2/src/utils.h:42:20: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] lomiri-indicator-location-25.10.2/src/utils.h:46:20: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] lomiri-indicator-location-25.10.2/src/location-service-controller.cc:151:36: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] lomiri-indicator-location-25.10.2/src/location-service-controller.cc:145:11: style: Variable 'props' can be declared as const array [constVariable] lomiri-indicator-location-25.10.2/src/main.cc:37:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_ALL [valueFlowBailoutIncompleteVar] lomiri-indicator-location-25.10.2/src/phone.cc:264:23: style: The member function 'Phone::create_settings_action' can be static. [functionStatic] lomiri-indicator-location-25.10.2/src/phone.h:74:20: note: The member function 'Phone::create_settings_action' can be static. lomiri-indicator-location-25.10.2/src/phone.cc:264:23: note: The member function 'Phone::create_settings_action' can be static. lomiri-indicator-location-25.10.2/src/phone.cc:112:38: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] lomiri-indicator-location-25.10.2/src/phone.cc:114:24: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] lomiri-indicator-location-25.10.2/src/phone.cc:117:25: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] lomiri-indicator-location-25.10.2/src/phone.cc:268:55: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] lomiri-indicator-location-25.10.2/src/phone.cc:304:43: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] lomiri-indicator-location-25.10.2/src/phone.cc:314:38: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] lomiri-indicator-location-25.10.2/src/phone.cc:35:49: style:inconclusive: Function 'Phone' argument 1 names different: declaration 'controller' definition 'controller_'. [funcArgNamesDifferent] lomiri-indicator-location-25.10.2/src/phone.h:33:46: note: Function 'Phone' argument 1 names different: declaration 'controller' definition 'controller_'. lomiri-indicator-location-25.10.2/src/phone.cc:35:49: note: Function 'Phone' argument 1 names different: declaration 'controller' definition 'controller_'. lomiri-indicator-location-25.10.2/src/phone.cc:35:105: style:inconclusive: Function 'Phone' argument 2 names different: declaration 'action_group' definition 'action_group_'. [funcArgNamesDifferent] lomiri-indicator-location-25.10.2/src/phone.h:33:101: note: Function 'Phone' argument 2 names different: declaration 'action_group' definition 'action_group_'. lomiri-indicator-location-25.10.2/src/phone.cc:35:105: note: Function 'Phone' argument 2 names different: declaration 'action_group' definition 'action_group_'. lomiri-indicator-location-25.10.2/src/phone.cc:181:60: style:inconclusive: Function 'on_detection_location_activated' argument 1 names different: declaration '' definition 'action'. [funcArgNamesDifferentUnnamed] lomiri-indicator-location-25.10.2/src/phone.cc:181:78: style:inconclusive: Function 'on_detection_location_activated' argument 2 names different: declaration '' definition 'parameter'. [funcArgNamesDifferentUnnamed] lomiri-indicator-location-25.10.2/src/phone.cc:181:112: style:inconclusive: Function 'on_detection_location_activated' argument 3 names different: declaration '' definition 'gself'. [funcArgNamesDifferentUnnamed] lomiri-indicator-location-25.10.2/src/phone.cc:214:55: style:inconclusive: Function 'on_detection_gps_activated' argument 1 names different: declaration '' definition 'action'. [funcArgNamesDifferentUnnamed] lomiri-indicator-location-25.10.2/src/phone.cc:214:73: style:inconclusive: Function 'on_detection_gps_activated' argument 2 names different: declaration '' definition 'parameter'. [funcArgNamesDifferentUnnamed] lomiri-indicator-location-25.10.2/src/phone.cc:214:107: style:inconclusive: Function 'on_detection_gps_activated' argument 3 names different: declaration '' definition 'gself'. [funcArgNamesDifferentUnnamed] lomiri-indicator-location-25.10.2/src/phone.cc:246:69: style: Parameter 'user_data' can be declared as pointer to const. However it seems that 'on_uri_dispatched' is a callback function, if 'user_data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] lomiri-indicator-location-25.10.2/src/phone.cc:259:35: note: You might need to cast the function pointer here lomiri-indicator-location-25.10.2/src/phone.cc:246:69: note: Parameter 'user_data' can be declared as pointer to const lomiri-indicator-location-25.10.2/src/service.cc:38:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_BUS_TYPE_SESSION [valueFlowBailoutIncompleteVar] lomiri-indicator-location-25.10.2/src/service.cc:86:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] lomiri-indicator-location-25.10.2/src/service.cc:92:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] lomiri-indicator-location-25.10.2/src/service.cc:106:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] lomiri-indicator-location-25.10.2/src/service.cc:86:40: style: C-style pointer casting [cstyleCast] lomiri-indicator-location-25.10.2/src/service.cc:92:40: style: C-style pointer casting [cstyleCast] lomiri-indicator-location-25.10.2/src/service.cc:106:40: style: C-style pointer casting [cstyleCast] lomiri-indicator-location-25.10.2/src/service.cc:55:78: style:inconclusive: Function 'set_name_lost_callback' argument 2 names different: declaration '' definition 'user_data'. [funcArgNamesDifferentUnnamed] lomiri-indicator-location-25.10.2/src/service.cc:84:45: style:inconclusive: Function 'on_name_lost' argument 1 names different: declaration '' definition 'conn'. [funcArgNamesDifferentUnnamed] lomiri-indicator-location-25.10.2/src/service.cc:84:63: style:inconclusive: Function 'on_name_lost' argument 2 names different: declaration '' definition 'name'. [funcArgNamesDifferentUnnamed] lomiri-indicator-location-25.10.2/src/service.cc:84:78: style:inconclusive: Function 'on_name_lost' argument 3 names different: declaration '' definition 'gself'. [funcArgNamesDifferentUnnamed] lomiri-indicator-location-25.10.2/src/service.cc:90:45: style:inconclusive: Function 'on_name_lost' argument 1 names different: declaration '' definition 'conn'. [funcArgNamesDifferentUnnamed] lomiri-indicator-location-25.10.2/src/service.cc:90:63: style:inconclusive: Function 'on_name_lost' argument 2 names different: declaration '' definition 'name'. [funcArgNamesDifferentUnnamed] lomiri-indicator-location-25.10.2/src/service.cc:100:48: style:inconclusive: Function 'on_bus_acquired' argument 1 names different: declaration '' definition 'conn'. [funcArgNamesDifferentUnnamed] lomiri-indicator-location-25.10.2/src/service.cc:100:66: style:inconclusive: Function 'on_bus_acquired' argument 2 names different: declaration '' definition 'name'. [funcArgNamesDifferentUnnamed] lomiri-indicator-location-25.10.2/src/service.cc:100:81: style:inconclusive: Function 'on_bus_acquired' argument 3 names different: declaration '' definition 'gself'. [funcArgNamesDifferentUnnamed] lomiri-indicator-location-25.10.2/src/service.cc:104:48: style:inconclusive: Function 'on_bus_acquired' argument 1 names different: declaration '' definition 'conn'. [funcArgNamesDifferentUnnamed] lomiri-indicator-location-25.10.2/src/service.cc:104:66: style:inconclusive: Function 'on_bus_acquired' argument 2 names different: declaration '' definition 'name'. [funcArgNamesDifferentUnnamed] lomiri-indicator-location-25.10.2/src/service.cc:90:45: style: Parameter 'conn' can be declared as pointer to const. However it seems that 'on_name_lost' is a callback function, if 'conn' is declared with const you might also need to cast function pointer(s). [constParameterCallback] lomiri-indicator-location-25.10.2/src/service.cc:39:42: note: You might need to cast the function pointer here lomiri-indicator-location-25.10.2/src/service.cc:90:45: note: Parameter 'conn' can be declared as pointer to const lomiri-indicator-location-25.10.2/tests/gtest-dbus-fixture.h:59:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_SOURCE_REMOVE [valueFlowBailoutIncompleteVar] lomiri-indicator-location-25.10.2/tests/gtest-dbus-fixture.h:65:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_SOURCE_CONTINUE [valueFlowBailoutIncompleteVar] lomiri-indicator-location-25.10.2/tests/gtest-dbus-fixture.h:81:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_TEST_DBUS_NONE [valueFlowBailoutIncompleteVar] lomiri-indicator-location-25.10.2/tests/gtest-dbus-fixture.h:106:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable g_main_loop_unref [valueFlowBailoutIncompleteVar] lomiri-indicator-location-25.10.2/tests/gtest-dbus-indicator-fixture.h:136:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable g_timer_destroy [valueFlowBailoutIncompleteVar] lomiri-indicator-location-25.10.2/tests/gtest-dbus-indicator-fixture.h:205:61: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_MENU_ATTRIBUTE_ACTION [valueFlowBailoutIncompleteVar] lomiri-indicator-location-25.10.2/tests/gtest-dbus-indicator-fixture.h:292:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_MENU_ATTRIBUTE_LABEL [valueFlowBailoutIncompleteVar] lomiri-indicator-location-25.10.2/tests/phone-test.cc:115:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable action_group [valueFlowBailoutIncompleteVar] lomiri-indicator-location-25.10.2/tests/phone-test.cc:144:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable action_group [valueFlowBailoutIncompleteVar] lomiri-indicator-location-25.10.2/tests/phone-test.cc:165:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable action_group [valueFlowBailoutIncompleteVar] lomiri-indicator-location-25.10.2/tests/phone-test.cc:193:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable action_group [valueFlowBailoutIncompleteVar] lomiri-indicator-location-25.10.2/tests/phone-test.cc:224:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable action_group [valueFlowBailoutIncompleteVar] lomiri-indicator-location-25.10.2/tests/phone-test.cc:252:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable action_group [valueFlowBailoutIncompleteVar] lomiri-indicator-location-25.10.2/tests/phone-test.cc:316:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_MENU_ATTRIBUTE_ACTION [valueFlowBailoutIncompleteVar] lomiri-indicator-location-25.10.2/tests/gtest-dbus-indicator-fixture.h:25:1: style: The class 'GTestDBusIndicatorFixture' does not declare a constructor although it has private member variables which likely require initialization. [noConstructor] lomiri-indicator-location-25.10.2/tests/gtest-dbus-indicator-fixture.h:101:18: style: The function 'SetUp' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] lomiri-indicator-location-25.10.2/tests/gtest-dbus-fixture.h:69:18: note: Virtual function in base class lomiri-indicator-location-25.10.2/tests/gtest-dbus-indicator-fixture.h:101:18: note: Function in derived class lomiri-indicator-location-25.10.2/tests/gtest-dbus-indicator-fixture.h:134:18: style: The function 'TearDown' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] lomiri-indicator-location-25.10.2/tests/gtest-dbus-fixture.h:95:18: note: Virtual function in base class lomiri-indicator-location-25.10.2/tests/gtest-dbus-indicator-fixture.h:134:18: note: Function in derived class lomiri-indicator-location-25.10.2/tests/phone-test.cc:63:18: style: The function 'SetUp' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] lomiri-indicator-location-25.10.2/tests/gtest-dbus-indicator-fixture.h:101:18: note: Virtual function in base class lomiri-indicator-location-25.10.2/tests/phone-test.cc:63:18: note: Function in derived class lomiri-indicator-location-25.10.2/tests/phone-test.cc:70:18: style: The function 'setup_service' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] lomiri-indicator-location-25.10.2/tests/gtest-dbus-indicator-fixture.h:98:18: note: Virtual function in base class lomiri-indicator-location-25.10.2/tests/phone-test.cc:70:18: note: Function in derived class lomiri-indicator-location-25.10.2/tests/phone-test.cc:89:18: style: The function 'teardown_service' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] lomiri-indicator-location-25.10.2/tests/gtest-dbus-indicator-fixture.h:99:18: note: Virtual function in base class lomiri-indicator-location-25.10.2/tests/phone-test.cc:89:18: note: Function in derived class lomiri-indicator-location-25.10.2/tests/gtest-dbus-fixture.h:58:68: style: C-style pointer casting [cstyleCast] lomiri-indicator-location-25.10.2/tests/gtest-dbus-fixture.h:115:98: style: C-style pointer casting [cstyleCast] lomiri-indicator-location-25.10.2/tests/gtest-dbus-indicator-fixture.h:214:60: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] lomiri-indicator-location-25.10.2/tests/gtest-dbus-indicator-fixture.h:251:28: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] lomiri-indicator-location-25.10.2/tests/phone-test.cc:152:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] lomiri-indicator-location-25.10.2/tests/phone-test.cc:153:58: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] lomiri-indicator-location-25.10.2/tests/phone-test.cc:324:5: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] lomiri-indicator-location-25.10.2/tests/phone-test.cc:325:62: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] lomiri-indicator-location-25.10.2/tests/phone-test.cc:328:47: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] lomiri-indicator-location-25.10.2/tests/phone-test.cc:331:49: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] lomiri-indicator-location-25.10.2/tests/phone-test.cc:352:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] lomiri-indicator-location-25.10.2/tests/phone-test.cc:353:53: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] lomiri-indicator-location-25.10.2/tests/phone-test.cc:342:7: style: Variable 'visibility_tests' can be declared as const array [constVariable] diff: head lomiri-indicator-location-25.10.2/src/phone.cc:181:112: style:inconclusive: Function 'on_detection_location_activated' argument 3 names different: declaration '' definition 'gself'. [funcArgNamesDifferentUnnamed] head lomiri-indicator-location-25.10.2/src/phone.cc:181:60: style:inconclusive: Function 'on_detection_location_activated' argument 1 names different: declaration '' definition 'action'. [funcArgNamesDifferentUnnamed] head lomiri-indicator-location-25.10.2/src/phone.cc:181:78: style:inconclusive: Function 'on_detection_location_activated' argument 2 names different: declaration '' definition 'parameter'. [funcArgNamesDifferentUnnamed] head lomiri-indicator-location-25.10.2/src/phone.cc:214:107: style:inconclusive: Function 'on_detection_gps_activated' argument 3 names different: declaration '' definition 'gself'. [funcArgNamesDifferentUnnamed] head lomiri-indicator-location-25.10.2/src/phone.cc:214:55: style:inconclusive: Function 'on_detection_gps_activated' argument 1 names different: declaration '' definition 'action'. [funcArgNamesDifferentUnnamed] head lomiri-indicator-location-25.10.2/src/phone.cc:214:73: style:inconclusive: Function 'on_detection_gps_activated' argument 2 names different: declaration '' definition 'parameter'. [funcArgNamesDifferentUnnamed] head lomiri-indicator-location-25.10.2/src/service.cc:100:48: style:inconclusive: Function 'on_bus_acquired' argument 1 names different: declaration '' definition 'conn'. [funcArgNamesDifferentUnnamed] head lomiri-indicator-location-25.10.2/src/service.cc:100:66: style:inconclusive: Function 'on_bus_acquired' argument 2 names different: declaration '' definition 'name'. [funcArgNamesDifferentUnnamed] head lomiri-indicator-location-25.10.2/src/service.cc:100:81: style:inconclusive: Function 'on_bus_acquired' argument 3 names different: declaration '' definition 'gself'. [funcArgNamesDifferentUnnamed] head lomiri-indicator-location-25.10.2/src/service.cc:104:48: style:inconclusive: Function 'on_bus_acquired' argument 1 names different: declaration '' definition 'conn'. [funcArgNamesDifferentUnnamed] head lomiri-indicator-location-25.10.2/src/service.cc:104:66: style:inconclusive: Function 'on_bus_acquired' argument 2 names different: declaration '' definition 'name'. [funcArgNamesDifferentUnnamed] head lomiri-indicator-location-25.10.2/src/service.cc:55:78: style:inconclusive: Function 'set_name_lost_callback' argument 2 names different: declaration '' definition 'user_data'. [funcArgNamesDifferentUnnamed] head lomiri-indicator-location-25.10.2/src/service.cc:84:45: style:inconclusive: Function 'on_name_lost' argument 1 names different: declaration '' definition 'conn'. [funcArgNamesDifferentUnnamed] head lomiri-indicator-location-25.10.2/src/service.cc:84:63: style:inconclusive: Function 'on_name_lost' argument 2 names different: declaration '' definition 'name'. [funcArgNamesDifferentUnnamed] head lomiri-indicator-location-25.10.2/src/service.cc:84:78: style:inconclusive: Function 'on_name_lost' argument 3 names different: declaration '' definition 'gself'. [funcArgNamesDifferentUnnamed] head lomiri-indicator-location-25.10.2/src/service.cc:90:45: style:inconclusive: Function 'on_name_lost' argument 1 names different: declaration '' definition 'conn'. [funcArgNamesDifferentUnnamed] head lomiri-indicator-location-25.10.2/src/service.cc:90:63: style:inconclusive: Function 'on_name_lost' argument 2 names different: declaration '' definition 'name'. [funcArgNamesDifferentUnnamed] DONE