2024-03-26 12:05 ftp://ftp.de.debian.org/debian/pool/main/b/bibcursed/bibcursed_2.0.0.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 -D__GNUC__ --platform=unix64 -j4 platform: Linux-6.1.0-18-amd64-x86_64-with-glibc2.36 python: 3.11.2 client-version: 1.3.55 compiler: g++ (Debian 12.2.0-14) 12.2.0 cppcheck: head 2.13.0 head-info: 82f05c8 (2024-03-25 22:58:58 +0100) count: 32 28 elapsed-time: 0.4 0.5 head-timing-info: old-timing-info: head results: bibcursed/bibcursed.c:93:1: portability: Omitted return type of function 'help' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] bibcursed/bibcursed.c:142:1: portability: Omitted return type of function 'config_options' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] bibcursed/bibcursed.c:147:1: portability: Omitted return type of function 'add_entry' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] bibcursed/bibcursed.c:851:1: portability: Omitted return type of function 'delete_entry' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] bibcursed/bibcursed.c:961:1: portability: Omitted return type of function 'change_entry' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] bibcursed/bibcursed.c:1035:1: portability: Omitted return type of function 'change_field' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] bibcursed/bibcursed.c:1186:1: portability: Omitted return type of function 'search_file' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] bibcursed/bibcursed.c:1317:1: portability: Omitted return type of function 'search_menu' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] bibcursed/bibcursed.c:1381:1: portability: Omitted return type of function 'quit_prog' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] bibcursed/bibcursed.c:1388:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] bibcursed/bibcursed.c:39:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable A_BOLD [valueFlowBailoutIncompleteVar] bibcursed/bibcursed.c:263:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable A_BOLD [valueFlowBailoutIncompleteVar] bibcursed/bibcursed.c:949:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable A_BOLD [valueFlowBailoutIncompleteVar] bibcursed/bibcursed.c:1233:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable A_BOLD [valueFlowBailoutIncompleteVar] bibcursed/bibcursed.c:1311:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable A_BOLD [valueFlowBailoutIncompleteVar] bibcursed/bibcursed.c:1026:7: style: Variable 'ch' is reassigned a value before the old one has been used. [redundantAssignment] bibcursed/bibcursed.c:989:19: note: ch is assigned bibcursed/bibcursed.c:1026:7: note: ch is overwritten bibcursed/bibcursed.c:1303:7: style: Variable 'ch' is reassigned a value before the old one has been used. [redundantAssignment] bibcursed/bibcursed.c:1279:25: note: ch is assigned bibcursed/bibcursed.c:1303:7: note: ch is overwritten bibcursed/bibcursed.c:285:22: style: The comparison 'use_annote != 0' is always false. [knownConditionTrueFalse] bibcursed/bibcursed.c:155:58: note: 'use_annote' is assigned value '0' here. bibcursed/bibcursed.c:285:22: note: The comparison 'use_annote != 0' is always false. bibcursed/bibcursed.c:170:54: style: Variable 'key_name' can be declared as pointer to const [constVariablePointer] bibcursed/bibcursed.c:1035:20: style: Parameter 'entry_name' can be declared as pointer to const [constParameterPointer] bibcursed/bibcursed.c:1038:10: style: Variable 'field_name' can be declared as pointer to const [constVariablePointer] bibcursed/bibcursed.c:1193:10: style: Variable 'search_type' can be declared as pointer to const [constVariablePointer] bibcursed/bibcursed.c:1193:24: style: Variable 'search_type2' can be declared as pointer to const [constVariablePointer] bibcursed/bibcursed.c:1388:22: style: Parameter 'argv' can be declared as const array [constParameter] bibcursed/bibcursed.c:137:13: style: Variable 'tmp_char' is assigned a value that is never used. [unreadVariable] bibcursed/bibcursed.c:856:21: style: Variable 'record_found' is assigned a value that is never used. [unreadVariable] bibcursed/bibcursed.c:925:7: style: Variable 'ch' is assigned a value that is never used. [unreadVariable] bibcursed/bibcursed.c:1016:10: style: Variable 'ch' is assigned a value that is never used. [unreadVariable] bibcursed/bibcursed.c:1303:7: style: Variable 'ch' is assigned a value that is never used. [unreadVariable] bibcursed/bibcursed.c:1320:17: style: Unused variable: type [unusedVariable] bibcursed/bibcursed.c:1390:8: style: Unused variable: ch [unusedVariable] bibcursed/bibcursed.c:1390:12: style: Unused variable: i [unusedVariable] diff: head bibcursed/bibcursed.c:1233:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable A_BOLD [valueFlowBailoutIncompleteVar] head bibcursed/bibcursed.c:1311:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable A_BOLD [valueFlowBailoutIncompleteVar] head bibcursed/bibcursed.c:263:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable A_BOLD [valueFlowBailoutIncompleteVar] head bibcursed/bibcursed.c:949:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable A_BOLD [valueFlowBailoutIncompleteVar] DONE