2024-04-25 17:26 ftp://ftp.de.debian.org/debian/pool/main/l/lucy/lucy_1.20.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 -j8 platform: Linux-6.6.27_1-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.57 compiler: g++ (GCC) 13.2.0 cppcheck: head 2.14.0 head-info: da380ea (2024-04-25 10:28:43 +0200) count: 58 58 elapsed-time: 4.5 4.3 head-timing-info: old-timing-info: head results: lucy-1.20p/lucy-s/lucy.c:145:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] lucy-1.20p/lucy-s/qual_trim.c:365:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] lucy-1.20p/lucy-s/splice.c:66:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable i [valueFlowBailoutIncompleteVar] lucy-1.20p/lucy-s/qual_trim.c:467:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] lucy-1.20p/lucy-s/splice.c:182:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable i [valueFlowBailoutIncompleteVar] lucy-1.20p/lucy-s/qual_trim.c:719:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] lucy-1.20p/lucy.c:284:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] lucy-1.20p/lucy-s/vector.c:74:38: style: Clarify calculation precedence for '%' and '?'. [clarifyCalculation] lucy-1.20p/lucy-s/vector.c:67:7: style: Parameter 'seq' can be declared as pointer to const [constParameterPointer] lucy-1.20p/lucy-s/vector.c:104:7: style: Parameter 'seq' can be declared as pointer to const [constParameterPointer] lucy-1.20p/qual_trim.c:365:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] lucy-1.20p/qual_trim.c:467:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] lucy-1.20p/qual_trim.c:719:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] lucy-1.20p/lucy-s/splice.c:166:7: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] lucy-1.20p/lucy-s/splice.c:166:11: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] lucy-1.20p/splice.c:73:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable i [valueFlowBailoutIncompleteVar] lucy-1.20p/splice.c:194:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable i [valueFlowBailoutIncompleteVar] lucy-1.20p/lucy-s/lucy.c:74:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] lucy-1.20p/lucy-s/lucy.c:97:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] lucy-1.20p/lucy-s/lucy.c:329:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] lucy-1.20p/vector.c:74:38: style: Clarify calculation precedence for '%' and '?'. [clarifyCalculation] lucy-1.20p/vector.c:67:7: style: Parameter 'seq' can be declared as pointer to const [constParameterPointer] lucy-1.20p/vector.c:104:7: style: Parameter 'seq' can be declared as pointer to const [constParameterPointer] lucy-1.20p/lucy-s/qual_trim.c:223:10: style: Parameter 'prob_err' can be declared as pointer to const [constParameterPointer] lucy-1.20p/lucy-s/qual_trim.c:342:10: style: Parameter 'prob_err' can be declared as pointer to const [constParameterPointer] lucy-1.20p/lucy-s/qual_trim.c:601:17: style: Parameter 'prob_err' can be declared as pointer to const [constParameterPointer] lucy-1.20p/lucy-s/qual_trim.c:694:7: style: Parameter 'quality' can be declared as pointer to const [constParameterPointer] lucy-1.20p/lucy.c:76:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] lucy-1.20p/lucy.c:99:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] lucy-1.20p/lucy.c:473:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] lucy-1.20p/lucy-s/qual_trim.c:705:9: style: Unused variable: err [unusedVariable] lucy-1.20p/lucy-s/qual_trim.c:705:14: style: Unused variable: sum [unusedVariable] lucy-1.20p/splice.c:173:7: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] lucy-1.20p/splice.c:173:11: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] lucy-1.20p/qual_trim.c:223:10: style: Parameter 'prob_err' can be declared as pointer to const [constParameterPointer] lucy-1.20p/qual_trim.c:342:10: style: Parameter 'prob_err' can be declared as pointer to const [constParameterPointer] lucy-1.20p/qual_trim.c:601:17: style: Parameter 'prob_err' can be declared as pointer to const [constParameterPointer] lucy-1.20p/qual_trim.c:694:7: style: Parameter 'quality' can be declared as pointer to const [constParameterPointer] lucy-1.20p/qual_trim.c:705:9: style: Unused variable: err [unusedVariable] lucy-1.20p/qual_trim.c:705:14: style: Unused variable: sum [unusedVariable] lucy-1.20p/lucy-s/lucy.c:539:6: error: Common realloc mistake: 'abi_seq' nulled but not freed upon failure [memleakOnRealloc] lucy-1.20p/lucy-s/lucy.c:72:7: style: Parameter 'msg' can be declared as pointer to const [constParameterPointer] lucy-1.20p/lucy-s/lucy.c:95:7: style: Parameter 'msg' can be declared as pointer to const [constParameterPointer] lucy-1.20p/lucy.c:704:6: error: Common realloc mistake: 'abi_seq' nulled but not freed upon failure [memleakOnRealloc] lucy-1.20p/lucy.c:74:7: style: Parameter 'msg' can be declared as pointer to const [constParameterPointer] lucy-1.20p/lucy.c:97:7: style: Parameter 'msg' can be declared as pointer to const [constParameterPointer] lucy-1.20p/lucy.c:296:9: style: Variable 'seq_name' can be declared as pointer to const [constVariablePointer] lucy-1.20p/lucy.c:296:20: style: Variable 'qul_name' can be declared as pointer to const [constVariablePointer] lucy-1.20p/lucy.c:296:31: style: Variable 'abi_name' can be declared as pointer to const [constVariablePointer] lucy-1.20p/lucy.c:296:42: style: Variable 'vec_name' can be declared as pointer to const [constVariablePointer] lucy-1.20p/lucy.c:296:53: style: Variable 'spl_name' can be declared as pointer to const [constVariablePointer] lucy-1.20p/lucy.c:298:9: style: Variable 'seq_out_name' can be declared as pointer to const [constVariablePointer] lucy-1.20p/lucy.c:298:24: style: Variable 'qul_out_name' can be declared as pointer to const [constVariablePointer] lucy-1.20p/lucy.c:298:39: style: Variable 'debug_file_name' can be declared as pointer to const [constVariablePointer] lucy-1.20p/abi.c:121:7: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] lucy-1.20p/abi.c:121:11: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] lucy-1.20p/lucy-s/abi.c:121:7: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] lucy-1.20p/lucy-s/abi.c:121:11: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] diff: DONE