2026-05-04 22:10 ftp://ftp.de.debian.org/debian/pool/main/r/ros2-rcpputils/ros2-rcpputils_2.13.2.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=googletest --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-111-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.70 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04.1) 14.2.0 cppcheck: head 2.20.0 head-info: 519958a (2026-05-04 15:03:10 +0200) count: 61 61 elapsed-time: 0.5 0.4 head-timing-info: old-timing-info: head results: ros2-rcpputils-35da074/src/asserts.cpp:21:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable msg_ [valueFlowBailoutIncompleteVar] ros2-rcpputils-35da074/src/asserts.cpp:31:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable msg_ [valueFlowBailoutIncompleteVar] ros2-rcpputils-35da074/src/env.cpp:53:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable str [valueFlowBailoutIncompleteVar] ros2-rcpputils-35da074/src/filesystem_helper.cpp:89:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable kPreferredSeparator [valueFlowBailoutIncompleteVar] ros2-rcpputils-35da074/src/filesystem_helper.cpp:96:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable path_ [valueFlowBailoutIncompleteVar] ros2-rcpputils-35da074/src/filesystem_helper.cpp:139:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable is_a_directory [valueFlowBailoutIncompleteVar] ros2-rcpputils-35da074/src/filesystem_helper.cpp:163:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable path_ [valueFlowBailoutIncompleteVar] ros2-rcpputils-35da074/src/filesystem_helper.cpp:189:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable path_ [valueFlowBailoutIncompleteVar] ros2-rcpputils-35da074/src/filesystem_helper.cpp:248:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable path_ [valueFlowBailoutIncompleteVar] ros2-rcpputils-35da074/src/filesystem_helper.cpp:327:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] ros2-rcpputils-35da074/src/filesystem_helper.cpp:358:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable preferred_separator [valueFlowBailoutIncompleteVar] ros2-rcpputils-35da074/src/filesystem_helper.cpp:394:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] ros2-rcpputils-35da074/src/filesystem_helper.cpp:420:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IRWXU [valueFlowBailoutIncompleteVar] ros2-rcpputils-35da074/src/filesystem_helper.cpp:508:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable npos [valueFlowBailoutIncompleteVar] ros2-rcpputils-35da074/src/filesystem_helper.cpp:164:39: style: Return value 'is_absolute_with_drive_letter(path_)' is always false [knownConditionTrueFalse] ros2-rcpputils-35da074/src/filesystem_helper.cpp:164:39: note: Calling function 'is_absolute_with_drive_letter' returns 0 ros2-rcpputils-35da074/src/filesystem_helper.cpp:164:39: note: Return value 'is_absolute_with_drive_letter(path_)' is always false ros2-rcpputils-35da074/src/filesystem_helper.cpp:189:40: style: Condition 'is_absolute_with_drive_letter(path_)' is always false [knownConditionTrueFalse] ros2-rcpputils-35da074/src/filesystem_helper.cpp:189:40: note: Calling function 'is_absolute_with_drive_letter' returns 0 ros2-rcpputils-35da074/src/filesystem_helper.cpp:189:40: note: Condition 'is_absolute_with_drive_letter(path_)' is always false ros2-rcpputils-35da074/src/filesystem_helper.cpp:199:68: style: Condition 'is_absolute_with_drive_letter(path_)' is always false [knownConditionTrueFalse] ros2-rcpputils-35da074/src/filesystem_helper.cpp:199:68: note: Calling function 'is_absolute_with_drive_letter' returns 0 ros2-rcpputils-35da074/src/filesystem_helper.cpp:199:68: note: Condition 'is_absolute_with_drive_letter(path_)' is always false ros2-rcpputils-35da074/src/filesystem_helper.cpp:205:81: style: Condition 'is_absolute_with_drive_letter(path_)' is always false [knownConditionTrueFalse] ros2-rcpputils-35da074/src/filesystem_helper.cpp:205:81: note: Calling function 'is_absolute_with_drive_letter' returns 0 ros2-rcpputils-35da074/src/filesystem_helper.cpp:205:81: note: Condition 'is_absolute_with_drive_letter(path_)' is always false ros2-rcpputils-35da074/src/filesystem_helper.cpp:481:33: error: Dereferencing 'dir' after it is deallocated / released [deallocuse] ros2-rcpputils-35da074/src/filesystem_helper.cpp:482:19: style: Variable 'directory_entry' can be declared as pointer to const [constVariablePointer] ros2-rcpputils-35da074/src/find_library.cpp:64:21: style: Local variable 'search_path' shadows outer variable [shadowVariable] ros2-rcpputils-35da074/src/find_library.cpp:59:15: note: Shadowed declaration ros2-rcpputils-35da074/src/find_library.cpp:64:21: note: Shadow variable ros2-rcpputils-35da074/src/shared_library.cpp:26:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable lib [valueFlowBailoutIncompleteVar] ros2-rcpputils-35da074/src/shared_library.cpp:44:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable lib [valueFlowBailoutIncompleteVar] ros2-rcpputils-35da074/src/shared_library.cpp:55:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable lib [valueFlowBailoutIncompleteVar] ros2-rcpputils-35da074/src/shared_library.cpp:65:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable lib [valueFlowBailoutIncompleteVar] ros2-rcpputils-35da074/src/shared_library.cpp:82:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable lib [valueFlowBailoutIncompleteVar] ros2-rcpputils-35da074/src/shared_library.cpp:92:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable library_path [valueFlowBailoutIncompleteVar] ros2-rcpputils-35da074/src/shared_library.cpp:106:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RCUTILS_RET_OK [valueFlowBailoutIncompleteVar] ros2-rcpputils-35da074/src/shared_library.cpp:98:51: performance: Function parameter 'library_name' should be passed by const reference. [passedByValue] ros2-rcpputils-35da074/test/test_endian.cpp:30:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable little [valueFlowBailoutIncompleteVar] ros2-rcpputils-35da074/test/test_endian.cpp:37:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable little [valueFlowBailoutIncompleteVar] ros2-rcpputils-35da074/test/test_endian.cpp:23:13: style: Variable 'numPtr' can be declared as pointer to const [constVariablePointer] ros2-rcpputils-35da074/test/test_filesystem_helper.cpp:362:10: style: Local variable 'file' shadows outer variable [shadowVariable] ros2-rcpputils-35da074/test/test_filesystem_helper.cpp:301:8: note: Shadowed declaration ros2-rcpputils-35da074/test/test_filesystem_helper.cpp:362:10: note: Shadow variable ros2-rcpputils-35da074/test/test_filesystem_helper.cpp:376:10: style: Local variable 'file' shadows outer variable [shadowVariable] ros2-rcpputils-35da074/test/test_filesystem_helper.cpp:301:8: note: Shadowed declaration ros2-rcpputils-35da074/test/test_filesystem_helper.cpp:376:10: note: Shadow variable ros2-rcpputils-35da074/test/test_filesystem_helper_std.cpp:342:10: style: Local variable 'file' shadows outer variable [shadowVariable] ros2-rcpputils-35da074/test/test_filesystem_helper_std.cpp:279:8: note: Shadowed declaration ros2-rcpputils-35da074/test/test_filesystem_helper_std.cpp:342:10: note: Shadow variable ros2-rcpputils-35da074/test/test_filesystem_helper_std.cpp:356:10: style: Local variable 'file' shadows outer variable [shadowVariable] ros2-rcpputils-35da074/test/test_filesystem_helper_std.cpp:279:8: note: Shadowed declaration ros2-rcpputils-35da074/test/test_filesystem_helper_std.cpp:356:10: note: Shadow variable ros2-rcpputils-35da074/test/test_find_library.cpp:82:43: style: Variable 'expected_library_path' is assigned a value that is never used. [unreadVariable] ros2-rcpputils-35da074/test/test_find_library.cpp:85:37: style: Variable 'test_lib_actual' is assigned a value that is never used. [unreadVariable] ros2-rcpputils-35da074/test/test_pointer_traits.cpp:36:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] ros2-rcpputils-35da074/test/test_pointer_traits.cpp:80:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] ros2-rcpputils-35da074/test/test_pointer_traits.cpp:104:91: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] ros2-rcpputils-35da074/test/test_pointer_traits.cpp:25:3: style: The comparison 'ptr_ptr == &ptr' is always true because 'ptr_ptr' and '&ptr' represent the same value. [knownConditionTrueFalse] ros2-rcpputils-35da074/test/test_pointer_traits.cpp:24:18: note: 'ptr_ptr' is assigned value '&ptr' here. ros2-rcpputils-35da074/test/test_pointer_traits.cpp:25:3: note: The comparison 'ptr_ptr == &ptr' is always true because 'ptr_ptr' and '&ptr' represent the same value. ros2-rcpputils-35da074/test/test_pointer_traits.cpp:93:3: style: The comparison 'ptr_ptr == &ptr' is always true because 'ptr_ptr' and '&ptr' represent the same value. [knownConditionTrueFalse] ros2-rcpputils-35da074/test/test_pointer_traits.cpp:92:18: note: 'ptr_ptr' is assigned value '&ptr' here. ros2-rcpputils-35da074/test/test_pointer_traits.cpp:93:3: note: The comparison 'ptr_ptr == &ptr' is always true because 'ptr_ptr' and '&ptr' represent the same value. ros2-rcpputils-35da074/test/test_scope_exit.cpp:61:10: style:inconclusive: Technically the member function 'testBody::NonCopyableCode::operator()' can be const. [functionConst] ros2-rcpputils-35da074/test/test_thread_safety_annotations.cpp:119:4: error: There is an unknown macro here somewhere. Configuration is required. If FakeLockGuard is a macro then please configure it. [unknownMacro] ros2-rcpputils-35da074/test/test_filesystem_helper.cpp:62:1: error: The one definition rule is violated, different classes/structs have the same name '__TestFilesystemHelper_join_path' [ctuOneDefinitionRuleViolation] ros2-rcpputils-35da074/test/test_filesystem_helper_std.cpp:51:1: note: The one definition rule is violated, different classes/structs have the same name '__TestFilesystemHelper_join_path' ros2-rcpputils-35da074/test/test_filesystem_helper.cpp:62:1: note: The one definition rule is violated, different classes/structs have the same name '__TestFilesystemHelper_join_path' ros2-rcpputils-35da074/test/test_filesystem_helper.cpp:91:1: error: The one definition rule is violated, different classes/structs have the same name '__TestFilesystemHelper_parent_path' [ctuOneDefinitionRuleViolation] ros2-rcpputils-35da074/test/test_filesystem_helper_std.cpp:80:1: note: The one definition rule is violated, different classes/structs have the same name '__TestFilesystemHelper_parent_path' ros2-rcpputils-35da074/test/test_filesystem_helper.cpp:91:1: note: The one definition rule is violated, different classes/structs have the same name '__TestFilesystemHelper_parent_path' ros2-rcpputils-35da074/test/test_filesystem_helper.cpp:137:1: error: The one definition rule is violated, different classes/structs have the same name '__TestFilesystemHelper_to_native_path' [ctuOneDefinitionRuleViolation] ros2-rcpputils-35da074/test/test_filesystem_helper_std.cpp:123:1: note: The one definition rule is violated, different classes/structs have the same name '__TestFilesystemHelper_to_native_path' ros2-rcpputils-35da074/test/test_filesystem_helper.cpp:137:1: note: The one definition rule is violated, different classes/structs have the same name '__TestFilesystemHelper_to_native_path' ros2-rcpputils-35da074/test/test_filesystem_helper.cpp:173:1: error: The one definition rule is violated, different classes/structs have the same name '__TestFilesystemHelper_is_absolute' [ctuOneDefinitionRuleViolation] ros2-rcpputils-35da074/test/test_filesystem_helper_std.cpp:151:1: note: The one definition rule is violated, different classes/structs have the same name '__TestFilesystemHelper_is_absolute' ros2-rcpputils-35da074/test/test_filesystem_helper.cpp:173:1: note: The one definition rule is violated, different classes/structs have the same name '__TestFilesystemHelper_is_absolute' ros2-rcpputils-35da074/test/test_filesystem_helper.cpp:232:1: error: The one definition rule is violated, different classes/structs have the same name '__TestFilesystemHelper_correct_extension' [ctuOneDefinitionRuleViolation] ros2-rcpputils-35da074/test/test_filesystem_helper_std.cpp:210:1: note: The one definition rule is violated, different classes/structs have the same name '__TestFilesystemHelper_correct_extension' ros2-rcpputils-35da074/test/test_filesystem_helper.cpp:232:1: note: The one definition rule is violated, different classes/structs have the same name '__TestFilesystemHelper_correct_extension' ros2-rcpputils-35da074/test/test_filesystem_helper.cpp:251:1: error: The one definition rule is violated, different classes/structs have the same name '__TestFilesystemHelper_is_empty' [ctuOneDefinitionRuleViolation] ros2-rcpputils-35da074/test/test_filesystem_helper_std.cpp:229:1: note: The one definition rule is violated, different classes/structs have the same name '__TestFilesystemHelper_is_empty' ros2-rcpputils-35da074/test/test_filesystem_helper.cpp:251:1: note: The one definition rule is violated, different classes/structs have the same name '__TestFilesystemHelper_is_empty' ros2-rcpputils-35da074/test/test_filesystem_helper.cpp:260:1: error: The one definition rule is violated, different classes/structs have the same name '__TestFilesystemHelper_exists' [ctuOneDefinitionRuleViolation] ros2-rcpputils-35da074/test/test_filesystem_helper_std.cpp:238:1: note: The one definition rule is violated, different classes/structs have the same name '__TestFilesystemHelper_exists' ros2-rcpputils-35da074/test/test_filesystem_helper.cpp:260:1: note: The one definition rule is violated, different classes/structs have the same name '__TestFilesystemHelper_exists' ros2-rcpputils-35da074/test/test_filesystem_helper.cpp:291:1: error: The one definition rule is violated, different classes/structs have the same name '__TestFilesystemHelper_filesystem_manipulation' [ctuOneDefinitionRuleViolation] ros2-rcpputils-35da074/test/test_filesystem_helper_std.cpp:269:1: note: The one definition rule is violated, different classes/structs have the same name '__TestFilesystemHelper_filesystem_manipulation' ros2-rcpputils-35da074/test/test_filesystem_helper.cpp:291:1: note: The one definition rule is violated, different classes/structs have the same name '__TestFilesystemHelper_filesystem_manipulation' ros2-rcpputils-35da074/test/test_filesystem_helper.cpp:385:1: error: The one definition rule is violated, different classes/structs have the same name '__TestFilesystemHelper_remove_extension' [ctuOneDefinitionRuleViolation] ros2-rcpputils-35da074/test/test_filesystem_helper_std.cpp:365:1: note: The one definition rule is violated, different classes/structs have the same name '__TestFilesystemHelper_remove_extension' ros2-rcpputils-35da074/test/test_filesystem_helper.cpp:385:1: note: The one definition rule is violated, different classes/structs have the same name '__TestFilesystemHelper_remove_extension' ros2-rcpputils-35da074/test/test_filesystem_helper.cpp:392:1: error: The one definition rule is violated, different classes/structs have the same name '__TestFilesystemHelper_remove_extensions' [ctuOneDefinitionRuleViolation] ros2-rcpputils-35da074/test/test_filesystem_helper_std.cpp:372:1: note: The one definition rule is violated, different classes/structs have the same name '__TestFilesystemHelper_remove_extensions' ros2-rcpputils-35da074/test/test_filesystem_helper.cpp:392:1: note: The one definition rule is violated, different classes/structs have the same name '__TestFilesystemHelper_remove_extensions' ros2-rcpputils-35da074/test/test_filesystem_helper.cpp:399:1: error: The one definition rule is violated, different classes/structs have the same name '__TestFilesystemHelper_remove_extensions_overcount' [ctuOneDefinitionRuleViolation] ros2-rcpputils-35da074/test/test_filesystem_helper_std.cpp:379:1: note: The one definition rule is violated, different classes/structs have the same name '__TestFilesystemHelper_remove_extensions_overcount' ros2-rcpputils-35da074/test/test_filesystem_helper.cpp:399:1: note: The one definition rule is violated, different classes/structs have the same name '__TestFilesystemHelper_remove_extensions_overcount' ros2-rcpputils-35da074/test/test_filesystem_helper.cpp:406:1: error: The one definition rule is violated, different classes/structs have the same name '__TestFilesystemHelper_remove_extension_no_extension' [ctuOneDefinitionRuleViolation] ros2-rcpputils-35da074/test/test_filesystem_helper_std.cpp:386:1: note: The one definition rule is violated, different classes/structs have the same name '__TestFilesystemHelper_remove_extension_no_extension' ros2-rcpputils-35da074/test/test_filesystem_helper.cpp:406:1: note: The one definition rule is violated, different classes/structs have the same name '__TestFilesystemHelper_remove_extension_no_extension' ros2-rcpputils-35da074/test/test_filesystem_helper.cpp:413:1: error: The one definition rule is violated, different classes/structs have the same name '__TestFilesystemHelper_get_cwd' [ctuOneDefinitionRuleViolation] ros2-rcpputils-35da074/test/test_filesystem_helper_std.cpp:393:1: note: The one definition rule is violated, different classes/structs have the same name '__TestFilesystemHelper_get_cwd' ros2-rcpputils-35da074/test/test_filesystem_helper.cpp:413:1: note: The one definition rule is violated, different classes/structs have the same name '__TestFilesystemHelper_get_cwd' ros2-rcpputils-35da074/test/test_filesystem_helper.cpp:420:1: error: The one definition rule is violated, different classes/structs have the same name '__TestFilesystemHelper_parent_absolute_path' [ctuOneDefinitionRuleViolation] ros2-rcpputils-35da074/test/test_filesystem_helper_std.cpp:400:1: note: The one definition rule is violated, different classes/structs have the same name '__TestFilesystemHelper_parent_absolute_path' ros2-rcpputils-35da074/test/test_filesystem_helper.cpp:420:1: note: The one definition rule is violated, different classes/structs have the same name '__TestFilesystemHelper_parent_absolute_path' ros2-rcpputils-35da074/test/test_filesystem_helper.cpp:461:1: error: The one definition rule is violated, different classes/structs have the same name '__TestFilesystemHelper_create_temporary_directory' [ctuOneDefinitionRuleViolation] ros2-rcpputils-35da074/test/test_filesystem_helper_std.cpp:421:1: note: The one definition rule is violated, different classes/structs have the same name '__TestFilesystemHelper_create_temporary_directory' ros2-rcpputils-35da074/test/test_filesystem_helper.cpp:461:1: note: The one definition rule is violated, different classes/structs have the same name '__TestFilesystemHelper_create_temporary_directory' ros2-rcpputils-35da074/test/test_filesystem_helper.cpp:534:1: error: The one definition rule is violated, different classes/structs have the same name '__TestFilesystemHelper_equal_operators' [ctuOneDefinitionRuleViolation] ros2-rcpputils-35da074/test/test_filesystem_helper_std.cpp:489:1: note: The one definition rule is violated, different classes/structs have the same name '__TestFilesystemHelper_equal_operators' ros2-rcpputils-35da074/test/test_filesystem_helper.cpp:534:1: note: The one definition rule is violated, different classes/structs have the same name '__TestFilesystemHelper_equal_operators' diff: DONE