2022-06-25 11:37 ftp://ftp.de.debian.org/debian/pool/main/s/sysprof/sysprof_3.44.0.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: 63e567e (2022-06-25 08:38:17 +0200) count: 99 99 elapsed-time: 1.4 1.4 head-timing-info: Overall time: 0s old-timing-info: Overall time: 0s head results: sysprof-3.44.0/src/libsysprof-capture/sysprof-capture-types.h:93:0: error: #error Unknown UINTPTR_MAX [preprocessorErrorDirective] sysprof-3.44.0/src/libsysprof-capture/sysprof-platform.c:73:14: style: Condition 'tmpdir==NULL' is always true [knownConditionTrueFalse] sysprof-3.44.0/src/libsysprof-capture/sysprof-platform.c:71:24: note: Assignment 'tmpdir=NULL', assigned value is 0 sysprof-3.44.0/src/libsysprof-capture/sysprof-platform.c:73:14: note: Condition 'tmpdir==NULL' is always true sysprof-3.44.0/src/libsysprof-capture/sysprof-platform.c:99:35: style:inconclusive: Function 'sysprof_memfd_create' argument 1 names different: declaration 'desc' definition 'name'. [funcArgNamesDifferent] sysprof-3.44.0/src/libsysprof-capture/sysprof-platform.h:68:41: note: Function 'sysprof_memfd_create' argument 1 names different: declaration 'desc' definition 'name'. sysprof-3.44.0/src/libsysprof-capture/sysprof-platform.c:99:35: note: Function 'sysprof_memfd_create' argument 1 names different: declaration 'desc' definition 'name'. sysprof-3.44.0/src/libsysprof-ui/sysprof-visualizer.h:24:0: error: #error "Only can be included directly." [preprocessorErrorDirective] sysprof-3.44.0/src/libsysprof-ui/sysprof-page.h:24:0: error: #error "Only can be included directly." [preprocessorErrorDirective] sysprof-3.44.0/src/libsysprof-ui/sysprof-color-cycle.c:101:7: error: syntax error [syntaxError] sysprof-3.44.0/src/libsysprof-capture/mapped-ring-buffer.c:138:3: error: Memory leak: second [memleak] sysprof-3.44.0/src/libsysprof-ui/sysprof-theme-manager.h:24:0: error: #error "Only can be included directly." [preprocessorErrorDirective] sysprof-3.44.0/src/libsysprof-ui/sysprof-environ-variable.c:30:12: style: struct member '_SysprofEnvironVariable::key' is never used. [unusedStructMember] sysprof-3.44.0/src/libsysprof-ui/sysprof-environ-variable.c:31:12: style: struct member '_SysprofEnvironVariable::value' is never used. [unusedStructMember] sysprof-3.44.0/src/libsysprof-ui/sysprof-environ-editor-row.c:31:27: style: struct member '_SysprofEnvironEditorRow::variable' is never used. [unusedStructMember] sysprof-3.44.0/src/libsysprof-ui/sysprof-environ-editor-row.c:33:27: style: struct member '_SysprofEnvironEditorRow::key_entry' is never used. [unusedStructMember] sysprof-3.44.0/src/libsysprof-ui/sysprof-environ-editor-row.c:34:27: style: struct member '_SysprofEnvironEditorRow::value_entry' is never used. [unusedStructMember] sysprof-3.44.0/src/libsysprof-ui/sysprof-environ-editor-row.c:35:27: style: struct member '_SysprofEnvironEditorRow::delete_button' is never used. [unusedStructMember] sysprof-3.44.0/src/libsysprof-ui/sysprof-environ-editor-row.c:37:27: style: struct member '_SysprofEnvironEditorRow::key_binding' is never used. [unusedStructMember] sysprof-3.44.0/src/libsysprof-ui/sysprof-environ-editor-row.c:38:27: style: struct member '_SysprofEnvironEditorRow::value_binding' is never used. [unusedStructMember] sysprof-3.44.0/src/libsysprof-ui/sysprof-environ.c:33:14: style: struct member '_SysprofEnviron::variables' is never used. [unusedStructMember] sysprof-3.44.0/src/libsysprof-ui/sysprof-marks-model.c:330:7: error: syntax error [syntaxError] sysprof-3.44.0/src/libsysprof-ui/sysprof-log-model.c:130:49: style: Parameter 'parent' can be declared as pointer to const [constParameter] sysprof-3.44.0/src/libsysprof-ui/sysprof-log-model.c:148:50: style: Parameter 'iter' can be declared as pointer to const [constParameter] sysprof-3.44.0/src/libsysprof-ui/sysprof-log-model.c:34:17: style: struct member '_SysprofLogModel::chunks' is never used. [unusedStructMember] sysprof-3.44.0/src/libsysprof-ui/sysprof-log-model.c:35:17: style: struct member '_SysprofLogModel::items' is never used. [unusedStructMember] sysprof-3.44.0/src/libsysprof-ui/sysprof-model-filter.h:24:0: error: #error "Only can be included directly." [preprocessorErrorDirective] sysprof-3.44.0/src/libsysprof-ui/sysprof-process-model-row.h:24:0: error: #error "Only can be included directly." [preprocessorErrorDirective] sysprof-3.44.0/src/libsysprof-ui/sysprof-time-label.c:31:13: style: struct member '_SysprofTimeLabel::minutes' is never used. [unusedStructMember] sysprof-3.44.0/src/libsysprof-ui/sysprof-time-label.c:32:13: style: struct member '_SysprofTimeLabel::seconds' is never used. [unusedStructMember] sysprof-3.44.0/src/libsysprof-ui/sysprof-visualizer-group.h:24:0: error: #error "Only can be included directly." [preprocessorErrorDirective] sysprof-3.44.0/src/libsysprof-ui/sysprof-scrollmap.c:36:17: style: struct member '_SysprofScrollmap::timings' is never used. [unusedStructMember] sysprof-3.44.0/src/libsysprof-ui/sysprof-scrollmap.c:37:17: style: struct member '_SysprofScrollmap::buckets' is never used. [unusedStructMember] sysprof-3.44.0/src/libsysprof-ui/sysprof-scrollmap.c:38:17: style: struct member '_SysprofScrollmap::cancellable' is never used. [unusedStructMember] sysprof-3.44.0/src/libsysprof/mapped-ring-buffer-source.h:24:0: error: #error "Only can be included directly." [preprocessorErrorDirective] sysprof-3.44.0/src/libsysprof/preload/sysprof-memory-collector.c:73:0: error: #error Your platform/compiler is missing constructor support [preprocessorErrorDirective] sysprof-3.44.0/src/libsysprof/preload/sysprof-speedtrack-collector.c:69:3: error: syntax error [syntaxError] sysprof-3.44.0/src/libsysprof-ui/sysprof-zoom-manager.c:38:18: style: struct member '_SysprofZoomManager::adjustment' is never used. [unusedStructMember] sysprof-3.44.0/src/libsysprof-ui/sysprof-zoom-manager.c:39:23: style: struct member '_SysprofZoomManager::actions' is never used. [unusedStructMember] sysprof-3.44.0/src/libsysprof/binfile.c:520:42: style:inconclusive: Function 'bin_symbol_get_name' argument 1 names different: declaration 'bin_file' definition 'file'. [funcArgNamesDifferent] sysprof-3.44.0/src/libsysprof/binfile.h:42:72: note: Function 'bin_symbol_get_name' argument 1 names different: declaration 'bin_file' definition 'file'. sysprof-3.44.0/src/libsysprof/binfile.c:520:42: note: Function 'bin_symbol_get_name' argument 1 names different: declaration 'bin_file' definition 'file'. sysprof-3.44.0/src/libsysprof/sysprof-source.h:24:0: error: #error "Only can be included directly." [preprocessorErrorDirective] sysprof-3.44.0/src/libsysprof/binfile.c:539:45: style:inconclusive: Function 'bin_symbol_get_address' argument 1 names different: declaration 'bin_file' definition 'file'. [funcArgNamesDifferent] sysprof-3.44.0/src/libsysprof/binfile.h:44:72: note: Function 'bin_symbol_get_address' argument 1 names different: declaration 'bin_file' definition 'file'. sysprof-3.44.0/src/libsysprof/binfile.c:539:45: note: Function 'bin_symbol_get_address' argument 1 names different: declaration 'bin_file' definition 'file'. sysprof-3.44.0/src/libsysprof/binfile.c:558:51: style:inconclusive: Function 'bin_symbol_get_address_range' argument 1 names different: declaration 'bin_file' definition 'file'. [funcArgNamesDifferent] sysprof-3.44.0/src/libsysprof/binfile.h:46:72: note: Function 'bin_symbol_get_address_range' argument 1 names different: declaration 'bin_file' definition 'file'. sysprof-3.44.0/src/libsysprof/binfile.c:558:51: note: Function 'bin_symbol_get_address_range' argument 1 names different: declaration 'bin_file' definition 'file'. sysprof-3.44.0/src/libsysprof/sysprof-capture-gobject.h:24:0: error: #error "Only can be included directly." [preprocessorErrorDirective] sysprof-3.44.0/src/libsysprof/sysprof-callgraph-profile.h:24:0: error: #error "Only can be included directly." [preprocessorErrorDirective] sysprof-3.44.0/src/libsysprof/sysprof-symbol-resolver.h:24:0: error: #error "Only can be included directly." [preprocessorErrorDirective] sysprof-3.44.0/src/libsysprof/sysprof-elf-symbol-resolver.h:24:0: error: #error "Only can be included directly." [preprocessorErrorDirective] sysprof-3.44.0/src/libsysprof/elfparser.c:302:30: style:inconclusive: Function 'elf_parser_new' argument 2 names different: declaration 'err' definition 'error'. [funcArgNamesDifferent] sysprof-3.44.0/src/libsysprof/elfparser.h:31:58: note: Function 'elf_parser_new' argument 2 names different: declaration 'err' definition 'error'. sysprof-3.44.0/src/libsysprof/elfparser.c:302:30: note: Function 'elf_parser_new' argument 2 names different: declaration 'err' definition 'error'. sysprof-3.44.0/src/libsysprof/sysprof-hostinfo-source.h:24:0: error: #error "Only can be included directly." [preprocessorErrorDirective] sysprof-3.44.0/src/libsysprof/sysprof-kernel-symbol.h:24:0: error: #error "Only can be included directly." [preprocessorErrorDirective] sysprof-3.44.0/src/libsysprof/sysprof-local-profiler.h:24:0: error: #error "Only can be included directly." [preprocessorErrorDirective] sysprof-3.44.0/src/libsysprof/sysprof-memory-source.h:24:0: error: #error "Only can be included directly." [preprocessorErrorDirective] sysprof-3.44.0/src/libsysprof/sysprof-capture-autocleanups.h:27:0: error: #error "Only can be included directly." [preprocessorErrorDirective] sysprof-3.44.0/src/libsysprof/sysprof-mountinfo.h:39:1: error: There is an unknown macro here somewhere. Configuration is required. If G_DEFINE_AUTOPTR_CLEANUP_FUNC is a macro then please configure it. [unknownMacro] sysprof-3.44.0/src/libsysprof/sysprof-helpers.c:36:15: style: struct member '_SysprofHelpers::proxy' is never used. [unusedStructMember] sysprof-3.44.0/src/libsysprof/sysprof-perf-counter.h:24:0: error: #error "Only can be included directly." [preprocessorErrorDirective] sysprof-3.44.0/src/libsysprof/sysprof-proc-source.h:24:0: error: #error "Only can be included directly." [preprocessorErrorDirective] sysprof-3.44.0/src/libsysprof/sysprof-process-model-item.h:24:0: error: #error "Only can be included directly." [preprocessorErrorDirective] sysprof-3.44.0/src/libsysprof/sysprof-process-model.h:24:0: error: #error "Only can be included directly." [preprocessorErrorDirective] sysprof-3.44.0/src/libsysprof/sysprof-profile.h:24:0: error: #error "Only can be included directly." [preprocessorErrorDirective] sysprof-3.44.0/src/libsysprof/sysprof-profiler.h:24:0: error: #error "Only can be included directly." [preprocessorErrorDirective] sysprof-3.44.0/src/libsysprof/sysprof-selection.h:24:0: error: #error "Only can be included directly." [preprocessorErrorDirective] sysprof-3.44.0/src/libsysprof/sysprof-spawnable.c:45:1: error: There is an unknown macro here somewhere. Configuration is required. If G_DEFINE_TYPE is a macro then please configure it. [unknownMacro] sysprof-3.44.0/src/libsysprof/sysprof-capture-autocleanups.h:37:1: error: There is an unknown macro here somewhere. Configuration is required. If G_DEFINE_AUTOPTR_CLEANUP_FUNC is a macro then please configure it. [unknownMacro] sysprof-3.44.0/src/sysprof/sysprof-window.c:41:1: error: There is an unknown macro here somewhere. Configuration is required. If G_DEFINE_TYPE is a macro then please configure it. [unknownMacro] sysprof-3.44.0/src/sysprof/sysprof-window-settings.c:53:64: style: Parameter 'event' can be declared as pointer to const [constParameter] sysprof-3.44.0/src/sysprof/sysprof-application.c:153:30: style: Parameter 'variant' can be declared as pointer to const [constParameter] sysprof-3.44.0/src/sysprof/sysprof-application.c:167:31: style: Parameter 'variant' can be declared as pointer to const [constParameter] sysprof-3.44.0/src/sysprof/sysprof-application.c:237:36: style: Parameter 'variant' can be declared as pointer to const [constParameter] sysprof-3.44.0/src/sysprof/sysprof-application.c:253:38: style: Parameter 'variant' can be declared as pointer to const [constParameter] sysprof-3.44.0/src/sysprof/sysprof-application.c:279:43: style: Parameter 'variant' can be declared as pointer to const [constParameter] sysprof-3.44.0/src/stackstash.c:276:9: error: Address of local auto-variable assigned to a function parameter. [autoVariables] sysprof-3.44.0/src/stackstash.c:339:41: style:inconclusive: Function 'stack_stash_find_node' argument 2 names different: declaration 'address' definition 'data'. [funcArgNamesDifferent] sysprof-3.44.0/src/stackstash.h:75:61: note: Function 'stack_stash_find_node' argument 2 names different: declaration 'address' definition 'data'. sysprof-3.44.0/src/stackstash.c:339:41: note: Function 'stack_stash_find_node' argument 2 names different: declaration 'address' definition 'data'. sysprof-3.44.0/src/libsysprof/sysprof-kallsyms.h:37:1: error: There is an unknown macro here somewhere. Configuration is required. If G_DEFINE_AUTOPTR_CLEANUP_FUNC is a macro then please configure it. [unknownMacro] sysprof-3.44.0/src/sysprofd/ipc-rapl-profiler.c:42:25: style: struct member '_IpcRaplProfiler::counter_ids' is never used. [unusedStructMember] sysprof-3.44.0/src/sysprofd/ipc-rapl-profiler.c:43:25: style: struct member '_IpcRaplProfiler::turbostat' is never used. [unusedStructMember] sysprof-3.44.0/src/sysprofd/ipc-rapl-profiler.c:44:25: style: struct member '_IpcRaplProfiler::writer' is never used. [unusedStructMember] sysprof-3.44.0/src/tests/list-all-maps.c:113:3: error: syntax error [syntaxError] sysprof-3.44.0/src/tests/list-maps.c:73:21: style: Condition 'inode==(ino_t)-1' is always false [knownConditionTrueFalse] sysprof-3.44.0/src/tests/test-addr-map.c:34:22: error: syntax error [syntaxError] sysprof-3.44.0/src/tests/test-capture-cursor.c:56:25: error: syntax error [syntaxError] sysprof-3.44.0/src/tests/test-capture.c:60:67: error: syntax error [syntaxError] sysprof-3.44.0/src/tests/test-mapped-ring-buffer.c:14:24: error: syntax error [syntaxError] sysprof-3.44.0/src/tests/test-model-filter.c:71:24: error: syntax error [syntaxError] sysprof-3.44.0/src/tests/test-utils.c:31:28: error: syntax error [syntaxError] sysprof-3.44.0/src/tests/test-zoom.c:9:25: error: syntax error [syntaxError] sysprof-3.44.0/src/sysprofd/sysprof-turbostat.c:97:43: style: Parameter 'channel' can be declared as pointer to const [constParameter] sysprof-3.44.0/src/tools/sysprof-dump.c:121:31: warning: Either the condition 'pr==NULL' is redundant or there is possible null pointer dereference: pr. [nullPointerRedundantCheck] sysprof-3.44.0/src/tools/sysprof-dump.c:124:20: note: Assuming that condition 'pr==NULL' is not redundant sysprof-3.44.0/src/tools/sysprof-dump.c:121:31: note: Null pointer dereference sysprof-3.44.0/src/tools/sysprof-dump.c:122:41: warning: Either the condition 'pr==NULL' is redundant or there is possible null pointer dereference: pr. [nullPointerRedundantCheck] sysprof-3.44.0/src/tools/sysprof-dump.c:124:20: note: Assuming that condition 'pr==NULL' is not redundant sysprof-3.44.0/src/tools/sysprof-dump.c:122:41: note: Null pointer dereference sysprof-3.44.0/src/tools/sysprof-dump.c:234:80: warning: Either the condition 'pr==NULL' is redundant or there is possible null pointer dereference: pr. [nullPointerRedundantCheck] sysprof-3.44.0/src/tools/sysprof-dump.c:231:20: note: Assuming that condition 'pr==NULL' is not redundant sysprof-3.44.0/src/tools/sysprof-dump.c:234:80: note: Null pointer dereference sysprof-3.44.0/src/tools/sysprof-dump.c:84:14: style: Variable 'begin_time' is reassigned a value before the old one has been used. [redundantAssignment] sysprof-3.44.0/src/tools/sysprof-dump.c:79:14: note: begin_time is assigned sysprof-3.44.0/src/tools/sysprof-dump.c:84:14: note: begin_time is overwritten sysprof-3.44.0/src/tools/sysprof-cli.c:50:14: style: Variable 'count' is not assigned a value. [unassignedVariable] sysprof-3.44.0/src/tools/sysprof-cli.c:392:22: style: Variable 'child_argc' is assigned a value that is never used. [unreadVariable] sysprof-3.44.0/src/libsysprof/rax.c:896:16: warning: Assert statement calls a function which may have desired side effects: 'raxRemove'. [assertWithSideEffect] sysprof-3.44.0/src/libsysprof/rax.c:1544:9: style: Condition 'first' is always false [knownConditionTrueFalse] sysprof-3.44.0/src/libsysprof/rax.c:1511:41: note: Assignment 'first=0', assigned value is 0 sysprof-3.44.0/src/libsysprof/rax.c:1539:24: note: Assuming condition is false sysprof-3.44.0/src/libsysprof/rax.c:1544:9: note: Condition 'first' is always false sysprof-3.44.0/src/libsysprof/rax.c:1550:9: style: Condition 'last' is always false [knownConditionTrueFalse] sysprof-3.44.0/src/libsysprof/rax.c:1511:51: note: Assignment 'last=0', assigned value is 0 sysprof-3.44.0/src/libsysprof/rax.c:1539:24: note: Assuming condition is false sysprof-3.44.0/src/libsysprof/rax.c:1550:9: note: Condition 'last' is always false sysprof-3.44.0/src/libsysprof/rax.c:1894:5: warning: %d in format string (no. 5) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] sysprof-3.44.0/src/libsysprof/rax.c:1894:5: warning: %d in format string (no. 6) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] sysprof-3.44.0/src/libsysprof/rax.c:219:46: style: Parameter 'data' can be declared as pointer to const [constParameter] sysprof-3.44.0/src/libsysprof/rax.c:459:58: style: Parameter 's' can be declared as pointer to const [constParameter] sysprof-3.44.0/src/libsysprof/rax.c:320:17: warning: Size of pointer 'dst' used instead of size of its data. [pointerSize] sysprof-3.44.0/src/libsysprof/rax.c:349:13: warning: Size of pointer 'src' used instead of size of its data. [pointerSize] sysprof-3.44.0/src/libsysprof/rax.c:362:17: warning: Size of pointer 'src' used instead of size of its data. [pointerSize] diff: head sysprof-3.44.0/src/libsysprof-ui/sysprof-log-model.c:130:49: style: Parameter 'parent' can be declared as pointer to const [constParameter] 2.8 sysprof-3.44.0/src/libsysprof-ui/sysprof-log-model.c:130:49: style: Parameter 'parent' can be declared with const [constParameter] head sysprof-3.44.0/src/libsysprof-ui/sysprof-log-model.c:148:50: style: Parameter 'iter' can be declared as pointer to const [constParameter] 2.8 sysprof-3.44.0/src/libsysprof-ui/sysprof-log-model.c:148:50: style: Parameter 'iter' can be declared with const [constParameter] head sysprof-3.44.0/src/libsysprof/rax.c:219:46: style: Parameter 'data' can be declared as pointer to const [constParameter] 2.8 sysprof-3.44.0/src/libsysprof/rax.c:219:46: style: Parameter 'data' can be declared with const [constParameter] head sysprof-3.44.0/src/libsysprof/rax.c:459:58: style: Parameter 's' can be declared as pointer to const [constParameter] 2.8 sysprof-3.44.0/src/libsysprof/rax.c:459:58: style: Parameter 's' can be declared with const [constParameter] head sysprof-3.44.0/src/sysprof/sysprof-application.c:153:30: style: Parameter 'variant' can be declared as pointer to const [constParameter] 2.8 sysprof-3.44.0/src/sysprof/sysprof-application.c:153:30: style: Parameter 'variant' can be declared with const [constParameter] head sysprof-3.44.0/src/sysprof/sysprof-application.c:167:31: style: Parameter 'variant' can be declared as pointer to const [constParameter] 2.8 sysprof-3.44.0/src/sysprof/sysprof-application.c:167:31: style: Parameter 'variant' can be declared with const [constParameter] head sysprof-3.44.0/src/sysprof/sysprof-application.c:237:36: style: Parameter 'variant' can be declared as pointer to const [constParameter] 2.8 sysprof-3.44.0/src/sysprof/sysprof-application.c:237:36: style: Parameter 'variant' can be declared with const [constParameter] head sysprof-3.44.0/src/sysprof/sysprof-application.c:253:38: style: Parameter 'variant' can be declared as pointer to const [constParameter] 2.8 sysprof-3.44.0/src/sysprof/sysprof-application.c:253:38: style: Parameter 'variant' can be declared with const [constParameter] head sysprof-3.44.0/src/sysprof/sysprof-application.c:279:43: style: Parameter 'variant' can be declared as pointer to const [constParameter] 2.8 sysprof-3.44.0/src/sysprof/sysprof-application.c:279:43: style: Parameter 'variant' can be declared with const [constParameter] head sysprof-3.44.0/src/sysprof/sysprof-window-settings.c:53:64: style: Parameter 'event' can be declared as pointer to const [constParameter] 2.8 sysprof-3.44.0/src/sysprof/sysprof-window-settings.c:53:64: style: Parameter 'event' can be declared with const [constParameter] head sysprof-3.44.0/src/sysprofd/sysprof-turbostat.c:97:43: style: Parameter 'channel' can be declared as pointer to const [constParameter] 2.8 sysprof-3.44.0/src/sysprofd/sysprof-turbostat.c:97:43: style: Parameter 'channel' can be declared with const [constParameter] DONE