2025-05-08 09:22 ftp://ftp.de.debian.org/debian/pool/main/t/template-glib/template-glib_3.36.3.orig.tar.xz cppcheck-options: --library=posix --library=gnu --library=bsd --library=gtk --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: ebc80c0 (2025-05-07 18:59:31 +0200) count: 31 22 elapsed-time: 0.2 0.2 head-timing-info: old-timing-info: head results: template-glib-3.36.3/examples/simple.c:8:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GFile [valueFlowBailoutIncompleteVar] template-glib-3.36.3/src/tmpl-branch-node.h:20:0: error: #error "Only can be included directly." [preprocessorErrorDirective] template-glib-3.36.3/src/main.c:30:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable g_autofree [valueFlowBailoutIncompleteVar] template-glib-3.36.3/src/tmpl-branch-node.h:20:3: error: #error "Only can be included directly." [preprocessorErrorDirective] template-glib-3.36.3/src/main.c:25:31: style: Parameter 'scope' can be declared as pointer to const. However it seems that 'method_missing' is a callback function, if 'scope' is declared with const you might also need to cast function pointer(s). [constParameterCallback] template-glib-3.36.3/src/main.c:68:35: note: You might need to cast the function pointer here template-glib-3.36.3/src/main.c:25:31: note: Parameter 'scope' can be declared as pointer to const template-glib-3.36.3/src/main.c:51:10: style: Variable 'output' can be declared as pointer to const [constVariablePointer] template-glib-3.36.3/src/tmpl-error.h:20:0: error: #error "Only can be included directly." [preprocessorErrorDirective] template-glib-3.36.3/src/tmpl-error.h:20:3: error: #error "Only can be included directly." [preprocessorErrorDirective] template-glib-3.36.3/src/tmpl-condition-node.h:20:0: error: #error "Only can be included directly." [preprocessorErrorDirective] template-glib-3.36.3/src/tmpl-condition-node.h:20:3: error: #error "Only can be included directly." [preprocessorErrorDirective] template-glib-3.36.3/src/tmpl-expr.h:20:0: error: #error "Only can be included directly." [preprocessorErrorDirective] template-glib-3.36.3/src/tmpl-expr.h:20:3: error: #error "Only can be included directly." [preprocessorErrorDirective] template-glib-3.36.3/src/tmpl-iterator.h:20:0: error: #error "Only can be included directly." [preprocessorErrorDirective] template-glib-3.36.3/src/tmpl-iterator.h:20:3: error: #error "Only can be included directly." [preprocessorErrorDirective] template-glib-3.36.3/src/tmpl-scope.h:20:0: error: #error "Only can be included directly." [preprocessorErrorDirective] template-glib-3.36.3/src/tmpl-scope.h:20:3: error: #error "Only can be included directly." [preprocessorErrorDirective] template-glib-3.36.3/src/tmpl-node.h:20:0: error: #error "Only can be included directly." [preprocessorErrorDirective] template-glib-3.36.3/src/tmpl-node.h:20:3: error: #error "Only can be included directly." [preprocessorErrorDirective] template-glib-3.36.3/src/tmpl-token-input-stream.h:20:0: error: #error "Only can be included directly." [preprocessorErrorDirective] template-glib-3.36.3/src/tmpl-token-input-stream.h:20:3: error: #error "Only can be included directly." [preprocessorErrorDirective] template-glib-3.36.3/src/tmpl-token.h:20:0: error: #error "Only can be included directly." [preprocessorErrorDirective] template-glib-3.36.3/src/tmpl-token.h:20:3: error: #error "Only can be included directly." [preprocessorErrorDirective] template-glib-3.36.3/src/tmpl-util.c:39:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_SOURCE_REMOVE [valueFlowBailoutIncompleteVar] template-glib-3.36.3/src/tmpl-util.c:69:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_VALUE_INIT [valueFlowBailoutIncompleteVar] template-glib-3.36.3/src/tmpl-util.c:133:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_TYPE_INVALID [valueFlowBailoutIncompleteVar] template-glib-3.36.3/tests/test-expr.c:46:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_VALUE_INIT [valueFlowBailoutIncompleteVar] template-glib-3.36.3/tests/test-expr.c:30:3: warning: Assert statement calls a function which may have desired side effects: 'g_getenv'. [assertWithSideEffect] template-glib-3.36.3/tests/test-expr.c:61:3: warning: Assert statement calls a function which may have desired side effects: 'g_value_get_double'. [assertWithSideEffect] template-glib-3.36.3/tests/test-template.c:38:3: warning: Assert statement calls a function which may have desired side effects: 'g_getenv'. [assertWithSideEffect] template-glib-3.36.3/src/tmpl-util.c:64:1: error: Memory leak: idle [memleak] template-glib-3.36.3/src/tmpl-util.c:64:1: error: Memory leak: state [memleak] diff: head template-glib-3.36.3/src/tmpl-branch-node.h:20:3: error: #error "Only can be included directly." [preprocessorErrorDirective] head template-glib-3.36.3/src/tmpl-condition-node.h:20:3: error: #error "Only can be included directly." [preprocessorErrorDirective] head template-glib-3.36.3/src/tmpl-error.h:20:3: error: #error "Only can be included directly." [preprocessorErrorDirective] head template-glib-3.36.3/src/tmpl-expr.h:20:3: error: #error "Only can be included directly." [preprocessorErrorDirective] head template-glib-3.36.3/src/tmpl-iterator.h:20:3: error: #error "Only can be included directly." [preprocessorErrorDirective] head template-glib-3.36.3/src/tmpl-node.h:20:3: error: #error "Only can be included directly." [preprocessorErrorDirective] head template-glib-3.36.3/src/tmpl-scope.h:20:3: error: #error "Only can be included directly." [preprocessorErrorDirective] head template-glib-3.36.3/src/tmpl-token-input-stream.h:20:3: error: #error "Only can be included directly." [preprocessorErrorDirective] head template-glib-3.36.3/src/tmpl-token.h:20:3: error: #error "Only can be included directly." [preprocessorErrorDirective] DONE