2025-05-09 10:00 ftp://ftp.de.debian.org/debian/pool/main/b/bibcursed/bibcursed_2.0.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 -j3 platform: Linux-6.8.0-1022-oracle-aarch64-with-glibc2.39 python: 3.12.3 client-version: 1.3.67 compiler: g++ (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 cppcheck: head 2.17.0 head-info: 5962f16 (2025-05-09 09:54:06 +0200) count: 33 32 elapsed-time: 0.4 0.4 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:857: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:963: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:1037: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:1188: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:1319: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:1383: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:1390: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:951:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable A_BOLD [valueFlowBailoutIncompleteVar] bibcursed/bibcursed.c:1235:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable A_BOLD [valueFlowBailoutIncompleteVar] bibcursed/bibcursed.c:1313:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable A_BOLD [valueFlowBailoutIncompleteVar] bibcursed/bibcursed.c:882:26: warning: If resource allocation fails, then there is a possible null pointer dereference: fin [nullPointerOutOfResources] bibcursed/bibcursed.c:872:15: note: Assuming allocation function fails bibcursed/bibcursed.c:872:15: note: Assignment 'fin=fopen(bibfile,"r")', assigned value is 0 bibcursed/bibcursed.c:875:13: note: Assuming condition is false bibcursed/bibcursed.c:882:26: note: Null pointer dereference 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:1028:7: style: Variable 'ch' is reassigned a value before the old one has been used. [redundantAssignment] bibcursed/bibcursed.c:991:19: note: ch is assigned bibcursed/bibcursed.c:1028:7: note: ch is overwritten bibcursed/bibcursed.c:1305:7: style: Variable 'ch' is reassigned a value before the old one has been used. [redundantAssignment] bibcursed/bibcursed.c:1281:25: note: ch is assigned bibcursed/bibcursed.c:1305:7: note: ch is overwritten bibcursed/bibcursed.c:1037:20: style: Parameter 'entry_name' can be declared as pointer to const [constParameterPointer] bibcursed/bibcursed.c:1040:10: style: Variable 'field_name' can be declared as pointer to const [constVariablePointer] bibcursed/bibcursed.c:1195:10: style: Variable 'search_type' can be declared as pointer to const [constVariablePointer] bibcursed/bibcursed.c:1195:24: style: Variable 'search_type2' can be declared as pointer to const [constVariablePointer] bibcursed/bibcursed.c:1390: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:862:21: style: Variable 'record_found' is assigned a value that is never used. [unreadVariable] bibcursed/bibcursed.c:927:7: style: Variable 'ch' is assigned a value that is never used. [unreadVariable] bibcursed/bibcursed.c:862:8: style: Variable 'record_found' is assigned a value that is never used. [unreadVariable] bibcursed/bibcursed.c:1018:10: style: Variable 'ch' is assigned a value that is never used. [unreadVariable] bibcursed/bibcursed.c:1305:7: style: Variable 'ch' is assigned a value that is never used. [unreadVariable] bibcursed/bibcursed.c:1322:17: style: Unused variable: type [unusedVariable] bibcursed/bibcursed.c:1392:8: style: Unused variable: ch [unusedVariable] bibcursed/bibcursed.c:1392:12: style: Unused variable: i [unusedVariable] diff: head bibcursed/bibcursed.c:862:8: style: Variable 'record_found' is assigned a value that is never used. [unreadVariable] DONE