2026-05-03 22:08 ftp://ftp.de.debian.org/debian/pool/main/o/oar/oar_2.6.1.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=boost --library=cppunit --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: e5c4a73 (2026-05-01 11:10:43 +0200) count: 52 50 elapsed-time: 0.3 0.2 head-timing-info: old-timing-info: head results: oar-2.6.1/sources/core/tools/oarcgdev/oarcgdev-ebpf.c:54:17: error: There is an unknown macro here somewhere. Configuration is required. If SEC is a macro then please configure it. [unknownMacro] oar-2.6.1/sources/core/tools/trace_collect/ztracempi.c:372:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RTLD_NEXT [valueFlowBailoutIncompleteVar] oar-2.6.1/sources/core/tools/trace_collect/ztracempi.c:252:8: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] oar-2.6.1/sources/core/tools/trace_collect/ztracempi.c:253:8: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] oar-2.6.1/sources/core/tools/trace_collect/ztracempi.c:245:10: style: Condition 'lock==0' is always true [knownConditionTrueFalse] oar-2.6.1/sources/core/tools/trace_collect/ztracempi.c:243:15: note: Assignment 'lock=0', assigned value is 0 oar-2.6.1/sources/core/tools/trace_collect/ztracempi.c:245:10: note: Condition 'lock==0' is always true oar-2.6.1/sources/core/tools/trace_collect/ztracempi.c:174:50: warning: %llu in format string (no. 2) requires 'unsigned long long' but the argument type is 'long long'. [invalidPrintfArgType_uint] oar-2.6.1/sources/core/tools/trace_collect/ztracempi.c:265:12: warning: If resource allocation fails, then there is a possible null pointer dereference: trace [nullPointerOutOfResources] oar-2.6.1/sources/core/tools/trace_collect/ztracempi.c:263:15: note: Assuming allocation function fails oar-2.6.1/sources/core/tools/trace_collect/ztracempi.c:263:15: note: Assignment 'trace=fopen(buf,"w")', assigned value is 0 oar-2.6.1/sources/core/tools/trace_collect/ztracempi.c:265:12: note: Null pointer dereference oar-2.6.1/sources/core/tools/trace_collect/ztracempi.c:266:12: warning: If resource allocation fails, then there is a possible null pointer dereference: trace [nullPointerOutOfResources] oar-2.6.1/sources/core/tools/trace_collect/ztracempi.c:263:15: note: Assuming allocation function fails oar-2.6.1/sources/core/tools/trace_collect/ztracempi.c:263:15: note: Assignment 'trace=fopen(buf,"w")', assigned value is 0 oar-2.6.1/sources/core/tools/trace_collect/ztracempi.c:266:12: note: Null pointer dereference oar-2.6.1/sources/core/tools/trace_collect/ztracempi.c:268:12: warning: If resource allocation fails, then there is a possible null pointer dereference: trace [nullPointerOutOfResources] oar-2.6.1/sources/core/tools/trace_collect/ztracempi.c:263:15: note: Assuming allocation function fails oar-2.6.1/sources/core/tools/trace_collect/ztracempi.c:263:15: note: Assignment 'trace=fopen(buf,"w")', assigned value is 0 oar-2.6.1/sources/core/tools/trace_collect/ztracempi.c:268:12: note: Null pointer dereference oar-2.6.1/sources/core/tools/trace_collect/ztracempi.c:269:10: warning: If resource allocation fails, then there is a possible null pointer dereference: trace [nullPointerOutOfResources] oar-2.6.1/sources/core/tools/trace_collect/ztracempi.c:263:15: note: Assuming allocation function fails oar-2.6.1/sources/core/tools/trace_collect/ztracempi.c:263:15: note: Assignment 'trace=fopen(buf,"w")', assigned value is 0 oar-2.6.1/sources/core/tools/trace_collect/ztracempi.c:269:10: note: Null pointer dereference oar-2.6.1/sources/core/tools/trace_collect/ztracempi.c:270:12: warning: If resource allocation fails, then there is a possible null pointer dereference: trace [nullPointerOutOfResources] oar-2.6.1/sources/core/tools/trace_collect/ztracempi.c:263:15: note: Assuming allocation function fails oar-2.6.1/sources/core/tools/trace_collect/ztracempi.c:263:15: note: Assignment 'trace=fopen(buf,"w")', assigned value is 0 oar-2.6.1/sources/core/tools/trace_collect/ztracempi.c:270:12: note: Null pointer dereference oar-2.6.1/sources/core/tools/trace_collect/ztracempi.c:271:12: warning: If resource allocation fails, then there is a possible null pointer dereference: trace [nullPointerOutOfResources] oar-2.6.1/sources/core/tools/trace_collect/ztracempi.c:263:15: note: Assuming allocation function fails oar-2.6.1/sources/core/tools/trace_collect/ztracempi.c:263:15: note: Assignment 'trace=fopen(buf,"w")', assigned value is 0 oar-2.6.1/sources/core/tools/trace_collect/ztracempi.c:271:12: note: Null pointer dereference oar-2.6.1/sources/core/tools/trace_collect/ztracempi.c:253:7: style: Variable 'pch' is reassigned a value before the old one has been used. [redundantAssignment] oar-2.6.1/sources/core/tools/trace_collect/ztracempi.c:252:7: note: pch is assigned oar-2.6.1/sources/core/tools/trace_collect/ztracempi.c:253:7: note: pch is overwritten oar-2.6.1/sources/core/tools/trace_collect/ztracempi.c:168:31: style:inconclusive: Function 'printstats' argument 1 names different: declaration '' definition 'start'. [funcArgNamesDifferentUnnamed] oar-2.6.1/sources/core/tools/trace_collect/ztracempi.c:168:45: style:inconclusive: Function 'printstats' argument 2 names different: declaration '' definition 'end'. [funcArgNamesDifferentUnnamed] oar-2.6.1/sources/core/tools/trace_collect/ztracempi.c:242:9: style: Variable 'pch' can be declared as pointer to const [constVariablePointer] oar-2.6.1/sources/core/tools/trace_collect/ztracempi.c:30:9: style: struct member 'reg_trace::seconds' is never used. [unusedStructMember] oar-2.6.1/sources/core/tools/trace_collect/ztracempi.c:31:9: style: struct member 'reg_trace::useconds' is never used. [unusedStructMember] oar-2.6.1/sources/core/tools/trace_collect/ztracempi.c:32:8: style: struct member 'reg_trace::call' is never used. [unusedStructMember] oar-2.6.1/sources/core/tools/trace_collect/ztracempi.c:33:5: style: struct member 'reg_trace::parameter' is never used. [unusedStructMember] oar-2.6.1/sources/core/tools/trace_collect/ztracempi.c:301:12: style: Variable 'rank' is assigned a value that is never used. [unreadVariable] oar-2.6.1/sources/core/tools/trace_collect/ztracempi.c:302:12: style: Variable 'size' is assigned a value that is never used. [unreadVariable] oar-2.6.1/sources/core/tools/trace_collect/ztracempi.c:373:12: style: Unused variable: error [unusedVariable] oar-2.6.1/sources/extra/cpp-scheduler/DBTests/qttest.cc:23:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] oar-2.6.1/sources/extra/cpp-scheduler/DBTests/qttest.cc:23:3: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] oar-2.6.1/sources/extra/cpp-scheduler/Oar_resource_tree.H:38:3: style: Class 'TreeNode' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] oar-2.6.1/sources/extra/cpp-scheduler/Oar_resource_tree.H:39:37: style: Parameter 'child' can be declared as pointer to const [constParameterPointer] oar-2.6.1/sources/extra/cpp-scheduler/Gantt_hole_storage.cc:205:12: error: syntax error [syntaxError] oar-2.6.1/sources/extra/cpp-scheduler/Oar_conflib.cc:94:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] oar-2.6.1/sources/extra/cpp-scheduler/Oar_conflib.cc:168:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] oar-2.6.1/sources/extra/cpp-scheduler/Oar_conflib.cc:69:32: performance: Function parameter 'file' should be passed by const reference. [passedByValue] oar-2.6.1/sources/extra/cpp-scheduler/Oar_conflib.cc:127:57: performance: Function parameter 'defval' should be passed by const reference. [passedByValue] oar-2.6.1/sources/extra/cpp-scheduler/Oar_conflib.cc:171:7: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] oar-2.6.1/sources/extra/cpp-scheduler/Oar_iolib.cc:247:44: error: Unmatched ')'. Configuration: '__GNUC__=1'. [syntaxError] oar-2.6.1/sources/extra/cpp-scheduler/Oar_resource_tree.cc:184:19: performance: Function parameter 'resource_name' should be passed by const reference. [passedByValue] oar-2.6.1/sources/extra/cpp-scheduler/Oar_resource_tree.cc:274:42: style: Parameter 'tree_ref' can be declared as pointer to const [constParameterPointer] oar-2.6.1/sources/extra/cpp-scheduler/Oar_resource_tree.cc:294:38: style: Parameter 'tree_ref' can be declared as pointer to const [constParameterPointer] oar-2.6.1/sources/extra/cpp-scheduler/Oar_resource_tree.cc:316:39: style: Parameter 'tree_ref' can be declared as pointer to const [constParameterPointer] oar-2.6.1/sources/extra/cpp-scheduler/Oar_resource_tree.cc:372:32: style: Parameter 'tree_ref' can be declared as pointer to const [constParameterPointer] oar-2.6.1/sources/extra/cpp-scheduler/Oar_resource_tree.cc:398:49: style: Parameter 'tree_ref' can be declared as pointer to const [constParameterPointer] oar-2.6.1/sources/extra/cpp-scheduler/Oar_resource_tree.cc:424:50: style: Parameter 'tree_ref' can be declared as pointer to const [constParameterPointer] oar-2.6.1/sources/extra/cpp-scheduler/Oar_resource_tree.cc:450:43: style: Parameter 'tree_ref' can be declared as pointer to const [constParameterPointer] oar-2.6.1/sources/extra/cpp-scheduler/Oar_resource_tree.cc:478:33: style: Parameter 'tree_ref' can be declared as pointer to const [constParameterPointer] oar-2.6.1/sources/extra/cpp-scheduler/Oar_resource_tree.cc:505:42: style: Parameter 'tree_ref' can be declared as pointer to const [constParameterPointer] oar-2.6.1/sources/extra/cpp-scheduler/Oar_resource_tree.cc:532:42: style: Parameter 'tree_ref' can be declared as pointer to const [constParameterPointer] oar-2.6.1/sources/extra/cpp-scheduler/Oar_sched_gantt_with_timesharing_and_fairsharing.cc:644:12: error: Unmatched '('. Configuration: '__GNUC__=1'. [syntaxError] oar-2.6.1/sources/extra/cpp-scheduler/UnitaryTests/AllTest.cc:15:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] oar-2.6.1/sources/extra/cpp-scheduler/UnitaryTests/TestResourceTree.cc:11:24: style: Either there is a missing 'override', or the member function 'TestResourceTree::setUp' can be static. [functionStatic] oar-2.6.1/sources/extra/cpp-scheduler/UnitaryTests/TestResourceTree.H:15:8: note: Either there is a missing 'override', or the member function 'TestResourceTree::setUp' can be static. oar-2.6.1/sources/extra/cpp-scheduler/UnitaryTests/TestResourceTree.cc:11:24: note: Either there is a missing 'override', or the member function 'TestResourceTree::setUp' can be static. oar-2.6.1/sources/extra/cpp-scheduler/UnitaryTests/TestResourceTree.cc:15:24: style: Either there is a missing 'override', or the member function 'TestResourceTree::tearDown' can be static. [functionStatic] oar-2.6.1/sources/extra/cpp-scheduler/UnitaryTests/TestResourceTree.H:16:8: note: Either there is a missing 'override', or the member function 'TestResourceTree::tearDown' can be static. oar-2.6.1/sources/extra/cpp-scheduler/UnitaryTests/TestResourceTree.cc:15:24: note: Either there is a missing 'override', or the member function 'TestResourceTree::tearDown' can be static. oar-2.6.1/sources/extra/cpp-scheduler/UnitaryTests/TestResourceTree.cc:63:17: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] oar-2.6.1/sources/extra/cpp-scheduler/UnitaryTests/TestResourceTree.cc:66:44: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] oar-2.6.1/sources/extra/cpp-scheduler/UnitaryTests/TestResourceTree.cc:82:3: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] diff: head oar-2.6.1/sources/core/tools/trace_collect/ztracempi.c:168:31: style:inconclusive: Function 'printstats' argument 1 names different: declaration '' definition 'start'. [funcArgNamesDifferentUnnamed] head oar-2.6.1/sources/core/tools/trace_collect/ztracempi.c:168:45: style:inconclusive: Function 'printstats' argument 2 names different: declaration '' definition 'end'. [funcArgNamesDifferentUnnamed] DONE