2026-05-03 12:15 ftp://ftp.de.debian.org/debian/pool/main/m/maxflow/maxflow_3.0.5.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --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: 87 88 elapsed-time: 0.4 0.3 head-timing-info: old-timing-info: head results: maxflow-3.0.5/maxflow/block.h:147:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable block [valueFlowBailoutIncompleteVar] maxflow-3.0.5/maxflow/block.h:273:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable block [valueFlowBailoutIncompleteVar] maxflow-3.0.5/maxflow/graph.h:484:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SOURCE [valueFlowBailoutIncompleteVar] maxflow-3.0.5/maxflow/block.h:130:2: warning: Member variable 'Block::scan_current_block' is not initialized in the constructor. [uninitMemberVar] maxflow-3.0.5/maxflow/block.h:130:2: warning: Member variable 'Block::scan_current_data' is not initialized in the constructor. [uninitMemberVar] maxflow-3.0.5/maxflow/graph.cpp:34:38: warning: Member variable 'Graph::changed_list' is not initialized in the constructor. [uninitMemberVar] maxflow-3.0.5/maxflow/graph.cpp:34:38: warning: Member variable 'Graph::queue_first' is not initialized in the constructor. [uninitMemberVar] maxflow-3.0.5/maxflow/graph.cpp:34:38: warning: Member variable 'Graph::queue_last' is not initialized in the constructor. [uninitMemberVar] maxflow-3.0.5/maxflow/graph.cpp:34:38: warning: Member variable 'Graph::orphan_first' is not initialized in the constructor. [uninitMemberVar] maxflow-3.0.5/maxflow/graph.cpp:34:38: warning: Member variable 'Graph::orphan_last' is not initialized in the constructor. [uninitMemberVar] maxflow-3.0.5/maxflow/graph.cpp:34:38: warning: Member variable 'Graph::TIME' is not initialized in the constructor. [uninitMemberVar] maxflow-3.0.5/maxflow/block.h:198:8: style: The member function 'maxflow::Block::ScanNext' can be static. [functionStatic] maxflow-3.0.5/maxflow/graph.h:437:91: style: The member function 'maxflow::Graph::get_next_arc' can be static. [functionStatic] maxflow-3.0.5/maxflow/graph.h:181:9: note: The member function 'maxflow::Graph::get_next_arc' can be static. maxflow-3.0.5/maxflow/graph.h:437:91: note: The member function 'maxflow::Graph::get_next_arc' can be static. maxflow-3.0.5/maxflow/graph.h:184:6: style:inconclusive: Technically the member function 'maxflow::Graph::get_node_num' can be const. [functionConst] maxflow-3.0.5/maxflow/graph.h:185:6: style:inconclusive: Technically the member function 'maxflow::Graph::get_arc_num' can be const. [functionConst] maxflow-3.0.5/maxflow/graph.cpp:63:7: warning: Class 'Graph' does not have a copy constructor which is recommended since it has dynamic memory/resource management. [noCopyConstructor] maxflow-3.0.5/maxflow/graph.cpp:63:7: warning: Class 'Graph' does not have a operator= which is recommended since it has dynamic memory/resource management. [noOperatorEq] maxflow-3.0.5/maxflow/block.h:130:2: style: Class 'Block' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] maxflow-3.0.5/maxflow/block.h:260:2: style: Class 'DBlock' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] maxflow-3.0.5/maxflow/graph.cpp:37:4: warning: Either the condition 'error_function' is redundant or there is possible null pointer dereference: error_function. [nullPointerRedundantCheck] maxflow-3.0.5/maxflow/graph.cpp:44:29: note: Assuming that condition 'error_function' is not redundant maxflow-3.0.5/maxflow/graph.cpp:37:4: note: Null pointer dereference maxflow-3.0.5/maxflow/graph.cpp:42:10: style: C-style pointer casting [cstyleCast] maxflow-3.0.5/maxflow/graph.cpp:43:9: style: C-style pointer casting [cstyleCast] maxflow-3.0.5/maxflow/graph.cpp:92:10: style: C-style pointer casting [cstyleCast] maxflow-3.0.5/maxflow/graph.cpp:121:9: style: C-style pointer casting [cstyleCast] maxflow-3.0.5/maxflow/block.h:133:68: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] maxflow-3.0.5/maxflow/block.h:147:19: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] maxflow-3.0.5/maxflow/block.h:263:69: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] maxflow-3.0.5/maxflow/block.h:273:12: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] maxflow-3.0.5/maxflow/block.h:284:10: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] maxflow-3.0.5/maxflow/block.h:290:4: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] maxflow-3.0.5/maxflow/block.h:291:16: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] maxflow-3.0.5/maxflow/graph.cpp:104:27: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] maxflow-3.0.5/maxflow/graph.cpp:104:36: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] maxflow-3.0.5/maxflow/graph.cpp:104:55: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] maxflow-3.0.5/maxflow/graph.cpp:104:73: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] maxflow-3.0.5/maxflow/graph.cpp:108:14: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] maxflow-3.0.5/maxflow/graph.cpp:108:23: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] maxflow-3.0.5/maxflow/graph.cpp:108:42: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] maxflow-3.0.5/maxflow/graph.cpp:108:60: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] maxflow-3.0.5/maxflow/graph.cpp:133:29: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] maxflow-3.0.5/maxflow/graph.cpp:133:37: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] maxflow-3.0.5/maxflow/graph.cpp:133:57: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] maxflow-3.0.5/maxflow/graph.cpp:133:74: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] maxflow-3.0.5/maxflow/graph.cpp:134:79: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] maxflow-3.0.5/maxflow/graph.cpp:134:87: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] maxflow-3.0.5/maxflow/graph.cpp:134:108: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] maxflow-3.0.5/maxflow/graph.cpp:134:125: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] maxflow-3.0.5/maxflow/graph.cpp:138:27: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] maxflow-3.0.5/maxflow/graph.cpp:138:35: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] maxflow-3.0.5/maxflow/graph.cpp:138:54: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] maxflow-3.0.5/maxflow/graph.cpp:138:71: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] maxflow-3.0.5/maxflow/graph.cpp:139:16: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] maxflow-3.0.5/maxflow/graph.cpp:139:24: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] maxflow-3.0.5/maxflow/graph.cpp:139:45: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] maxflow-3.0.5/maxflow/graph.cpp:139:62: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] maxflow-3.0.5/maxflow/graph.cpp:134:34: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] maxflow-3.0.5/maxflow/graph.cpp:134:57: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] maxflow-3.0.5/maxflow/graph.cpp:212:16: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] maxflow-3.0.5/maxflow/graph.cpp:223:16: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] maxflow-3.0.5/maxflow/graph.cpp:268:18: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] maxflow-3.0.5/maxflow/graph.cpp:276:18: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] maxflow-3.0.5/maxflow/graph.cpp:350:15: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] maxflow-3.0.5/maxflow/graph.cpp:386:12: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] maxflow-3.0.5/maxflow/graph.cpp:394:12: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] maxflow-3.0.5/maxflow/graph.cpp:407:12: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] maxflow-3.0.5/maxflow/graph.cpp:424:12: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] maxflow-3.0.5/maxflow/graph.cpp:469:12: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] maxflow-3.0.5/maxflow/graph.cpp:475:12: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] maxflow-3.0.5/maxflow/graph.cpp:514:12: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] maxflow-3.0.5/maxflow/graph.cpp:514:27: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] maxflow-3.0.5/maxflow/graph.cpp:548:12: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] maxflow-3.0.5/maxflow/graph.cpp:554:12: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] maxflow-3.0.5/maxflow/graph.cpp:595:12: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] maxflow-3.0.5/maxflow/graph.cpp:595:27: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] maxflow-3.0.5/maxflow/graph.cpp:778:25: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] maxflow-3.0.5/maxflow/graph.cpp:779:25: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] maxflow-3.0.5/maxflow/graph.cpp:811:31: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] maxflow-3.0.5/maxflow/graph.cpp:811:52: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] maxflow-3.0.5/maxflow/graph.cpp:449:6: style: The scope of the variable 'd' can be reduced. [variableScope] maxflow-3.0.5/maxflow/graph.cpp:528:6: style: The scope of the variable 'd' can be reduced. [variableScope] maxflow-3.0.5/maxflow/graph.h:458:65: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] maxflow-3.0.5/maxflow/graph.cpp:456:24: style: Variable 'a' is assigned a value that is never used. [unreadVariable] maxflow-3.0.5/maxflow/graph.cpp:535:23: style: Variable 'a' is assigned a value that is never used. [unreadVariable] maxflow-3.0.5/test_maxflow.cpp:38:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SOURCE [valueFlowBailoutIncompleteVar] maxflow-3.0.5/test_maxflow.cpp:86:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SOURCE [valueFlowBailoutIncompleteVar] maxflow-3.0.5/test_maxflow.cpp:133:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SINK [valueFlowBailoutIncompleteVar] maxflow-3.0.5/test_maxflow.cpp:185:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SOURCE [valueFlowBailoutIncompleteVar] diff: 2.20.0 maxflow-3.0.5/test_maxflow.cpp:129:0: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] head maxflow-3.0.5/test_maxflow.cpp:133:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SINK [valueFlowBailoutIncompleteVar] 2.20.0 maxflow-3.0.5/test_maxflow.cpp:181:0: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] head maxflow-3.0.5/test_maxflow.cpp:185:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SOURCE [valueFlowBailoutIncompleteVar] 2.20.0 maxflow-3.0.5/test_maxflow.cpp:207:0: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] 2.20.0 maxflow-3.0.5/test_maxflow.cpp:37:0: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] head maxflow-3.0.5/test_maxflow.cpp:38:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SOURCE [valueFlowBailoutIncompleteVar] 2.20.0 maxflow-3.0.5/test_maxflow.cpp:82:0: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] head maxflow-3.0.5/test_maxflow.cpp:86:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SOURCE [valueFlowBailoutIncompleteVar] DONE