2025-11-25 06:01 ftp://ftp.de.debian.org/debian/pool/main/b/bppsuite/bppsuite_2.4.1.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 -j4 platform: Linux-6.12.57+deb13-amd64-x86_64-with-glibc2.41 python: 3.13.5 client-version: 1.3.67 compiler: g++ (Debian 14.2.0-19) 14.2.0 cppcheck: head 2.18.0 head-info: cb76e52 (2025-11-22 14:47:37 +0100) count: 54 53 elapsed-time: 0.8 0.9 head-timing-info: old-timing-info: head results: bppsuite-2.4.1/bppSuite/bppConsense.cpp:64:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable message [valueFlowBailoutIncompleteVar] bppsuite-2.4.1/bppSuite/bppConsense.cpp:74:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] bppsuite-2.4.1/bppSuite/bppAlnScore.cpp:65:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable message [valueFlowBailoutIncompleteVar] bppsuite-2.4.1/bppSuite/bppAlnScore.cpp:75:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] bppsuite-2.4.1/bppSuite/bppAncestor.cpp:92:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable message [valueFlowBailoutIncompleteVar] bppsuite-2.4.1/bppSuite/bppAncestor.cpp:102:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] bppsuite-2.4.1/bppSuite/bppDist.cpp:84:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable message [valueFlowBailoutIncompleteVar] bppsuite-2.4.1/bppSuite/bppDist.cpp:94:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] bppsuite-2.4.1/bppSuite/bppML.cpp:92:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable message [valueFlowBailoutIncompleteVar] bppsuite-2.4.1/bppSuite/bppML.cpp:102:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] bppsuite-2.4.1/bppSuite/bppAlnScore.cpp:137:12: style: The scope of the variable 'phase' can be reduced. [variableScope] bppsuite-2.4.1/bppSuite/bppMixedLikelihoods.cpp:89:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable message [valueFlowBailoutIncompleteVar] bppsuite-2.4.1/bppSuite/bppMixedLikelihoods.cpp:99:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] bppsuite-2.4.1/bppSuite/bppPars.cpp:73:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable message [valueFlowBailoutIncompleteVar] bppsuite-2.4.1/bppSuite/bppPars.cpp:83:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] bppsuite-2.4.1/bppSuite/bppAncestor.cpp:301:8: style: The scope of the variable 'probs' can be reduced. [variableScope] bppsuite-2.4.1/bppSuite/bppAncestor.cpp:381:35: style: Variable 'ex' can be declared as reference to const [constVariableReference] bppsuite-2.4.1/bppSuite/bppAncestor.cpp:383:35: style: Variable 'ex' can be declared as reference to const [constVariableReference] bppsuite-2.4.1/bppSuite/bppAncestor.cpp:481:97: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] bppsuite-2.4.1/bppSuite/bppPopStats.cpp:83:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable message [valueFlowBailoutIncompleteVar] bppsuite-2.4.1/bppSuite/bppPopStats.cpp:93:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] bppsuite-2.4.1/bppSuite/bppReRoot.cpp:70:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable message [valueFlowBailoutIncompleteVar] bppsuite-2.4.1/bppSuite/bppReRoot.cpp:82:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] bppsuite-2.4.1/bppSuite/bppMixedLikelihoods.cpp:296:88: warning: Either the condition 'modelSet' is redundant or there is possible null pointer dereference: modelSet. [nullPointerRedundantCheck] bppsuite-2.4.1/bppSuite/bppMixedLikelihoods.cpp:290:9: note: Assuming that condition 'modelSet' is not redundant bppsuite-2.4.1/bppSuite/bppMixedLikelihoods.cpp:296:88: note: Null pointer dereference bppsuite-2.4.1/bppSuite/bppML.cpp:629:35: style: Variable 'ex' can be declared as reference to const [constVariableReference] bppsuite-2.4.1/bppSuite/bppML.cpp:631:35: style: Variable 'ex' can be declared as reference to const [constVariableReference] bppsuite-2.4.1/bppSuite/bppMixedLikelihoods.cpp:290:32: style: Checking if unsigned expression 'nummodel' is less than zero. [unsignedLessThanZero] bppsuite-2.4.1/bppSuite/bppSeqMan.cpp:73:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable message [valueFlowBailoutIncompleteVar] bppsuite-2.4.1/bppSuite/bppSeqMan.cpp:83:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] bppsuite-2.4.1/bppSuite/bppSeqGen.cpp:113:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable npos [valueFlowBailoutIncompleteVar] bppsuite-2.4.1/bppSuite/bppSeqGen.cpp:149:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable npos [valueFlowBailoutIncompleteVar] bppsuite-2.4.1/bppSuite/bppSeqGen.cpp:180:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable message [valueFlowBailoutIncompleteVar] bppsuite-2.4.1/bppSuite/bppSeqGen.cpp:190:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] bppsuite-2.4.1/bppSuite/bppReRoot.cpp:154:10: style: The scope of the variable 'printOrNot' can be reduced. [variableScope] bppsuite-2.4.1/bppSuite/bppReRoot.cpp:182:11: style: Consider using std::count_if algorithm instead of a raw loop. [useStlAlgorithm] bppsuite-2.4.1/bppSuite/bppSeqMan.cpp:308:22: style: Variable 'sites' can be declared as pointer to const [constVariablePointer] bppsuite-2.4.1/bppSuite/bppReRoot.cpp:116:17: style: Unused variable: tempTrees [unusedVariable] bppsuite-2.4.1/bppSuite/bppReRoot.cpp:123:16: style: Unused variable: description [unusedVariable] bppsuite-2.4.1/bppSuite/bppReRoot.cpp:123:29: style: Unused variable: taxon [unusedVariable] bppsuite-2.4.1/bppSuite/bppReRoot.cpp:196:86: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] bppsuite-2.4.1/bppSuite/bppTreeDraw.cpp:67:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable message [valueFlowBailoutIncompleteVar] bppsuite-2.4.1/bppSuite/bppTreeDraw.cpp:77:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] bppsuite-2.4.1/bppSuite/bppPopStats.cpp:207:26: style:inconclusive: Boolean expression 'estimateAncestor' is used in bitwise operation. Did you mean '&&'? [bitwiseOnBoolean] bppsuite-2.4.1/bppSuite/bppPopStats.cpp:207:26: style: Boolean result is used in bitwise operation. Clarify expression with parentheses. [clarifyCondition] bppsuite-2.4.1/bppSuite/bppSeqGen.cpp:527:13: warning: Identical inner 'if' condition is always true. [identicalInnerCondition] bppsuite-2.4.1/bppSuite/bppSeqGen.cpp:519:7: note: outer condition: withStates bppsuite-2.4.1/bppSuite/bppSeqGen.cpp:527:13: note: identical inner condition: withStates bppsuite-2.4.1/bppSuite/bppSeqGen.cpp:532:13: warning: Identical inner 'if' condition is always true. [identicalInnerCondition] bppsuite-2.4.1/bppSuite/bppSeqGen.cpp:519:7: note: outer condition: withStates bppsuite-2.4.1/bppSuite/bppSeqGen.cpp:532:13: note: identical inner condition: withStates bppsuite-2.4.1/bppSuite/bppSeqGen.cpp:552:11: warning: Identical inner 'if' condition is always true. [identicalInnerCondition] bppsuite-2.4.1/bppSuite/bppSeqGen.cpp:519:7: note: outer condition: withStates bppsuite-2.4.1/bppSuite/bppSeqGen.cpp:552:11: note: identical inner condition: withStates bppsuite-2.4.1/bppSuite/bppSeqGen.cpp:556:13: warning: Identical inner 'if' condition is always true. [identicalInnerCondition] bppsuite-2.4.1/bppSuite/bppSeqGen.cpp:519:7: note: outer condition: withStates bppsuite-2.4.1/bppSuite/bppSeqGen.cpp:556:13: note: identical inner condition: withStates bppsuite-2.4.1/bppSuite/bppSeqGen.cpp:561:13: warning: Identical inner 'if' condition is always true. [identicalInnerCondition] bppsuite-2.4.1/bppSuite/bppSeqGen.cpp:519:7: note: outer condition: withStates bppsuite-2.4.1/bppSuite/bppSeqGen.cpp:561:13: note: identical inner condition: withStates bppsuite-2.4.1/bppSuite/bppPopStats.cpp:198:87: warning: Either the condition '!pscOut' is redundant or there is possible null pointer dereference: pscOut. [nullPointerRedundantCheck] bppsuite-2.4.1/bppSuite/bppPopStats.cpp:207:28: note: Assuming that condition '!pscOut' is not redundant bppsuite-2.4.1/bppSuite/bppPopStats.cpp:198:87: note: Null pointer dereference bppsuite-2.4.1/bppSuite/bppPopStats.cpp:114:29: style: The scope of the variable 'toolCounter' can be reduced. [variableScope] bppsuite-2.4.1/bppSuite/bppSeqGen.cpp:492:23: style: Variable 'e' can be declared as reference to const [constVariableReference] bppsuite-2.4.1/bppSuite/bppSeqGen.cpp:84:15: style: Variable 'line' is assigned a value that is never used. [unreadVariable] bppsuite-2.4.1/bppSuite/bppPopStats.cpp:554:84: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] diff: head bppsuite-2.4.1/bppSuite/bppMixedLikelihoods.cpp:296:88: warning: Either the condition 'modelSet' is redundant or there is possible null pointer dereference: modelSet. [nullPointerRedundantCheck] bppsuite-2.4.1/bppSuite/bppMixedLikelihoods.cpp:290:9: note: Assuming that condition 'modelSet' is not redundant bppsuite-2.4.1/bppSuite/bppMixedLikelihoods.cpp:296:88: note: Null pointer dereference DONE