2026-01-27 15:01 ftp://ftp.de.debian.org/debian/pool/main/g/gitg/gitg_44.orig.tar.xz cppcheck-options: --library=posix --library=gnu --library=bsd --library=gtk --library=cairo --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 -j4 platform: Linux-6.12.63+deb13-amd64-x86_64-with-glibc2.41 python: 3.13.5 client-version: 1.3.69 compiler: g++ (20250906) 15.2.0 cppcheck: head 2.19.0 head-info: 0c2b64b (2026-01-27 11:35:55 +0100) count: 39 39 elapsed-time: 0.1 0.4 head-timing-info: old-timing-info: head results: gitg-44/libgitg/gitg-platform-support-osx.c:50:2: error: syntax error [syntaxError] gitg-44/contrib/ide/ide-doap-person.c:100:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ide_doap_person_parent_class [valueFlowBailoutIncompleteVar] gitg-44/contrib/ide/ide-doap-person.c:163:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_PARAM_STATIC_STRINGS [valueFlowBailoutIncompleteVar] gitg-44/contrib/ide/ide-doap-person.c:95:18: style: Variable 'self' can be declared as pointer to const [constVariablePointer] gitg-44/contrib/ide/ide-doap-person.c:107:43: style: Parameter 'pspec' can be declared as pointer to const. However it seems that 'ide_doap_person_get_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gitg-44/contrib/ide/ide-doap-person.c:155:32: note: You might need to cast the function pointer here gitg-44/contrib/ide/ide-doap-person.c:107:43: note: Parameter 'pspec' can be declared as pointer to const gitg-44/contrib/ide/ide-doap-person.c:130:45: style: Parameter 'pspec' can be declared as pointer to const. However it seems that 'ide_doap_person_set_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gitg-44/contrib/ide/ide-doap-person.c:156:32: note: You might need to cast the function pointer here gitg-44/contrib/ide/ide-doap-person.c:130:45: note: Parameter 'pspec' can be declared as pointer to const gitg-44/contrib/ide/ide-doap-person.c:176:38: style: Parameter 'self' can be declared as pointer to const [constParameterPointer] gitg-44/libgitg/gitg-platform-support-win32.c:47:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_PRIORITY_DEFAULT [valueFlowBailoutIncompleteVar] gitg-44/libgitg/gitg-platform-support-win32.c:125:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] gitg-44/libgitg/gitg-platform-support-win32.c:140:4: warning: Return value of function freopen() is not used. [ignoredReturnValue] gitg-44/libgitg/gitg-platform-support-win32.c:141:4: warning: Return value of function freopen() is not used. [ignoredReturnValue] gitg-44/libgitg/gitg-platform-support-win32.c:36:63: style: Parameter 'display' can be declared as pointer to const [constParameterPointer] gitg-44/libgitg/gitg-platform-support-win32.c:58:61: style: Parameter 'display' can be declared as pointer to const [constParameterPointer] gitg-44/libgitg/gitg-platform-support-win32.c:60:61: style: Parameter 'hot_x' can be declared as pointer to const [constParameterPointer] gitg-44/libgitg/gitg-platform-support-win32.c:61:61: style: Parameter 'hot_y' can be declared as pointer to const [constParameterPointer] gitg-44/libgitg/gitg-platform-support-win32.c:62:61: style: Parameter 'width' can be declared as pointer to const [constParameterPointer] gitg-44/libgitg/gitg-platform-support-win32.c:63:61: style: Parameter 'height' can be declared as pointer to const [constParameterPointer] gitg-44/contrib/xml/xml-reader.c:120:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable xml_reader_parent_class [valueFlowBailoutIncompleteVar] gitg-44/contrib/xml/xml-reader.c:183:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_PARAM_STATIC_STRINGS [valueFlowBailoutIncompleteVar] gitg-44/contrib/xml/xml-reader.c:320:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XML_PARSE_RECOVER [valueFlowBailoutIncompleteVar] gitg-44/contrib/ide/ide-doap.c:304:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable g_ptr_array_unref [valueFlowBailoutIncompleteVar] gitg-44/contrib/ide/ide-doap.c:422:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_PARAM_STATIC_STRINGS [valueFlowBailoutIncompleteVar] gitg-44/contrib/ide/ide-doap.c:495:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IdeDoapPerson [valueFlowBailoutIncompleteVar] gitg-44/contrib/ide/ide-doap.c:599:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XmlReader [valueFlowBailoutIncompleteVar] gitg-44/contrib/ide/ide-doap.c:619:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XmlReader [valueFlowBailoutIncompleteVar] gitg-44/libgitg/gitg-platform-support.c:46:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_PRIORITY_DEFAULT [valueFlowBailoutIncompleteVar] gitg-44/libgitg/gitg-platform-support.c:111:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GITG_LIBDIR [valueFlowBailoutIncompleteVar] gitg-44/libgitg/gitg-platform-support.c:117:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GITG_LOCALEDIR [valueFlowBailoutIncompleteVar] gitg-44/libgitg/gitg-platform-support.c:123:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GITG_DATADIR [valueFlowBailoutIncompleteVar] gitg-44/libgitg/gitg-platform-support.c:141:8: portability: Non reentrant function 'getpwnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwnam_r'. [prohibitedgetpwnamCalled] gitg-44/libgitg/gitg-platform-support.c:35:63: style: Parameter 'display' can be declared as pointer to const [constParameterPointer] gitg-44/contrib/xml/xml-reader.c:277:14: style: Condition 'length==-1' is always false [knownConditionTrueFalse] gitg-44/contrib/xml/xml-reader.c:127:38: style: Parameter 'pspec' can be declared as pointer to const. However it seems that 'xml_reader_get_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gitg-44/contrib/xml/xml-reader.c:175:32: note: You might need to cast the function pointer here gitg-44/contrib/xml/xml-reader.c:127:38: note: Parameter 'pspec' can be declared as pointer to const gitg-44/contrib/xml/xml-reader.c:129:15: style: Variable 'reader' can be declared as pointer to const [constVariablePointer] gitg-44/contrib/xml/xml-reader.c:150:40: style: Parameter 'pspec' can be declared as pointer to const. However it seems that 'xml_reader_set_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gitg-44/contrib/xml/xml-reader.c:176:32: note: You might need to cast the function pointer here gitg-44/contrib/xml/xml-reader.c:150:40: note: Parameter 'pspec' can be declared as pointer to const gitg-44/contrib/xml/xml-reader.c:206:29: style: Parameter 'reader' can be declared as pointer to const [constParameterPointer] gitg-44/contrib/ide/ide-doap.c:318:36: style: Parameter 'pspec' can be declared as pointer to const. However it seems that 'ide_doap_get_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gitg-44/contrib/ide/ide-doap.c:414:32: note: You might need to cast the function pointer here gitg-44/contrib/ide/ide-doap.c:318:36: note: Parameter 'pspec' can be declared as pointer to const gitg-44/contrib/ide/ide-doap.c:365:38: style: Parameter 'pspec' can be declared as pointer to const. However it seems that 'ide_doap_set_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gitg-44/contrib/ide/ide-doap.c:415:32: note: You might need to cast the function pointer here gitg-44/contrib/ide/ide-doap.c:365:38: note: Parameter 'pspec' can be declared as pointer to const gitg-44/contrib/ide/ide-doap.c:477:25: style: Parameter 'self' can be declared as pointer to const [constParameterPointer] diff: DONE