2025-07-05 12:07 ftp://ftp.de.debian.org/debian/pool/main/p/python-gammu/python-gammu_3.2.4.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 -j6 platform: Linux-6.1.0-37-amd64-x86_64-with-glibc2.36 python: 3.11.2 client-version: 1.3.67 compiler: g++ (Debian 12.2.0-14+deb12u1) 12.2.0 cppcheck: head 2.17.0 head-info: 9b11b6b (2025-07-04 16:03:30 +0200) count: 56 56 elapsed-time: 0.1 0.1 head-timing-info: old-timing-info: head results: python-gammu-3.2.4/gammu/src/convertors/call.c:64:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyExc_ValueError [valueFlowBailoutIncompleteVar] python-gammu-3.2.4/gammu/src/convertors/bitmap.c:444:8: error: There is an unknown macro here somewhere. Configuration is required. If PY_FORMAT_SIZE_T is a macro then please configure it. [unknownMacro] python-gammu-3.2.4/gammu/src/convertors/file.c:275:10: error: There is an unknown macro here somewhere. Configuration is required. If PY_FORMAT_SIZE_T is a macro then please configure it. [unknownMacro] python-gammu-3.2.4/gammu/src/convertors/calendar.c:582:22: error: There is an unknown macro here somewhere. Configuration is required. If PY_FORMAT_SIZE_T is a macro then please configure it. [unknownMacro] python-gammu-3.2.4/gammu/src/convertors/diverts.c:30:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GSM_DIVERT_VoiceCalls [valueFlowBailoutIncompleteVar] python-gammu-3.2.4/gammu/src/convertors/diverts.c:64:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyExc_ValueError [valueFlowBailoutIncompleteVar] python-gammu-3.2.4/gammu/src/convertors/diverts.c:75:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GSM_DIVERT_Busy [valueFlowBailoutIncompleteVar] python-gammu-3.2.4/gammu/src/convertors/diverts.c:109:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyExc_ValueError [valueFlowBailoutIncompleteVar] python-gammu-3.2.4/gammu/src/convertors/diverts.c:126:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Number [valueFlowBailoutIncompleteVar] python-gammu-3.2.4/gammu/src/convertors/base.c:41:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Py_None [valueFlowBailoutIncompleteVar] python-gammu-3.2.4/gammu/src/convertors/base.c:108:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyExc_ValueError [valueFlowBailoutIncompleteVar] python-gammu-3.2.4/gammu/src/convertors/base.c:125:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyExc_ValueError [valueFlowBailoutIncompleteVar] python-gammu-3.2.4/gammu/src/convertors/base.c:165:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyExc_ValueError [valueFlowBailoutIncompleteVar] python-gammu-3.2.4/gammu/src/convertors/base.c:197:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GSM_DateTime [valueFlowBailoutIncompleteVar] python-gammu-3.2.4/gammu/src/convertors/base.c:223:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GSM_DateTime [valueFlowBailoutIncompleteVar] python-gammu-3.2.4/gammu/src/convertors/base.c:247:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyExc_ValueError [valueFlowBailoutIncompleteVar] python-gammu-3.2.4/gammu/src/convertors/base.c:287:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyExc_ValueError [valueFlowBailoutIncompleteVar] python-gammu-3.2.4/gammu/src/convertors/base.c:313:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyExc_ValueError [valueFlowBailoutIncompleteVar] python-gammu-3.2.4/gammu/src/convertors/misc.c:29:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Category_ToDo [valueFlowBailoutIncompleteVar] python-gammu-3.2.4/gammu/src/convertors/misc.c:46:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyExc_ValueError [valueFlowBailoutIncompleteVar] python-gammu-3.2.4/gammu/src/convertors/misc.c:60:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyExc_MemoryError [valueFlowBailoutIncompleteVar] python-gammu-3.2.4/gammu/src/convertors/misc.c:80:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MEM_INVALID [valueFlowBailoutIncompleteVar] python-gammu-3.2.4/gammu/src/convertors/misc.c:96:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable USSD_Unknown [valueFlowBailoutIncompleteVar] python-gammu-3.2.4/gammu/src/convertors/misc.c:143:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyExc_ValueError [valueFlowBailoutIncompleteVar] python-gammu-3.2.4/gammu/src/convertors/ringtone.c:616:8: error: There is an unknown macro here somewhere. Configuration is required. If PY_FORMAT_SIZE_T is a macro then please configure it. [unknownMacro] python-gammu-3.2.4/gammu/src/convertors/memory.c:400:22: error: There is an unknown macro here somewhere. Configuration is required. If PY_FORMAT_SIZE_T is a macro then please configure it. [unknownMacro] python-gammu-3.2.4/gammu/src/convertors/time.c:32:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Py_None [valueFlowBailoutIncompleteVar] python-gammu-3.2.4/gammu/src/convertors/base.c:37:8: style: Variable 's' can be declared as pointer to const [constVariablePointer] python-gammu-3.2.4/gammu/src/convertors/time.c:79:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Py_None [valueFlowBailoutIncompleteVar] python-gammu-3.2.4/gammu/src/convertors/base.c:120:8: style: Variable 's' can be declared as pointer to const [constVariablePointer] python-gammu-3.2.4/gammu/src/convertors/time.c:178:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Py_None [valueFlowBailoutIncompleteVar] python-gammu-3.2.4/gammu/src/convertors/base.c:242:8: style: Variable 'ps' can be declared as pointer to const [constVariablePointer] python-gammu-3.2.4/gammu/src/convertors/time.c:220:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Py_None [valueFlowBailoutIncompleteVar] python-gammu-3.2.4/gammu/src/convertors/base.c:307:17: style: Variable 'data' can be declared as pointer to const [constVariablePointer] python-gammu-3.2.4/gammu/src/convertors/todo.c:347:22: error: There is an unknown macro here somewhere. Configuration is required. If PY_FORMAT_SIZE_T is a macro then please configure it. [unknownMacro] python-gammu-3.2.4/gammu/src/convertors/string.c:36:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyExc_ValueError [valueFlowBailoutIncompleteVar] python-gammu-3.2.4/gammu/src/convertors/string.c:68:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyExc_MemoryError [valueFlowBailoutIncompleteVar] python-gammu-3.2.4/gammu/src/convertors/string.c:121:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyExc_MemoryError [valueFlowBailoutIncompleteVar] python-gammu-3.2.4/gammu/src/convertors/string.c:182:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyExc_MemoryError [valueFlowBailoutIncompleteVar] python-gammu-3.2.4/gammu/src/convertors/sms.c:1127:8: error: There is an unknown macro here somewhere. Configuration is required. If PY_FORMAT_SIZE_T is a macro then please configure it. [unknownMacro] python-gammu-3.2.4/gammu/src/data.c:35:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GSM_Countries [valueFlowBailoutIncompleteVar] python-gammu-3.2.4/gammu/src/convertors/wap.c:49:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyExc_ValueError [valueFlowBailoutIncompleteVar] python-gammu-3.2.4/gammu/src/convertors/wap.c:60:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GSM_MMS_Personal [valueFlowBailoutIncompleteVar] python-gammu-3.2.4/gammu/src/convertors/wap.c:97:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyExc_ValueError [valueFlowBailoutIncompleteVar] python-gammu-3.2.4/gammu/src/convertors/wap.c:185:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyExc_ValueError [valueFlowBailoutIncompleteVar] python-gammu-3.2.4/gammu/src/misc.c:36:1: error: There is an unknown macro here somewhere. Configuration is required. If PRINTF_STYLE is a macro then please configure it. [unknownMacro] python-gammu-3.2.4/gammu/src/errors.c:35:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERR_NONE [valueFlowBailoutIncompleteVar] python-gammu-3.2.4/gammu/src/errors.c:99:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERR_NONE [valueFlowBailoutIncompleteVar] python-gammu-3.2.4/gammu/src/smsd.c:71:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] python-gammu-3.2.4/gammu/src/smsd.c:96:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Py_None [valueFlowBailoutIncompleteVar] python-gammu-3.2.4/gammu/src/smsd.c:135:62: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyList_Type [valueFlowBailoutIncompleteVar] python-gammu-3.2.4/gammu/src/smsd.c:230:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] python-gammu-3.2.4/gammu/src/smsd.c:313:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] python-gammu-3.2.4/gammu/src/smsd.c:82:65: style: Parameter 'args' can be declared as pointer to const. However it seems that 'Py_SMSD_Shutdown' is a callback function, if 'args' is declared with const you might also need to cast function pointer(s). [constParameterCallback] python-gammu-3.2.4/gammu/src/smsd.c:153:29: note: You might need to cast the function pointer here python-gammu-3.2.4/gammu/src/smsd.c:82:65: note: Parameter 'args' can be declared as pointer to const python-gammu-3.2.4/gammu/src/smsd.c:101:66: style: Parameter 'args' can be declared as pointer to const. However it seems that 'Py_SMSD_GetStatus' is a callback function, if 'args' is declared with const you might also need to cast function pointer(s). [constParameterCallback] python-gammu-3.2.4/gammu/src/smsd.c:154:30: note: You might need to cast the function pointer here python-gammu-3.2.4/gammu/src/smsd.c:101:66: note: Parameter 'args' can be declared as pointer to const python-gammu-3.2.4/gammu/src/gammu.c:6524:46: error: There is an unknown macro here somewhere. Configuration is required. If GAMMU_VERSION is a macro then please configure it. [unknownMacro] diff: DONE