2026-05-01 19:16 ftp://ftp.de.debian.org/debian/pool/main/e/extundelete/extundelete_0.2.4.orig.tar.bz2 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-111-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.70 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04.1) 14.2.0 cppcheck: head 2.20.0 head-info: e5c4a73 (2026-05-01 11:10:43 +0200) count: 187 185 elapsed-time: 1.6 1.3 head-timing-info: old-timing-info: head results: extundelete-0.2.4/src/block.c:516:40: debug: Function::addArguments found argument 'unused' with varid 0. [varid0] extundelete-0.2.4/src/block.c:54:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EXT2_ET_NO_MEMORY [valueFlowBailoutIncompleteVar] extundelete-0.2.4/src/block.c:228:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BLOCK_FLAG_DEPTH_TRAVERSE [valueFlowBailoutIncompleteVar] extundelete-0.2.4/src/block.c:318:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BLOCK_FLAG_DEPTH_TRAVERSE [valueFlowBailoutIncompleteVar] extundelete-0.2.4/src/block.c:405:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BLOCK_FLAG_DEPTH_TRAVERSE [valueFlowBailoutIncompleteVar] extundelete-0.2.4/src/block.c:534:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DIRENT_DOT_FILE [valueFlowBailoutIncompleteVar] extundelete-0.2.4/src/block.c:627:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EXT2_ET_MAGIC_EXT2FS_FILSYS [valueFlowBailoutIncompleteVar] extundelete-0.2.4/src/block.c:840:1: style: Label 'errout' is not used. [unusedLabel] extundelete-0.2.4/src/block.c:516:40: style:inconclusive: Function 'extundelete_process_dir_block' argument 4 names different: declaration '' definition 'unused'. [funcArgNamesDifferentUnnamed] extundelete-0.2.4/src/block.c:617:11: style:inconclusive: Function 'extundelete_block_iterate3' argument 6 names different: declaration '' definition 'priv_data'. [funcArgNamesDifferentUnnamed] extundelete-0.2.4/src/block.c:42:61: style: Parameter 'super' can be declared as pointer to const [constParameterPointer] extundelete-0.2.4/src/block.c:188:7: style: struct member 'block_context::bsize' is never used. [unusedStructMember] extundelete-0.2.4/src/block.c:620:6: style: Unused variable: r [unusedVariable] extundelete-0.2.4/src/extundelete.h:48:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable hex [valueFlowBailoutIncompleteVar] extundelete-0.2.4/src/cli.cc:97:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BUFSIZ [valueFlowBailoutIncompleteVar] extundelete-0.2.4/src/cli.cc:105:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] extundelete-0.2.4/src/cli.cc:176:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] extundelete-0.2.4/src/cli.cc:438:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] extundelete-0.2.4/src/cli.cc:722:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable unix_io_manager [valueFlowBailoutIncompleteVar] extundelete-0.2.4/src/cli.cc:764:85: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable endl [valueFlowBailoutIncompleteVar] extundelete-0.2.4/src/cli.cc:112:18: style: Condition '*(char*)&n==1' is always true [knownConditionTrueFalse] extundelete-0.2.4/src/cli.cc:111:10: note: Assignment 'n=1', assigned value is 1 extundelete-0.2.4/src/cli.cc:112:18: note: Condition '*(char*)&n==1' is always true extundelete-0.2.4/src/cli.cc:112:6: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] extundelete-0.2.4/src/cli.cc:119:55: performance: Function parameter 'cmd' should be passed by const reference. [passedByValue] extundelete-0.2.4/src/cli.cc:54:54: style: Parameter 'super' can be declared as pointer to const [constParameterPointer] extundelete-0.2.4/src/cli.cc:309:13: performance: Passing the result of c_str() to a function that takes std::string as argument no. 3 is slow and redundant. [stlcstrParam] extundelete-0.2.4/src/cli.cc:35:14: style: struct member 'option::name' is never used. [unusedStructMember] extundelete-0.2.4/src/cli.cc:36:6: style: struct member 'option::has_arg' is never used. [unusedStructMember] extundelete-0.2.4/src/cli.cc:37:7: style: struct member 'option::flag' is never used. [unusedStructMember] extundelete-0.2.4/src/cli.cc:38:6: style: struct member 'option::val' is never used. [unusedStructMember] extundelete-0.2.4/src/extundelete.cc:110:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EDOM [valueFlowBailoutIncompleteVar] extundelete-0.2.4/src/extundelete.cc:125:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errcode_t [valueFlowBailoutIncompleteVar] extundelete-0.2.4/src/extundelete.cc:138:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errcode_t [valueFlowBailoutIncompleteVar] extundelete-0.2.4/src/extundelete.cc:148:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable bg_inode_table [valueFlowBailoutIncompleteVar] extundelete-0.2.4/src/extundelete.cc:375:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable endl [valueFlowBailoutIncompleteVar] extundelete-0.2.4/src/extundelete.cc:446:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EXT3_FEATURE_COMPAT_HAS_JOURNAL [valueFlowBailoutIncompleteVar] extundelete-0.2.4/src/extundelete.cc:486:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] extundelete-0.2.4/src/extundelete.cc:504:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] extundelete-0.2.4/src/extundelete.cc:518:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable hex [valueFlowBailoutIncompleteVar] extundelete-0.2.4/src/extundelete.cc:553:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EDOM [valueFlowBailoutIncompleteVar] extundelete-0.2.4/src/extundelete.cc:564:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EDOM [valueFlowBailoutIncompleteVar] extundelete-0.2.4/src/extundelete.cc:573:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EDOM [valueFlowBailoutIncompleteVar] extundelete-0.2.4/src/extundelete.cc:583:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] extundelete-0.2.4/src/extundelete.cc:623:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BLOCK_ABORT [valueFlowBailoutIncompleteVar] extundelete-0.2.4/src/extundelete.cc:639:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable endl [valueFlowBailoutIncompleteVar] extundelete-0.2.4/src/extundelete.cc:686:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DIRENT_DELETED_FILE [valueFlowBailoutIncompleteVar] extundelete-0.2.4/src/extundelete.cc:762:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DIRENT_FLAG_INCLUDE_REMOVED [valueFlowBailoutIncompleteVar] extundelete-0.2.4/src/extundelete.cc:827:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EXT2_ROOT_INO [valueFlowBailoutIncompleteVar] extundelete-0.2.4/src/extundelete.cc:976:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable flush [valueFlowBailoutIncompleteVar] extundelete-0.2.4/src/extundelete.cc:1254:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BLOCK_ABORT [valueFlowBailoutIncompleteVar] extundelete-0.2.4/src/extundelete.cc:1271:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DIRENT_FLAG_INCLUDE_REMOVED [valueFlowBailoutIncompleteVar] extundelete-0.2.4/src/extundelete.cc:1312:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EXT2_ROOT_INO [valueFlowBailoutIncompleteVar] extundelete-0.2.4/src/extundelete.cc:1549:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EXT2_ET_BAD_INODE_NUM [valueFlowBailoutIncompleteVar] extundelete-0.2.4/src/extundelete.cc:1620:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BLOCK_ERROR [valueFlowBailoutIncompleteVar] extundelete-0.2.4/src/extundelete.cc:1651:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable npos [valueFlowBailoutIncompleteVar] extundelete-0.2.4/src/extundelete.cc:1662:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BLOCK_ABORT [valueFlowBailoutIncompleteVar] extundelete-0.2.4/src/extundelete.cc:1687:61: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable endl [valueFlowBailoutIncompleteVar] extundelete-0.2.4/src/extundelete.cc:1820:74: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable endl [valueFlowBailoutIncompleteVar] extundelete-0.2.4/src/extundelete.cc:1902:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] extundelete-0.2.4/src/extundelete.cc:1925:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] extundelete-0.2.4/src/extundelete.cc:196:46: style:inconclusive: Boolean expression '!EXT2_SB(fs->super)->s_feature_incompat' is used in bitwise operation. Did you mean '&&'? [bitwiseOnBoolean] extundelete-0.2.4/src/extundelete.cc:179:3: style: Struct 'triad < uint32_t , __u64 , __u64 >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] extundelete-0.2.4/src/extundelete.cc:196:46: style: Boolean result is used in bitwise operation. Clarify expression with parentheses. [clarifyCondition] extundelete-0.2.4/src/extundelete.cc:276:18: style: Condition '*(char*)&n==1' is always true [knownConditionTrueFalse] extundelete-0.2.4/src/extundelete.cc:275:10: note: Assignment 'n=1', assigned value is 1 extundelete-0.2.4/src/extundelete.cc:276:18: note: Condition '*(char*)&n==1' is always true extundelete-0.2.4/src/extundelete.cc:287:18: style: Condition '*(char*)&n==1' is always true [knownConditionTrueFalse] extundelete-0.2.4/src/extundelete.cc:286:10: note: Assignment 'n=1', assigned value is 1 extundelete-0.2.4/src/extundelete.cc:287:18: note: Condition '*(char*)&n==1' is always true extundelete-0.2.4/src/extundelete.cc:300:18: style: Condition '*(char*)&n==1' is always true [knownConditionTrueFalse] extundelete-0.2.4/src/extundelete.cc:299:10: note: Assignment 'n=1', assigned value is 1 extundelete-0.2.4/src/extundelete.cc:300:18: note: Condition '*(char*)&n==1' is always true extundelete-0.2.4/src/extundelete.cc:310:18: style: Condition '*(char*)&n!=1' is always false [knownConditionTrueFalse] extundelete-0.2.4/src/extundelete.cc:309:10: note: Assignment 'n=1', assigned value is 1 extundelete-0.2.4/src/extundelete.cc:310:18: note: Condition '*(char*)&n!=1' is always false extundelete-0.2.4/src/extundelete.cc:320:18: style: Condition '*(char*)&n!=1' is always false [knownConditionTrueFalse] extundelete-0.2.4/src/extundelete.cc:319:10: note: Assignment 'n=1', assigned value is 1 extundelete-0.2.4/src/extundelete.cc:320:18: note: Condition '*(char*)&n!=1' is always false extundelete-0.2.4/src/extundelete.cc:1375:10: style: Condition 'ino2==0' is always true [knownConditionTrueFalse] extundelete-0.2.4/src/extundelete.cc:1268:13: note: Assignment '*new_ino=0', assigned value is 0 extundelete-0.2.4/src/extundelete.cc:1275:9: note: Assignment 'ino2=*new_ino', assigned value is 0 extundelete-0.2.4/src/extundelete.cc:1372:19: note: Calling function 'find_inode' returns 0 extundelete-0.2.4/src/extundelete.cc:1372:19: note: Assignment 'ino2=find_inode(fs,jfs,inode2,curr_part,1)', assigned value is 0 extundelete-0.2.4/src/extundelete.cc:1375:10: note: Condition 'ino2==0' is always true extundelete-0.2.4/src/extundelete.cc:1380:10: style: Condition 'ino2==0' is always true [knownConditionTrueFalse] extundelete-0.2.4/src/extundelete.cc:1268:13: note: Assignment '*new_ino=0', assigned value is 0 extundelete-0.2.4/src/extundelete.cc:1275:9: note: Assignment 'ino2=*new_ino', assigned value is 0 extundelete-0.2.4/src/extundelete.cc:1376:20: note: Calling function 'find_inode' returns 0 extundelete-0.2.4/src/extundelete.cc:1376:20: note: Assignment 'ino2=find_inode(fs,jfs,inode,curr_part,1)', assigned value is 0 extundelete-0.2.4/src/extundelete.cc:1380:10: note: Condition 'ino2==0' is always true extundelete-0.2.4/src/extundelete.cc:1385:10: style: Condition 'ino2==0' is always true [knownConditionTrueFalse] extundelete-0.2.4/src/extundelete.cc:1268:13: note: Assignment '*new_ino=0', assigned value is 0 extundelete-0.2.4/src/extundelete.cc:1275:9: note: Assignment 'ino2=*new_ino', assigned value is 0 extundelete-0.2.4/src/extundelete.cc:1381:20: note: Calling function 'find_inode' returns 0 extundelete-0.2.4/src/extundelete.cc:1381:20: note: Assignment 'ino2=find_inode(fs,jfs,inode2,curr_part,0)', assigned value is 0 extundelete-0.2.4/src/extundelete.cc:1385:10: note: Condition 'ino2==0' is always true extundelete-0.2.4/src/extundelete.cc:1390:10: style: Condition 'ino2==0' is always true [knownConditionTrueFalse] extundelete-0.2.4/src/extundelete.cc:1268:13: note: Assignment '*new_ino=0', assigned value is 0 extundelete-0.2.4/src/extundelete.cc:1275:9: note: Assignment 'ino2=*new_ino', assigned value is 0 extundelete-0.2.4/src/extundelete.cc:1386:20: note: Calling function 'find_inode' returns 0 extundelete-0.2.4/src/extundelete.cc:1386:20: note: Assignment 'ino2=find_inode(fs,jfs,inode,curr_part,0)', assigned value is 0 extundelete-0.2.4/src/extundelete.cc:1390:10: note: Condition 'ino2==0' is always true extundelete-0.2.4/src/extundelete.cc:1403:12: style: Condition 'ino2!=0' is always false [knownConditionTrueFalse] extundelete-0.2.4/src/extundelete.cc:1395:15: note: Assignment '*new_ino=0', assigned value is 0 extundelete-0.2.4/src/extundelete.cc:1401:11: note: Assignment 'ino2=*new_ino', assigned value is 0 extundelete-0.2.4/src/extundelete.cc:1403:12: note: Condition 'ino2!=0' is always false extundelete-0.2.4/src/extundelete.cc:1409:10: style: Condition 'ino2!=0' is always false [knownConditionTrueFalse] extundelete-0.2.4/src/extundelete.cc:1268:13: note: Assignment '*new_ino=0', assigned value is 0 extundelete-0.2.4/src/extundelete.cc:1275:9: note: Assignment 'ino2=*new_ino', assigned value is 0 extundelete-0.2.4/src/extundelete.cc:1386:20: note: Calling function 'find_inode' returns 0 extundelete-0.2.4/src/extundelete.cc:1386:20: note: Assignment 'ino2=find_inode(fs,jfs,inode,curr_part,0)', assigned value is 0 extundelete-0.2.4/src/extundelete.cc:1409:10: note: Condition 'ino2!=0' is always false extundelete-0.2.4/src/extundelete.cc:1444:11: style: Condition 'ino2==0' is always true [knownConditionTrueFalse] extundelete-0.2.4/src/extundelete.cc:1268:13: note: Assignment '*new_ino=0', assigned value is 0 extundelete-0.2.4/src/extundelete.cc:1275:9: note: Assignment 'ino2=*new_ino', assigned value is 0 extundelete-0.2.4/src/extundelete.cc:1441:20: note: Calling function 'find_inode' returns 0 extundelete-0.2.4/src/extundelete.cc:1441:20: note: Assignment 'ino2=find_inode(fs,jfs,inode,curr_part,1)', assigned value is 0 extundelete-0.2.4/src/extundelete.cc:1444:11: note: Condition 'ino2==0' is always true extundelete-0.2.4/src/extundelete.cc:1449:11: style: Condition 'ino2==0' is always true [knownConditionTrueFalse] extundelete-0.2.4/src/extundelete.cc:1268:13: note: Assignment '*new_ino=0', assigned value is 0 extundelete-0.2.4/src/extundelete.cc:1275:9: note: Assignment 'ino2=*new_ino', assigned value is 0 extundelete-0.2.4/src/extundelete.cc:1445:21: note: Calling function 'find_inode' returns 0 extundelete-0.2.4/src/extundelete.cc:1445:21: note: Assignment 'ino2=find_inode(fs,jfs,inode,curr_part,0)', assigned value is 0 extundelete-0.2.4/src/extundelete.cc:1449:11: note: Condition 'ino2==0' is always true extundelete-0.2.4/src/extundelete.cc:1462:13: style: Condition 'ino2!=0' is always false [knownConditionTrueFalse] extundelete-0.2.4/src/extundelete.cc:1454:16: note: Assignment '*new_ino=0', assigned value is 0 extundelete-0.2.4/src/extundelete.cc:1460:12: note: Assignment 'ino2=*new_ino', assigned value is 0 extundelete-0.2.4/src/extundelete.cc:1462:13: note: Condition 'ino2!=0' is always false extundelete-0.2.4/src/extundelete.cc:1470:11: style: Condition 'ino2!=0' is always false [knownConditionTrueFalse] extundelete-0.2.4/src/extundelete.cc:1268:13: note: Assignment '*new_ino=0', assigned value is 0 extundelete-0.2.4/src/extundelete.cc:1275:9: note: Assignment 'ino2=*new_ino', assigned value is 0 extundelete-0.2.4/src/extundelete.cc:1445:21: note: Calling function 'find_inode' returns 0 extundelete-0.2.4/src/extundelete.cc:1445:21: note: Assignment 'ino2=find_inode(fs,jfs,inode,curr_part,0)', assigned value is 0 extundelete-0.2.4/src/extundelete.cc:1470:11: note: Condition 'ino2!=0' is always false extundelete-0.2.4/src/extundelete.cc:125:28: style: C-style pointer casting [cstyleCast] extundelete-0.2.4/src/extundelete.cc:138:26: style: C-style pointer casting [cstyleCast] extundelete-0.2.4/src/extundelete.cc:643:10: style: C-style pointer casting [cstyleCast] extundelete-0.2.4/src/extundelete.cc:685:27: style: C-style pointer casting [cstyleCast] extundelete-0.2.4/src/extundelete.cc:750:10: style: C-style pointer casting [cstyleCast] extundelete-0.2.4/src/extundelete.cc:774:12: style: C-style pointer casting [cstyleCast] extundelete-0.2.4/src/extundelete.cc:843:10: style: C-style pointer casting [cstyleCast] extundelete-0.2.4/src/extundelete.cc:970:18: style: C-style pointer casting [cstyleCast] extundelete-0.2.4/src/extundelete.cc:1181:27: style: C-style pointer casting [cstyleCast] extundelete-0.2.4/src/extundelete.cc:1187:6: style: C-style pointer casting [cstyleCast] extundelete-0.2.4/src/extundelete.cc:1241:28: style: C-style pointer casting [cstyleCast] extundelete-0.2.4/src/extundelete.cc:1242:28: style: C-style pointer casting [cstyleCast] extundelete-0.2.4/src/extundelete.cc:1360:10: style: C-style pointer casting [cstyleCast] extundelete-0.2.4/src/extundelete.cc:1366:11: style: C-style pointer casting [cstyleCast] extundelete-0.2.4/src/extundelete.cc:1520:11: style: C-style pointer casting [cstyleCast] extundelete-0.2.4/src/extundelete.cc:1614:11: style: C-style pointer casting [cstyleCast] extundelete-0.2.4/src/extundelete.cc:1615:19: style: C-style pointer casting [cstyleCast] extundelete-0.2.4/src/extundelete.cc:1683:10: style: C-style pointer casting [cstyleCast] extundelete-0.2.4/src/extundelete.cc:1846:11: style: C-style pointer casting [cstyleCast] extundelete-0.2.4/src/extundelete.cc:1895:10: style: C-style pointer casting [cstyleCast] extundelete-0.2.4/src/extundelete.cc:125:17: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] extundelete-0.2.4/src/extundelete.cc:138:15: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] extundelete-0.2.4/src/extundelete.cc:276:6: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] extundelete-0.2.4/src/extundelete.cc:287:6: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] extundelete-0.2.4/src/extundelete.cc:300:6: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] extundelete-0.2.4/src/extundelete.cc:310:6: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] extundelete-0.2.4/src/extundelete.cc:320:6: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] extundelete-0.2.4/src/extundelete.cc:356:15: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] extundelete-0.2.4/src/extundelete.cc:357:15: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] extundelete-0.2.4/src/extundelete.cc:358:15: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] extundelete-0.2.4/src/extundelete.cc:368:16: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] extundelete-0.2.4/src/extundelete.cc:370:16: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] extundelete-0.2.4/src/extundelete.cc:372:16: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] extundelete-0.2.4/src/extundelete.cc:389:15: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] extundelete-0.2.4/src/extundelete.cc:390:15: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] extundelete-0.2.4/src/extundelete.cc:391:15: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] extundelete-0.2.4/src/extundelete.cc:393:16: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] extundelete-0.2.4/src/extundelete.cc:401:15: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] extundelete-0.2.4/src/extundelete.cc:402:15: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] extundelete-0.2.4/src/extundelete.cc:403:15: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] extundelete-0.2.4/src/extundelete.cc:404:15: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] extundelete-0.2.4/src/extundelete.cc:405:15: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] extundelete-0.2.4/src/extundelete.cc:406:15: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] extundelete-0.2.4/src/extundelete.cc:407:15: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] extundelete-0.2.4/src/extundelete.cc:408:15: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] extundelete-0.2.4/src/extundelete.cc:409:15: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] extundelete-0.2.4/src/extundelete.cc:410:15: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] extundelete-0.2.4/src/extundelete.cc:411:15: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] extundelete-0.2.4/src/extundelete.cc:412:15: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] extundelete-0.2.4/src/extundelete.cc:414:15: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] extundelete-0.2.4/src/extundelete.cc:415:15: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] extundelete-0.2.4/src/extundelete.cc:416:15: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] extundelete-0.2.4/src/extundelete.cc:417:15: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] extundelete-0.2.4/src/extundelete.cc:418:15: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] extundelete-0.2.4/src/extundelete.cc:484:37: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] extundelete-0.2.4/src/extundelete.cc:682:37: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] extundelete-0.2.4/src/extundelete.cc:778:23: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] extundelete-0.2.4/src/extundelete.cc:778:41: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] extundelete-0.2.4/src/extundelete.cc:1012:20: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] extundelete-0.2.4/src/extundelete.cc:1048:8: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] extundelete-0.2.4/src/extundelete.cc:1051:7: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] extundelete-0.2.4/src/extundelete.cc:1052:32: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] extundelete-0.2.4/src/extundelete.cc:1066:34: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] extundelete-0.2.4/src/extundelete.cc:1086:24: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] extundelete-0.2.4/src/extundelete.cc:1087:19: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] extundelete-0.2.4/src/extundelete.cc:1091:25: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] extundelete-0.2.4/src/extundelete.cc:1615:8: style: The scope of the variable 'charbuf' can be reduced. [variableScope] extundelete-0.2.4/src/extundelete.cc:1924:6: style: The scope of the variable 'retval' can be reduced. [variableScope] extundelete-0.2.4/src/extundelete.cc:740:31: performance: Function parameter 'dirname' should be passed by const reference. [passedByValue] extundelete-0.2.4/src/extundelete.cc:816:87: performance: Function parameter 'dirname' should be passed by const reference. [passedByValue] extundelete-0.2.4/src/extundelete.cc:1260:15: performance: Function parameter 'curr_part' should be passed by const reference. [passedByValue] extundelete-0.2.4/src/extundelete.cc:1810:67: performance: Function parameter 'journal_filename' should be passed by const reference. [passedByValue] extundelete-0.2.4/src/extundelete.cc:741:28: style: Parameter 'parent_inos' can be declared as reference to const [constParameterReference] extundelete-0.2.4/src/extundelete.cc:125:9: style: Variable 'start' can be declared as pointer to const [constVariablePointer] extundelete-0.2.4/src/extundelete.cc:138:9: style: Variable 'end' can be declared as pointer to const [constVariablePointer] extundelete-0.2.4/src/extundelete.cc:500:63: style: Parameter 'inode' can be declared as pointer to const [constParameterPointer] extundelete-0.2.4/src/extundelete.cc:608:58: style: Parameter 'blocknr' can be declared as pointer to const. However it seems that 'get_block_nums64' is a callback function, if 'blocknr' is declared with const you might also need to cast function pointer(s). [constParameterCallback] extundelete-0.2.4/src/extundelete.cc:984:76: note: You might need to cast the function pointer here extundelete-0.2.4/src/extundelete.cc:608:58: note: Parameter 'blocknr' can be declared as pointer to const extundelete-0.2.4/src/extundelete.cc:617:58: style: Parameter 'blocknr' can be declared as pointer to const. However it seems that 'block_is_journal' is a callback function, if 'blocknr' is declared with const you might also need to cast function pointer(s). [constParameterCallback] extundelete-0.2.4/src/extundelete.cc:651:58: note: You might need to cast the function pointer here extundelete-0.2.4/src/extundelete.cc:617:58: note: Parameter 'blocknr' can be declared as pointer to const extundelete-0.2.4/src/extundelete.cc:1028:25: style: Variable 'wrapped_descriptor' can be declared as pointer to const [constVariablePointer] extundelete-0.2.4/src/extundelete.cc:1178:39: style: Parameter 'dirent' can be declared as pointer to const. However it seems that 'match_name' is a callback function, if 'dirent' is declared with const you might also need to cast function pointer(s). [constParameterCallback] extundelete-0.2.4/src/extundelete.cc:1332:42: note: You might need to cast the function pointer here extundelete-0.2.4/src/extundelete.cc:1178:39: note: Parameter 'dirent' can be declared as pointer to const extundelete-0.2.4/src/extundelete.cc:1259:82: style: Parameter 'inode' can be declared as pointer to const [constParameterPointer] extundelete-0.2.4/src/extundelete.cc:693:5: performance: Passing the result of c_str() to a function that takes std::string as argument no. 4 is slow and redundant. [stlcstrParam] extundelete-0.2.4/src/extundelete.cc:689:30: style: Consider using std::find_if algorithm instead of a raw loop. [useStlAlgorithm] extundelete-0.2.4/src/extundelete.cc:768:51: error: Memory is allocated but not initialized: buf [uninitdata] extundelete-0.2.4/src/extundelete.cc:1399:34: error: Memory is allocated but not initialized: buf [uninitdata] extundelete-0.2.4/src/extundelete.cc:1502:11: error: Memory is allocated but not initialized: buf2 [uninitdata] extundelete-0.2.4/src/extundelete.cc:783:10: style: Variable 'inode2' is assigned a value that is never used. [unreadVariable] extundelete-0.2.4/src/extundelete.cc:1435:8: style: Variable 'buf2' is allocated memory that is never used. [unusedAllocatedMemory] extundelete-0.2.4/src/extundelete.cc:688:32: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] extundelete-0.2.4/src/extundelete.cc:802:55: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] extundelete-0.2.4/src/extundelete.cc:846:4: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] extundelete-0.2.4/src/extundelete.cc:846:10: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] extundelete-0.2.4/src/extundelete.cc:846:17: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] extundelete-0.2.4/src/extundelete.cc:852:4: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] extundelete-0.2.4/src/extundelete.cc:903:38: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] extundelete-0.2.4/src/extundelete.cc:908:38: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] extundelete-0.2.4/src/extundelete.cc:924:11: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] extundelete-0.2.4/src/extundelete.cc:1130:24: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] extundelete-0.2.4/src/extundelete.cc:1147:55: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] extundelete-0.2.4/src/extundelete.cc:1152:53: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] extundelete-0.2.4/src/extundelete.cc:1156:53: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] extundelete-0.2.4/src/extundelete.cc:1160:55: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] extundelete-0.2.4/src/extundelete.cc:1571:55: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] extundelete-0.2.4/src/insertionops.cc:22:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable endl [valueFlowBailoutIncompleteVar] extundelete-0.2.4/src/insertionops.cc:57:61: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable endl [valueFlowBailoutIncompleteVar] extundelete-0.2.4/src/insertionops.cc:162:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable endl [valueFlowBailoutIncompleteVar] extundelete-0.2.4/src/insertionops.cc:191:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable hex [valueFlowBailoutIncompleteVar] extundelete-0.2.4/src/insertionops.cc:204:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable endl [valueFlowBailoutIncompleteVar] extundelete-0.2.4/src/insertionops.cc:229:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable endl [valueFlowBailoutIncompleteVar] extundelete-0.2.4/src/insertionops.cc:211:53: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] diff: head extundelete-0.2.4/src/block.c:516:40: style:inconclusive: Function 'extundelete_process_dir_block' argument 4 names different: declaration '' definition 'unused'. [funcArgNamesDifferentUnnamed] head extundelete-0.2.4/src/block.c:617:11: style:inconclusive: Function 'extundelete_block_iterate3' argument 6 names different: declaration '' definition 'priv_data'. [funcArgNamesDifferentUnnamed] DONE