2025-05-07 07:31 ftp://ftp.de.debian.org/debian/pool/main/p/python-pqueue/python-pqueue_0.2.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 -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: 8e656e5 (2025-05-06 23:42:00 +0200) count: 15 15 elapsed-time: 0.1 0.1 head-timing-info: old-timing-info: head results: python-pqueue-0.2.orig/pqueuemodule.c:285:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyExc_ValueError [valueFlowBailoutIncompleteVar] python-pqueue-0.2.orig/pqueuemodule.c:365:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyExc_IndexError [valueFlowBailoutIncompleteVar] python-pqueue-0.2.orig/pqueuemodule.c:500:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyExc_IndexError [valueFlowBailoutIncompleteVar] python-pqueue-0.2.orig/pqueuemodule.c:600:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ptr [valueFlowBailoutIncompleteVar] python-pqueue-0.2.orig/pqueuemodule.c:673:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyExc_ValueError [valueFlowBailoutIncompleteVar] python-pqueue-0.2.orig/pqueuemodule.c:707:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Py_None [valueFlowBailoutIncompleteVar] python-pqueue-0.2.orig/pqueuemodule.c:730:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ptr [valueFlowBailoutIncompleteVar] python-pqueue-0.2.orig/pqueuemodule.c:804:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyExc_AttributeError [valueFlowBailoutIncompleteVar] python-pqueue-0.2.orig/pqueuemodule.c:765:14: style: Local variable 'ret' shadows outer variable [shadowVariable] python-pqueue-0.2.orig/pqueuemodule.c:761:7: note: Shadowed declaration python-pqueue-0.2.orig/pqueuemodule.c:765:14: note: Shadow variable python-pqueue-0.2.orig/pqueuemodule.c:357:12: style: Parameter 'args' can be declared as pointer to const. However it seems that 'pqueue_peek' is a callback function, if 'args' is declared with const you might also need to cast function pointer(s). [constParameterCallback] python-pqueue-0.2.orig/pqueuemodule.c:575:24: note: You might need to cast the function pointer here python-pqueue-0.2.orig/pqueuemodule.c:357:12: note: Parameter 'args' can be declared as pointer to const python-pqueue-0.2.orig/pqueuemodule.c:478:12: style: Parameter 'args' can be declared as pointer to const. However it seems that 'pqueue_pop' is a callback function, if 'args' is declared with const you might also need to cast function pointer(s). [constParameterCallback] python-pqueue-0.2.orig/pqueuemodule.c:576:24: note: You might need to cast the function pointer here python-pqueue-0.2.orig/pqueuemodule.c:478:12: note: Parameter 'args' can be declared as pointer to const python-pqueue-0.2.orig/pqueuemodule.c:585:16: style: Parameter 'pqp' can be declared as pointer to const. However it seems that 'pqueue_length' is a callback function, if 'pqp' is declared with const you might also need to cast function pointer(s). [constParameterCallback] python-pqueue-0.2.orig/pqueuemodule.c:785:11: note: You might need to cast the function pointer here python-pqueue-0.2.orig/pqueuemodule.c:585:16: note: Parameter 'pqp' can be declared as pointer to const python-pqueue-0.2.orig/pqueuemodule.c:841:12: style: Parameter 'self' can be declared as pointer to const. However it seems that 'pqueue_PQueue' is a callback function, if 'self' is declared with const you might also need to cast function pointer(s). [constParameterCallback] python-pqueue-0.2.orig/pqueuemodule.c:851:26: note: You might need to cast the function pointer here python-pqueue-0.2.orig/pqueuemodule.c:841:12: note: Parameter 'self' can be declared as pointer to const python-pqueue-0.2.orig/pqueuemodule.c:842:12: style: Parameter 'args' can be declared as pointer to const. However it seems that 'pqueue_PQueue' is a callback function, if 'args' is declared with const you might also need to cast function pointer(s). [constParameterCallback] python-pqueue-0.2.orig/pqueuemodule.c:851:26: note: You might need to cast the function pointer here python-pqueue-0.2.orig/pqueuemodule.c:842:12: note: Parameter 'args' can be declared as pointer to const python-pqueue-0.2.orig/pqueuemodule.c:269:14: style: Unused variable: newdata [unusedVariable] diff: DONE