2025-08-30 06:54 ftp://ftp.de.debian.org/debian/pool/main/c/ctpl/ctpl_0.3.5+dfsg.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 -j4 platform: Linux-6.12.41+deb13-amd64-x86_64-with-glibc2.41 python: 3.13.5 client-version: 1.3.67 compiler: g++ (Debian 14.2.0-19) 14.2.0 cppcheck: head 2.18.0 head-info: 478055e (2025-08-29 18:53:24 +0200) count: 35 42 elapsed-time: 0.1 0.4 head-timing-info: old-timing-info: head results: ctpl-0.3.5/src/ctpl-i18n.h:40:15: error: There is an unknown macro here somewhere. Configuration is required. If ctpl_gettext is a macro then please configure it. [unknownMacro] ctpl-0.3.5/src/ctpl-environ.h:21:0: error: #error "Only can be included directly." [preprocessorErrorDirective] ctpl-0.3.5/src/ctpl-environ.h:21:3: error: #error "Only can be included directly." [preprocessorErrorDirective] ctpl-0.3.5/src/ctpl-eval.h:21:0: error: #error "Only can be included directly." [preprocessorErrorDirective] ctpl-0.3.5/src/ctpl-eval.h:21:3: error: #error "Only can be included directly." [preprocessorErrorDirective] ctpl-0.3.5/src/ctpl-input-stream.h:21:0: error: #error "Only can be included directly." [preprocessorErrorDirective] ctpl-0.3.5/src/ctpl-input-stream.h:21:3: error: #error "Only can be included directly." [preprocessorErrorDirective] ctpl-0.3.5/src/ctpl-io.h:21:0: error: #error "Only can be included directly." [preprocessorErrorDirective] ctpl-0.3.5/src/ctpl-io.h:21:3: error: #error "Only can be included directly." [preprocessorErrorDirective] ctpl-0.3.5/src/ctpl-lexer.h:21:0: error: #error "Only can be included directly." [preprocessorErrorDirective] ctpl-0.3.5/src/ctpl-lexer-expr.h:21:0: error: #error "Only can be included directly." [preprocessorErrorDirective] ctpl-0.3.5/src/ctpl-lexer.h:21:3: error: #error "Only can be included directly." [preprocessorErrorDirective] ctpl-0.3.5/src/ctpl-lexer-expr.h:21:3: error: #error "Only can be included directly." [preprocessorErrorDirective] ctpl-0.3.5/src/ctpl-mathutils.c:53:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] ctpl-0.3.5/src/ctpl-mathutils.c:73:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] ctpl-0.3.5/src/ctpl-output-stream.h:21:0: error: #error "Only can be included directly." [preprocessorErrorDirective] ctpl-0.3.5/src/ctpl-output-stream.h:21:3: error: #error "Only can be included directly." [preprocessorErrorDirective] ctpl-0.3.5/src/ctpl-parser.h:21:0: error: #error "Only can be included directly." [preprocessorErrorDirective] ctpl-0.3.5/src/ctpl-parser.h:21:3: error: #error "Only can be included directly." [preprocessorErrorDirective] ctpl-0.3.5/src/ctpl-token.h:21:0: error: #error "Only can be included directly." [preprocessorErrorDirective] ctpl-0.3.5/src/ctpl-token.h:21:3: error: #error "Only can be included directly." [preprocessorErrorDirective] ctpl-0.3.5/src/ctpl-version.h:21:0: error: #error "Only can be included directly." [preprocessorErrorDirective] ctpl-0.3.5/src/ctpl-version.h:21:3: error: #error "Only can be included directly." [preprocessorErrorDirective] ctpl-0.3.5/src/ctpl-value.h:21:0: error: #error "Only can be included directly." [preprocessorErrorDirective] ctpl-0.3.5/src/ctpl-value.h:21:3: error: #error "Only can be included directly." [preprocessorErrorDirective] ctpl-0.3.5/src/ctpl.c:416:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] ctpl-0.3.5/src/ctpl.c:416:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] ctpl-0.3.5/testsuite/ctpl-test-lib.c:38:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] ctpl-0.3.5/testsuite/ctpl-test-lib.c:38:10: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] ctpl-0.3.5/testsuite/float-test.c:164:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] ctpl-0.3.5/testsuite/float-test.c:164:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] ctpl-0.3.5/testsuite/read-number-test.c:46:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] ctpl-0.3.5/testsuite/read-number-test.c:46:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] ctpl-0.3.5/testsuite/parsing-tests.c:224:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] ctpl-0.3.5/testsuite/parsing-tests.c:224:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] diff: head ctpl-0.3.5/src/ctpl.c:416:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] head ctpl-0.3.5/src/ctpl.c:416:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] 2.18.0 ctpl-0.3.5/src/ctpl.c:91:13: error: There is an unknown macro here somewhere. Configuration is required. If G_GNUC_PRINTF is a macro then please configure it. [unknownMacro] 2.18.0 ctpl-0.3.5/testsuite/ctpl-test-lib.c:34:19: style: Variable 'p' can be declared as pointer to const [constVariablePointer] head ctpl-0.3.5/testsuite/ctpl-test-lib.c:38:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] head ctpl-0.3.5/testsuite/ctpl-test-lib.c:38:10: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] 2.18.0 ctpl-0.3.5/testsuite/float-test.c:155:3: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 ctpl-0.3.5/testsuite/float-test.c:155:3: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] head ctpl-0.3.5/testsuite/float-test.c:164:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] head ctpl-0.3.5/testsuite/float-test.c:164:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] 2.18.0 ctpl-0.3.5/testsuite/float-test.c:86:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.18.0 ctpl-0.3.5/testsuite/parsing-tests.c:117:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_FILE_ERROR_NOENT [valueFlowBailoutIncompleteVar] 2.18.0 ctpl-0.3.5/testsuite/parsing-tests.c:142:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.18.0 ctpl-0.3.5/testsuite/parsing-tests.c:181:35: style: Parameter 'user_data' can be declared as pointer to const. However it seems that 'success_tests_item' is a callback function, if 'user_data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ctpl-0.3.5/testsuite/parsing-tests.c:234:23: note: You might need to cast the function pointer here ctpl-0.3.5/testsuite/parsing-tests.c:181:35: note: Parameter 'user_data' can be declared as pointer to const 2.18.0 ctpl-0.3.5/testsuite/parsing-tests.c:186:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.18.0 ctpl-0.3.5/testsuite/parsing-tests.c:196:32: style: Parameter 'user_data' can be declared as pointer to const. However it seems that 'fail_tests_item' is a callback function, if 'user_data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ctpl-0.3.5/testsuite/parsing-tests.c:236:23: note: You might need to cast the function pointer here ctpl-0.3.5/testsuite/parsing-tests.c:196:32: note: Parameter 'user_data' can be declared as pointer to const 2.18.0 ctpl-0.3.5/testsuite/parsing-tests.c:199:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.18.0 ctpl-0.3.5/testsuite/parsing-tests.c:220:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head ctpl-0.3.5/testsuite/parsing-tests.c:224:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] head ctpl-0.3.5/testsuite/parsing-tests.c:224:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] 2.18.0 ctpl-0.3.5/testsuite/parsing-tests.c:233:3: error: Memory pointed to by 'path' is freed twice. [doubleFree] ctpl-0.3.5/testsuite/parsing-tests.c:230:3: note: Memory pointed to by 'path' is freed twice. ctpl-0.3.5/testsuite/parsing-tests.c:233:3: note: Memory pointed to by 'path' is freed twice. 2.18.0 ctpl-0.3.5/testsuite/parsing-tests.c:235:3: error: Memory pointed to by 'path' is freed twice. [doubleFree] ctpl-0.3.5/testsuite/parsing-tests.c:230:3: note: Memory pointed to by 'path' is freed twice. ctpl-0.3.5/testsuite/parsing-tests.c:235:3: note: Memory pointed to by 'path' is freed twice. 2.18.0 ctpl-0.3.5/testsuite/parsing-tests.c:238:3: error: Memory pointed to by 'path' is freed twice. [doubleFree] ctpl-0.3.5/testsuite/parsing-tests.c:230:3: note: Memory pointed to by 'path' is freed twice. ctpl-0.3.5/testsuite/parsing-tests.c:238:3: note: Memory pointed to by 'path' is freed twice. 2.18.0 ctpl-0.3.5/testsuite/parsing-tests.c:95:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head ctpl-0.3.5/testsuite/read-number-test.c:46:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] head ctpl-0.3.5/testsuite/read-number-test.c:46:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] 2.18.0 ctpl-0.3.5/testsuite/read-number-test.c:55:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] DONE