2024-04-24 13:23 ftp://ftp.de.debian.org/debian/pool/main/e/etherdfs-server/etherdfs-server_0~20180203.orig.tar.xz 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.5.0-28-generic-x86_64-with-glibc2.35 python: 3.10.12 client-version: 1.3.57 compiler: g++ (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0 cppcheck: head 2.14.0 head-info: 9fab9b9 (2024-04-24 10:46:48 +0200) count: 46 46 elapsed-time: 3.5 3.5 head-timing-info: old-timing-info: head results: etherdfs-server-0~20180203/ethersrv-linux.c:251:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] etherdfs-server-0~20180203/ethersrv-linux.c:679:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] etherdfs-server-0~20180203/ethersrv-linux.c:809:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_IGN [valueFlowBailoutIncompleteVar] etherdfs-server-0~20180203/ethersrv-linux.c:857:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optind [valueFlowBailoutIncompleteVar] etherdfs-server-0~20180203/ethersrv-linux.c:238:12: style: Redundant assignment of 'reqflags' to itself. [selfAssignment] etherdfs-server-0~20180203/ethersrv-linux.c:144:63: style: Parameter 'clientmac' can be declared as pointer to const [constParameterPointer] etherdfs-server-0~20180203/ethersrv-linux.c:209:108: style: Parameter 'mymac' can be declared as pointer to const [constParameterPointer] etherdfs-server-0~20180203/ethersrv-linux.c:824:38: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] etherdfs-server-0~20180203/ethersrv-linux.c:837:9: style: Variable 'intname' can be declared as pointer to const [constVariablePointer] etherdfs-server-0~20180203/ethersrv-linux.c:238:12: style: Variable 'reqflags' is assigned a value that is never used. [unreadVariable] etherdfs-server-0~20180203/ethersrv-linux.c:662:29: style: Variable '((uint32_t*)answ)[0]' is assigned a value that is never used. [unreadVariable] etherdfs-server-0~20180203/fs.c:85:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] etherdfs-server-0~20180203/fs.c:199:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] etherdfs-server-0~20180203/fs.c:215:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] etherdfs-server-0~20180203/fs.c:239:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sdirlist [valueFlowBailoutIncompleteVar] etherdfs-server-0~20180203/fs.c:268:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] etherdfs-server-0~20180203/fs.c:317:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] etherdfs-server-0~20180203/fs.c:385:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] etherdfs-server-0~20180203/fs.c:441:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DT_DIR [valueFlowBailoutIncompleteVar] etherdfs-server-0~20180203/fs.c:465:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] etherdfs-server-0~20180203/fs.c:141:11: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] etherdfs-server-0~20180203/fs.c:237:14: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] etherdfs-server-0~20180203/fs.c:438:14: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] etherdfs-server-0~20180203/fs.c:171:76: style:inconclusive: Function 'getitemattr' argument 3 names different: declaration 'isfat' definition 'fatflag'. [funcArgNamesDifferent] etherdfs-server-0~20180203/fs.h:43:76: note: Function 'getitemattr' argument 3 names different: declaration 'isfat' definition 'fatflag'. etherdfs-server-0~20180203/fs.c:171:76: note: Function 'getitemattr' argument 3 names different: declaration 'isfat' definition 'fatflag'. etherdfs-server-0~20180203/fs.c:260:61: style:inconclusive: Function 'findfile' argument 3 names different: declaration 'tmpl' definition 'fcbtmpl'. [funcArgNamesDifferent] etherdfs-server-0~20180203/fs.h:49:61: note: Function 'findfile' argument 3 names different: declaration 'tmpl' definition 'fcbtmpl'. etherdfs-server-0~20180203/fs.c:260:61: note: Function 'findfile' argument 3 names different: declaration 'tmpl' definition 'fcbtmpl'. etherdfs-server-0~20180203/fs.c:260:106: style:inconclusive: Function 'findfile' argument 5 names different: declaration 'fpos' definition 'nth'. [funcArgNamesDifferent] etherdfs-server-0~20180203/fs.h:49:103: note: Function 'findfile' argument 5 names different: declaration 'fpos' definition 'nth'. etherdfs-server-0~20180203/fs.c:260:106: note: Function 'findfile' argument 5 names different: declaration 'fpos' definition 'nth'. etherdfs-server-0~20180203/fs.c:52:32: style: Parameter 'f' can be declared as pointer to const [constParameterPointer] etherdfs-server-0~20180203/fs.c:140:14: style: Variable 'ltime' can be declared as pointer to const [constVariablePointer] etherdfs-server-0~20180203/fs.c:158:33: style: Parameter 'msk' can be declared as pointer to const [constParameterPointer] etherdfs-server-0~20180203/fs.c:158:44: style: Parameter 'fil' can be declared as pointer to const [constParameterPointer] etherdfs-server-0~20180203/fs.c:213:23: style: Parameter 'i' can be declared as pointer to const [constParameterPointer] etherdfs-server-0~20180203/fs.c:228:18: style: Variable 'diridx' can be declared as pointer to const [constVariablePointer] etherdfs-server-0~20180203/fs.c:307:43: style: Parameter 'd' can be declared as pointer to const [constParameterPointer] etherdfs-server-0~20180203/fs.c:307:52: style: Parameter 'fn' can be declared as pointer to const [constParameterPointer] etherdfs-server-0~20180203/fs.c:339:19: style: Parameter 'd' can be declared as pointer to const [constParameterPointer] etherdfs-server-0~20180203/fs.c:344:18: style: Parameter 'd' can be declared as pointer to const [constParameterPointer] etherdfs-server-0~20180203/fs.c:350:21: style: Parameter 'd' can be declared as pointer to const [constParameterPointer] etherdfs-server-0~20180203/fs.c:358:9: style: Variable 'fname' can be declared as pointer to const [constVariablePointer] etherdfs-server-0~20180203/fs.c:376:31: style: Parameter 'buff' can be declared as pointer to const [constParameterPointer] etherdfs-server-0~20180203/fs.c:378:9: style: Variable 'fname' can be declared as pointer to const [constVariablePointer] etherdfs-server-0~20180203/fs.c:405:20: style: Parameter 'pattern' can be declared as pointer to const [constParameterPointer] etherdfs-server-0~20180203/fs.c:456:19: style: Parameter 'fn1' can be declared as pointer to const [constParameterPointer] etherdfs-server-0~20180203/fs.c:456:30: style: Parameter 'fn2' can be declared as pointer to const [constParameterPointer] etherdfs-server-0~20180203/fs.c:461:17: style: Parameter 'd' can be declared as pointer to const [constParameterPointer] etherdfs-server-0~20180203/lock.c:14:18: style: Parameter 'lockfile' can be declared as pointer to const [constParameterPointer] etherdfs-server-0~20180203/lock.c:30:21: style: Parameter 'lockfile' can be declared as pointer to const [constParameterPointer] diff: DONE