2022-06-23 03:22 ftp://ftp.de.debian.org/debian/pool/main/libj/libjna-java/libjna-java_5.9.0.orig.tar.xz cppcheck-options: --library=posix --library=gnu --showtime=top5 --check-library --inconclusive --enable=style,information --template=daca2 -D__GNUC__ --platform=unix64 -rp=temp -j1 platform: Linux-5.4.0-120-generic-x86_64-with-glibc2.29 python: 3.8.10 client-version: 1.3.24 compiler: g++ (Ubuntu 10.3.0-1ubuntu1~20.04) 10.3.0 cppcheck: head 2.8 head-info: f1212e6 (2022-06-22 21:22:04 +0200) count: 33 33 elapsed-time: 127.0 272.9 head-timing-info: Tokenizer::simplifyTokens1: 41.6672s (avg. 10.4168s - 4 result(s)) Tokenizer::simplifyTokens1::ValueFlow: 41.3818s (avg. 10.3455s - 4 result(s)) Tokenizer::simplifyTokens1::createSymbolDatabase: 0.188528s (avg. 0.047132s - 4 result(s)) Tokenizer::createTokens: 0.033732s (avg. 0.0067464s - 5 result(s)) Other::runChecks: 0.027384s (avg. 0.006846s - 4 result(s)) Overall time: 83.4668s old-timing-info: Tokenizer::simplifyTokens1: 89.7893s (avg. 22.4473s - 4 result(s)) Tokenizer::simplifyTokens1::ValueFlow: 89.5376s (avg. 22.3844s - 4 result(s)) Tokenizer::simplifyTokens1::createSymbolDatabase: 0.169785s (avg. 0.0424462s - 4 result(s)) Tokenizer::createTokens: 0.032167s (avg. 0.0064334s - 5 result(s)) UnusedVar::runChecks: 0.022508s (avg. 0.005627s - 4 result(s)) Overall time: 179.684s head results: jna-5.9.0/native/callback.c:390:19: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] jna-5.9.0/native/callback.c:406:16: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] jna-5.9.0/native/callback.c:422:16: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] jna-5.9.0/native/callback.c:429:16: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] jna-5.9.0/native/callback.c:442:14: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] jna-5.9.0/native/callback.c:445:14: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] jna-5.9.0/native/callback.c:114:12: style: Variable 'in_dll' is assigned a value that is never used. [unreadVariable] jna-5.9.0/native/dispatch.c:475:21: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] jna-5.9.0/native/dispatch.c:477:5: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] jna-5.9.0/native/dispatch.c:478:27: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] jna-5.9.0/native/dispatch.c:479:24: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] jna-5.9.0/native/dispatch.c:693:20: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] jna-5.9.0/native/dispatch.c:726:20: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] jna-5.9.0/native/dispatch.c:1752:15: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] jna-5.9.0/native/dispatch.c:1754:15: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] jna-5.9.0/native/dispatch.c:1756:13: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] jna-5.9.0/native/dispatch.c:1770:23: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] jna-5.9.0/native/dispatch.c:1796:23: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] jna-5.9.0/native/dispatch.c:1880:12: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] jna-5.9.0/native/dispatch.c:1885:12: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] jna-5.9.0/native/dispatch.c:1891:12: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] jna-5.9.0/native/dispatch.c:1305:22: error: Pointer addition with NULL pointer. [nullPointerArithmetic] jna-5.9.0/native/dispatch.c:1302:13: note: Assignment 'ptr=NULL', assigned value is 0 jna-5.9.0/native/dispatch.c:1305:22: note: Null pointer addition jna-5.9.0/native/dispatch.c:809:37: style:inconclusive: Function 'newWideCString' argument 2 names different: declaration 'jstr' definition 'str'. [funcArgNamesDifferent] jna-5.9.0/native/dispatch.c:253:53: note: Function 'newWideCString' argument 2 names different: declaration 'jstr' definition 'str'. jna-5.9.0/native/dispatch.c:809:37: note: Function 'newWideCString' argument 2 names different: declaration 'jstr' definition 'str'. jna-5.9.0/native/dispatch.c:3004:12: style: Local variable 'cls' shadows outer argument [shadowArgument] jna-5.9.0/native/dispatch.c:2818:53: note: Shadowed declaration jna-5.9.0/native/dispatch.c:3004:12: note: Shadow variable jna-5.9.0/native/testlib.c:679:5: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] jna-5.9.0/native/testlib.c:484:18: portability:inconclusive: Casting from float * to char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] jna-5.9.0/native/testlib.c:488:18: portability:inconclusive: Casting from double * to char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] jna-5.9.0/native/testlib.c:287:32: style: Parameter 'args' can be declared as const array [constParameter] jna-5.9.0/native/testlib.c:292:39: style: Parameter 'args' can be declared as const array [constParameter] jna-5.9.0/native/testlib.c:297:33: style: Parameter 'args' can be declared as const array [constParameter] jna-5.9.0/native/testlib.c:329:7: style: struct member '_VariableSizedStructure::length' is never used. [unusedStructMember] jna-5.9.0/native/testlib.c:528:9: style: union member '_test_union_t::f1' is never used. [unusedStructMember] jna-5.9.0/native/testlib.c:529:11: style: union member '_test_union_t::f2' is never used. [unusedStructMember] diff: head jna-5.9.0/native/testlib.c:287:32: style: Parameter 'args' can be declared as const array [constParameter] 2.8 jna-5.9.0/native/testlib.c:287:32: style: Parameter 'args' can be declared with const [constParameter] head jna-5.9.0/native/testlib.c:292:39: style: Parameter 'args' can be declared as const array [constParameter] 2.8 jna-5.9.0/native/testlib.c:292:39: style: Parameter 'args' can be declared with const [constParameter] head jna-5.9.0/native/testlib.c:297:33: style: Parameter 'args' can be declared as const array [constParameter] 2.8 jna-5.9.0/native/testlib.c:297:33: style: Parameter 'args' can be declared with const [constParameter] DONE