2025-05-10 07:14 ftp://ftp.de.debian.org/debian/pool/main/e/erlang-p1-stringprep/erlang-p1-stringprep_1.0.30.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 -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: b3c7f00 (2025-05-09 17:59:20 +0200) count: 10 10 elapsed-time: 1.5 1.7 head-timing-info: old-timing-info: head results: stringprep-1.0.30/c_src/stringprep.cpp:365:8: style:inconclusive: Technically the member function 'PrepCheckStream::was_valid' can be const. [functionConst] stringprep-1.0.30/c_src/stringprep.cpp:130:3: style: Class 'UTF8DecoderStream' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] stringprep-1.0.30/c_src/stringprep.cpp:224:3: style: Class 'DecompositeStream' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] stringprep-1.0.30/c_src/stringprep.cpp:252:3: style: Class 'CanonicalizeStream' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] stringprep-1.0.30/c_src/stringprep.cpp:294:3: style: Class 'ComposeStream' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] stringprep-1.0.30/c_src/stringprep.cpp:91:9: style: C-style pointer casting [cstyleCast] stringprep-1.0.30/c_src/stringprep.cpp:96:9: style: C-style pointer casting [cstyleCast] stringprep-1.0.30/c_src/stringprep.cpp:298:14: style: The scope of the variable 'nch' can be reduced. [variableScope] stringprep-1.0.30/c_src/stringprep.cpp:487:17: style: Local variable 'compose' shadows outer function [shadowFunction] stringprep-1.0.30/c_src/stringprep.cpp:36:12: note: Shadowed declaration stringprep-1.0.30/c_src/stringprep.cpp:487:17: note: Shadow variable stringprep-1.0.30/c_src/stringprep.cpp:468:28: style: Parameter 'env' can be declared as pointer to const. However it seems that 'load' is a callback function, if 'env' is declared with const you might also need to cast function pointer(s). [constParameterCallback] stringprep-1.0.30/c_src/stringprep.cpp:533:37: note: You might need to cast the function pointer here stringprep-1.0.30/c_src/stringprep.cpp:468:28: note: Parameter 'env' can be declared as pointer to const diff: DONE