2025-07-08 16:00 ftp://ftp.de.debian.org/debian/pool/main/h/haskell-libyaml/haskell-libyaml_0.1.4.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --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 -j1 platform: Linux-6.8.0-63-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.67 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04) 14.2.0 cppcheck: head 2.17.0 head-info: 8f3d36a (2025-07-08 11:07:56 +0200) count: 10 10 elapsed-time: 0.0 0.1 head-timing-info: old-timing-info: head results: libyaml-0.1.4/c/helper.c:12:45: style: Parameter 'str' can be declared as pointer to const. However it seems that 'buffer_append' is a callback function, if 'str' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libyaml-0.1.4/c/helper.c:46:29: note: You might need to cast the function pointer here libyaml-0.1.4/c/helper.c:12:45: note: Parameter 'str' can be declared as pointer to const libyaml-0.1.4/c/helper.c:34:43: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] libyaml-0.1.4/c/helper.c:39:40: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] libyaml-0.1.4/c/helper.c:49:54: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] libyaml-0.1.4/c/helper.c:54:54: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] libyaml-0.1.4/c/helper.c:64:48: style: Parameter 'e' can be declared as pointer to const [constParameterPointer] libyaml-0.1.4/c/helper.c:79:34: style: Parameter 'e' can be declared as pointer to const [constParameterPointer] libyaml-0.1.4/c/helper.c:160:42: style: Parameter 'm' can be declared as pointer to const [constParameterPointer] libyaml-0.1.4/c/helper.c:165:41: style: Parameter 'm' can be declared as pointer to const [constParameterPointer] libyaml-0.1.4/c/helper.c:170:43: style: Parameter 'm' can be declared as pointer to const [constParameterPointer] diff: DONE