2026-05-02 18:09 ftp://ftp.de.debian.org/debian/pool/main/j/jnr-ffi/jnr-ffi_2.2.15.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-111-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.70 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04.1) 14.2.0 cppcheck: head 2.20.0 head-info: e5c4a73 (2026-05-01 11:10:43 +0200) count: 68 68 elapsed-time: 0.3 0.2 head-timing-info: old-timing-info: head results: jnr-ffi-jnr-ffi-2.2.15/libtest/LastErrorTest.c:28:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] jnr-ffi-jnr-ffi-2.2.15/libtest/PointerNumericTest.c:45:1: portability: 'p' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] jnr-ffi-jnr-ffi-2.2.15/libtest/PointerNumericTest.c:46:1: portability: 'p' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] jnr-ffi-jnr-ffi-2.2.15/libtest/PointerNumericTest.c:47:1: portability: 'p' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] jnr-ffi-jnr-ffi-2.2.15/libtest/PointerNumericTest.c:48:1: portability: 'p' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] jnr-ffi-jnr-ffi-2.2.15/libtest/PointerNumericTest.c:49:1: portability: 'p' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] jnr-ffi-jnr-ffi-2.2.15/libtest/PointerNumericTest.c:51:1: portability: 'p' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] jnr-ffi-jnr-ffi-2.2.15/libtest/PointerNumericTest.c:52:1: portability: 'p' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] jnr-ffi-jnr-ffi-2.2.15/libtest/PointerNumericTest.c:53:1: portability: 'p' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] jnr-ffi-jnr-ffi-2.2.15/libtest/PointerNumericTest.c:54:1: portability: 'p' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] jnr-ffi-jnr-ffi-2.2.15/libtest/PointerNumericTest.c:55:1: portability: 'p' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] jnr-ffi-jnr-ffi-2.2.15/libtest/PointerNumericTest.c:57:1: portability: 'p' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] jnr-ffi-jnr-ffi-2.2.15/libtest/PointerNumericTest.c:58:1: portability: 'p' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] jnr-ffi-jnr-ffi-2.2.15/libtest/PointerNumericTest.c:59:1: portability: 'p' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] jnr-ffi-jnr-ffi-2.2.15/libtest/PointerNumericTest.c:61:1: portability: 'p' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] jnr-ffi-jnr-ffi-2.2.15/libtest/PointerNumericTest.c:62:1: portability: 'p' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] jnr-ffi-jnr-ffi-2.2.15/libtest/PointerNumericTest.c:63:1: portability: 'p' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] jnr-ffi-jnr-ffi-2.2.15/libtest/PointerTest.c:81:5: error: Memory leak: ptr [memleak] jnr-ffi-jnr-ffi-2.2.15/libtest/PointerTest.c:72:23: style: Parameter 'ptr' can be declared as pointer to const [constParameterPointer] jnr-ffi-jnr-ffi-2.2.15/libtest/PointerTest.c:79:11: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] jnr-ffi-jnr-ffi-2.2.15/libtest/PointerTest.c:84:16: style: Parameter 'ptr' can be declared as pointer to const [constParameterPointer] jnr-ffi-jnr-ffi-2.2.15/libtest/PointerTest.c:79:15: style: Variable 'ptr' is assigned a value that is never used. [unreadVariable] jnr-ffi-jnr-ffi-2.2.15/libtest/PointerTest.c:79:17: style: Variable 'ptr' is allocated memory that is never used. [unusedAllocatedMemory] jnr-ffi-jnr-ffi-2.2.15/libtest/StructTest.c:222:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable f0 [valueFlowBailoutIncompleteVar] jnr-ffi-jnr-ffi-2.2.15/libtest/StructTest.c:226:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable f0 [valueFlowBailoutIncompleteVar] jnr-ffi-jnr-ffi-2.2.15/libtest/StructTest.c:230:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable f0 [valueFlowBailoutIncompleteVar] jnr-ffi-jnr-ffi-2.2.15/libtest/StructTest.c:234:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable f0 [valueFlowBailoutIncompleteVar] jnr-ffi-jnr-ffi-2.2.15/libtest/StructTest.c:238:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable f0 [valueFlowBailoutIncompleteVar] jnr-ffi-jnr-ffi-2.2.15/libtest/StructTest.c:49:1: style: Parameter 't' can be declared as pointer to const [constParameterPointer] jnr-ffi-jnr-ffi-2.2.15/libtest/StructTest.c:50:1: style: Parameter 't' can be declared as pointer to const [constParameterPointer] jnr-ffi-jnr-ffi-2.2.15/libtest/StructTest.c:51:1: style: Parameter 't' can be declared as pointer to const [constParameterPointer] jnr-ffi-jnr-ffi-2.2.15/libtest/StructTest.c:52:1: style: Parameter 't' can be declared as pointer to const [constParameterPointer] jnr-ffi-jnr-ffi-2.2.15/libtest/StructTest.c:53:1: style: Parameter 't' can be declared as pointer to const [constParameterPointer] jnr-ffi-jnr-ffi-2.2.15/libtest/StructTest.c:54:1: style: Parameter 't' can be declared as pointer to const [constParameterPointer] jnr-ffi-jnr-ffi-2.2.15/libtest/StructTest.c:56:44: style: Parameter 't' can be declared as pointer to const [constParameterPointer] jnr-ffi-jnr-ffi-2.2.15/libtest/StructTest.c:58:54: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] jnr-ffi-jnr-ffi-2.2.15/libtest/StructTest.c:61:42: style: Parameter 's' can be declared as pointer to const [constParameterPointer] jnr-ffi-jnr-ffi-2.2.15/libtest/StructTest.c:57:31: style: struct member 'SignedLongAlign::first' is never used. [unusedStructMember] jnr-ffi-jnr-ffi-2.2.15/libtest/struct/NumericStruct.c:15:1: style: Parameter 's' can be declared as pointer to const [constParameterPointer] jnr-ffi-jnr-ffi-2.2.15/libtest/struct/NumericStruct.c:16:1: style: Parameter 's' can be declared as pointer to const [constParameterPointer] jnr-ffi-jnr-ffi-2.2.15/libtest/struct/NumericStruct.c:17:1: style: Parameter 's' can be declared as pointer to const [constParameterPointer] jnr-ffi-jnr-ffi-2.2.15/libtest/struct/NumericStruct.c:18:1: style: Parameter 's' can be declared as pointer to const [constParameterPointer] jnr-ffi-jnr-ffi-2.2.15/libtest/struct/NumericStruct.c:19:1: style: Parameter 's' can be declared as pointer to const [constParameterPointer] jnr-ffi-jnr-ffi-2.2.15/libtest/struct/NumericStruct.c:21:1: style: Parameter 's' can be declared as pointer to const [constParameterPointer] jnr-ffi-jnr-ffi-2.2.15/libtest/struct/NumericStruct.c:22:1: style: Parameter 's' can be declared as pointer to const [constParameterPointer] jnr-ffi-jnr-ffi-2.2.15/libtest/struct/NumericStruct.c:23:1: style: Parameter 's' can be declared as pointer to const [constParameterPointer] jnr-ffi-jnr-ffi-2.2.15/libtest/struct/NumericStruct.c:24:1: style: Parameter 's' can be declared as pointer to const [constParameterPointer] jnr-ffi-jnr-ffi-2.2.15/libtest/struct/NumericStruct.c:25:1: style: Parameter 's' can be declared as pointer to const [constParameterPointer] jnr-ffi-jnr-ffi-2.2.15/libtest/struct/NumericStruct.c:27:1: style: Parameter 's' can be declared as pointer to const [constParameterPointer] jnr-ffi-jnr-ffi-2.2.15/libtest/struct/NumericStruct.c:28:1: style: Parameter 's' can be declared as pointer to const [constParameterPointer] jnr-ffi-jnr-ffi-2.2.15/libtest/struct/NumericStruct.c:30:1: style: Parameter 's' can be declared as pointer to const [constParameterPointer] jnr-ffi-jnr-ffi-2.2.15/libtest/struct/NumericStruct.c:31:1: style: Parameter 's' can be declared as pointer to const [constParameterPointer] jnr-ffi-jnr-ffi-2.2.15/libtest/struct/NumericStruct.c:32:1: style: Parameter 's' can be declared as pointer to const [constParameterPointer] jnr-ffi-jnr-ffi-2.2.15/libtest/struct/NumericUnion.c:15:1: style: Parameter 's' can be declared as pointer to const [constParameterPointer] jnr-ffi-jnr-ffi-2.2.15/libtest/struct/NumericUnion.c:16:1: style: Parameter 's' can be declared as pointer to const [constParameterPointer] jnr-ffi-jnr-ffi-2.2.15/libtest/struct/NumericUnion.c:17:1: style: Parameter 's' can be declared as pointer to const [constParameterPointer] jnr-ffi-jnr-ffi-2.2.15/libtest/struct/NumericUnion.c:18:1: style: Parameter 's' can be declared as pointer to const [constParameterPointer] jnr-ffi-jnr-ffi-2.2.15/libtest/struct/NumericUnion.c:19:1: style: Parameter 's' can be declared as pointer to const [constParameterPointer] jnr-ffi-jnr-ffi-2.2.15/libtest/struct/NumericUnion.c:21:1: style: Parameter 's' can be declared as pointer to const [constParameterPointer] jnr-ffi-jnr-ffi-2.2.15/libtest/struct/NumericUnion.c:22:1: style: Parameter 's' can be declared as pointer to const [constParameterPointer] jnr-ffi-jnr-ffi-2.2.15/libtest/struct/NumericUnion.c:23:1: style: Parameter 's' can be declared as pointer to const [constParameterPointer] jnr-ffi-jnr-ffi-2.2.15/libtest/struct/NumericUnion.c:24:1: style: Parameter 's' can be declared as pointer to const [constParameterPointer] jnr-ffi-jnr-ffi-2.2.15/libtest/struct/NumericUnion.c:25:1: style: Parameter 's' can be declared as pointer to const [constParameterPointer] jnr-ffi-jnr-ffi-2.2.15/libtest/struct/NumericUnion.c:27:1: style: Parameter 's' can be declared as pointer to const [constParameterPointer] jnr-ffi-jnr-ffi-2.2.15/libtest/struct/NumericUnion.c:28:1: style: Parameter 's' can be declared as pointer to const [constParameterPointer] jnr-ffi-jnr-ffi-2.2.15/libtest/struct/NumericUnion.c:30:1: style: Parameter 's' can be declared as pointer to const [constParameterPointer] jnr-ffi-jnr-ffi-2.2.15/libtest/struct/NumericUnion.c:31:1: style: Parameter 's' can be declared as pointer to const [constParameterPointer] jnr-ffi-jnr-ffi-2.2.15/libtest/struct/NumericUnion.c:32:1: style: Parameter 's' can be declared as pointer to const [constParameterPointer] diff: DONE