2025-05-07 07:37 ftp://ftp.de.debian.org/debian/pool/main/p/python-scandir/python-scandir_1.10.0.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=python --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-59-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.67 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04) 14.2.0 cppcheck: head 2.17.0 head-info: 8e656e5 (2025-05-06 23:42:00 +0200) count: 14 14 elapsed-time: 0.2 0.1 head-timing-info: old-timing-info: head results: scandir-1.10.0/_scandir.c:420:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Py_None [valueFlowBailoutIncompleteVar] scandir-1.10.0/_scandir.c:778:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Py_None [valueFlowBailoutIncompleteVar] scandir-1.10.0/_scandir.c:894:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyExc_OSError [valueFlowBailoutIncompleteVar] scandir-1.10.0/_scandir.c:1010:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Py_FileSystemDefaultEncoding [valueFlowBailoutIncompleteVar] scandir-1.10.0/_scandir.c:1106:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyExc_OSError [valueFlowBailoutIncompleteVar] scandir-1.10.0/_scandir.c:1494:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Py_FileSystemDefaultEncoding [valueFlowBailoutIncompleteVar] scandir-1.10.0/_scandir.c:1612:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyExc_StopIteration [valueFlowBailoutIncompleteVar] scandir-1.10.0/_scandir.c:1755:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] scandir-1.10.0/_scandir.c:1816:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable name [valueFlowBailoutIncompleteVar] scandir-1.10.0/_scandir.c:1828:5: warning: Return value of function PyModule_AddObject() is not used. [ignoredReturnValue] scandir-1.10.0/_scandir.c:1619:19: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] scandir-1.10.0/_scandir.c:1091:5: style: Variable 'PyId_st_mode' can be declared as pointer to const [constVariablePointer] scandir-1.10.0/_scandir.c:1434:26: style: Parameter 'path_narrow' can be declared as pointer to const [constParameterPointer] scandir-1.10.0/_scandir.c:1434:45: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] diff: DONE