2022-06-24 05:11 ftp://ftp.de.debian.org/debian/pool/main/o/openjdk-7/openjdk-7_7u181-2.6.14.orig.tar.gz cppcheck-options: --library=posix --library=gnu --showtime=top5 --check-library --inconclusive --enable=style,information --template=daca2 -D__GNUC__ --platform=unix64 -rp=temp -j2 platform: Linux-5.4.0-110-generic-x86_64-with-glibc2.29 python: 3.8.10 client-version: 1.3.24 compiler: g++ (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0 cppcheck: head 2.8 head-info: 60c1eef (2022-06-23 20:26:47 +0200) count: 55 55 elapsed-time: 58.5 117.8 head-timing-info: Overall time: 0s old-timing-info: Overall time: 0s head results: openjdk-7-7u181-2.6.14.orig/contrib/templater/hotspot/src/cpu/CPU/vm/stubGenerator_CPU.cpp:522:18: style: Variable 'g' is assigned a value that is never used. [unreadVariable] openjdk-7-7u181-2.6.14.orig/contrib/templater/hotspot/src/os_cpu/linux_CPU/vm/os_linux_CPU.cpp:50:17: style: C-style pointer casting [cstyleCast] openjdk-7-7u181-2.6.14.orig/contrib/templater/hotspot/src/os_cpu/linux_CPU/vm/os_linux_CPU.cpp:98:20: style: C-style pointer casting [cstyleCast] openjdk-7-7u181-2.6.14.orig/contrib/templater/hotspot/src/os_cpu/linux_CPU/vm/os_linux_CPU.cpp:131:18: style: C-style pointer casting [cstyleCast] openjdk-7-7u181-2.6.14.orig/contrib/templater/hotspot/src/os_cpu/linux_CPU/vm/os_linux_CPU.cpp:134:20: style: C-style pointer casting [cstyleCast] openjdk-7-7u181-2.6.14.orig/contrib/templater/hotspot/src/os_cpu/linux_CPU/vm/os_linux_CPU.cpp:255:39: style: C-style pointer casting [cstyleCast] openjdk-7-7u181-2.6.14.orig/contrib/templater/hotspot/src/os_cpu/linux_CPU/vm/os_linux_CPU.cpp:98:18: style: Variable 'uc' is assigned a value that is never used. [unreadVariable] openjdk-7-7u181-2.6.14.orig/contrib/templater/hotspot/src/os_cpu/linux_CPU/vm/os_linux_CPU.cpp:134:18: style: Variable 'vmthread' is assigned a value that is never used. [unreadVariable] openjdk-7-7u181-2.6.14.orig/scripts/jni_create_stap.c:44:1: error: Code 'using namespace std' is invalid C code. Use --std or --language to configure the language. [syntaxError] openjdk-7-7u181-2.6.14.orig/test/tapset/JNIStapTest.c:208:11: warning: Either the condition 'safe_arg!=NULL' is redundant or there is possible null pointer dereference: safe_arg. [nullPointerRedundantCheck] openjdk-7-7u181-2.6.14.orig/test/tapset/JNIStapTest.c:252:18: note: Assuming that condition 'safe_arg!=NULL' is not redundant openjdk-7-7u181-2.6.14.orig/test/tapset/JNIStapTest.c:208:11: note: Null pointer dereference openjdk-7-7u181-2.6.14.orig/test/tapset/JNIStapTest.c:217:16: warning: Either the condition 'safe_arg!=NULL' is redundant or there is possible null pointer dereference: safe_arg. [nullPointerRedundantCheck] openjdk-7-7u181-2.6.14.orig/test/tapset/JNIStapTest.c:252:18: note: Assuming that condition 'safe_arg!=NULL' is not redundant openjdk-7-7u181-2.6.14.orig/test/tapset/JNIStapTest.c:217:16: note: Null pointer dereference openjdk-7-7u181-2.6.14.orig/test/tapset/JNIStapTest.c:227:22: warning: Either the condition 'safe_arg!=NULL' is redundant or there is possible null pointer dereference: safe_arg. [nullPointerRedundantCheck] openjdk-7-7u181-2.6.14.orig/test/tapset/JNIStapTest.c:252:18: note: Assuming that condition 'safe_arg!=NULL' is not redundant openjdk-7-7u181-2.6.14.orig/test/tapset/JNIStapTest.c:227:22: note: Null pointer dereference openjdk-7-7u181-2.6.14.orig/test/tapset/JNIStapTest.c:234:22: warning: Either the condition 'safe_arg!=NULL' is redundant or there is possible null pointer dereference: safe_arg. [nullPointerRedundantCheck] openjdk-7-7u181-2.6.14.orig/test/tapset/JNIStapTest.c:252:18: note: Assuming that condition 'safe_arg!=NULL' is not redundant openjdk-7-7u181-2.6.14.orig/test/tapset/JNIStapTest.c:234:22: note: Null pointer dereference openjdk-7-7u181-2.6.14.orig/test/tapset/JNIStapTest.c:240:22: warning: Either the condition 'safe_arg!=NULL' is redundant or there is possible null pointer dereference: safe_arg. [nullPointerRedundantCheck] openjdk-7-7u181-2.6.14.orig/test/tapset/JNIStapTest.c:252:18: note: Assuming that condition 'safe_arg!=NULL' is not redundant openjdk-7-7u181-2.6.14.orig/test/tapset/JNIStapTest.c:240:22: note: Null pointer dereference openjdk-7-7u181-2.6.14.orig/test/tapset/JNIStapTest.c:247:22: warning: Either the condition 'safe_arg!=NULL' is redundant or there is possible null pointer dereference: safe_arg. [nullPointerRedundantCheck] openjdk-7-7u181-2.6.14.orig/test/tapset/JNIStapTest.c:252:18: note: Assuming that condition 'safe_arg!=NULL' is not redundant openjdk-7-7u181-2.6.14.orig/test/tapset/JNIStapTest.c:247:22: note: Null pointer dereference openjdk-7-7u181-2.6.14.orig/test/tapset/JNIStapTest.c:303:47: warning: Either the condition 'classfile_buf!=NULL' is redundant or there is pointer arithmetic with NULL pointer. [nullPointerArithmeticRedundantCheck] openjdk-7-7u181-2.6.14.orig/test/tapset/JNIStapTest.c:308:27: note: Assuming that condition 'classfile_buf!=NULL' is not redundant openjdk-7-7u181-2.6.14.orig/test/tapset/JNIStapTest.c:303:47: note: Null pointer addition openjdk-7-7u181-2.6.14.orig/test/tapset/JNIStapTest.c:586:15: style: Redundant initialization for 'jboolrval'. The initialized value is overwritten before it is read. [redundantInitialization] openjdk-7-7u181-2.6.14.orig/test/tapset/JNIStapTest.c:585:24: note: jboolrval is initialized openjdk-7-7u181-2.6.14.orig/test/tapset/JNIStapTest.c:586:15: note: jboolrval is overwritten openjdk-7-7u181-2.6.14.orig/test/tapset/JNIStapTest.c:604:15: style: Variable 'jboolrval' is reassigned a value before the old one has been used. [redundantAssignment] openjdk-7-7u181-2.6.14.orig/test/tapset/JNIStapTest.c:586:15: note: jboolrval is assigned openjdk-7-7u181-2.6.14.orig/test/tapset/JNIStapTest.c:604:15: note: jboolrval is overwritten openjdk-7-7u181-2.6.14.orig/test/tapset/JNIStapTest.c:303:47: portability: '(void*)classfile_buf' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] openjdk-7-7u181-2.6.14.orig/test/tapset/JNIStapTest.c:316:22: style: Variable 'testClass' is assigned a value that is never used. [unreadVariable] openjdk-7-7u181-2.6.14.orig/test/tapset/JNIStapTest.c:354:26: style: Variable 'testInstance' is assigned a value that is never used. [unreadVariable] openjdk-7-7u181-2.6.14.orig/test/tapset/JNIStapTest.c:372:26: style: Variable 'testInstance' is assigned a value that is never used. [unreadVariable] openjdk-7-7u181-2.6.14.orig/test/tapset/JNIStapTest.c:390:26: style: Variable 'testInstance' is assigned a value that is never used. [unreadVariable] openjdk-7-7u181-2.6.14.orig/test/tapset/JNIStapTest.c:419:33: style: Variable 'pointer_to_some_space' is assigned a value that is never used. [unreadVariable] openjdk-7-7u181-2.6.14.orig/test/tapset/JNIStapTest.c:421:31: style: Variable 'some_space_capacity' is assigned a value that is never used. [unreadVariable] openjdk-7-7u181-2.6.14.orig/test/tapset/JNIStapTest.c:497:11: style: Variable 'r_val' is assigned a value that is never used. [unreadVariable] openjdk-7-7u181-2.6.14.orig/test/tapset/JNIStapTest.c:584:23: style: Variable 'superClass' is assigned a value that is never used. [unreadVariable] openjdk-7-7u181-2.6.14.orig/test/tapset/JNIStapTest.c:590:25: style: Variable 'myBoolean2' is assigned a value that is never used. [unreadVariable] openjdk-7-7u181-2.6.14.orig/test/tapset/JNIStapTest.c:595:27: style: Variable 'getBoolean2' is assigned a value that is never used. [unreadVariable] openjdk-7-7u181-2.6.14.orig/test/tapset/JNIStapTest.c:596:30: style: Variable 'myStaticBoolean' is assigned a value that is never used. [unreadVariable] openjdk-7-7u181-2.6.14.orig/test/tapset/JNIStapTest.c:598:32: style: Variable 'getStaticBoolean' is assigned a value that is never used. [unreadVariable] openjdk-7-7u181-2.6.14.orig/test/tapset/JNIStapTest.c:604:15: style: Variable 'jboolrval' is assigned a value that is never used. [unreadVariable] openjdk-7-7u181-2.6.14.orig/test/tapset/JNIStapTest.c:605:28: style: Variable 'refType' is assigned a value that is never used. [unreadVariable] openjdk-7-7u181-2.6.14.orig/test/tapset/JNIStapTest.c:640:19: style: Variable 'str_len' is assigned a value that is never used. [unreadVariable] openjdk-7-7u181-2.6.14.orig/test/tapset/JNIStapTest.c:660:19: style: Variable 'str_len' is assigned a value that is never used. [unreadVariable] openjdk-7-7u181-2.6.14.orig/test/tapset/JNIStapTest.c:1336:28: style: Variable 'aBool' is assigned a value that is never used. [unreadVariable] openjdk-7-7u181-2.6.14.orig/test/tapset/JNIStapTest.c:1339:28: style: Variable 'aBool' is assigned a value that is never used. [unreadVariable] openjdk-7-7u181-2.6.14.orig/test/tapset/JNIStapTest.c:1353:25: style: Variable 'aByte' is assigned a value that is never used. [unreadVariable] openjdk-7-7u181-2.6.14.orig/test/tapset/JNIStapTest.c:1356:25: style: Variable 'aByte' is assigned a value that is never used. [unreadVariable] openjdk-7-7u181-2.6.14.orig/test/tapset/JNIStapTest.c:1369:25: style: Variable 'aChar' is assigned a value that is never used. [unreadVariable] openjdk-7-7u181-2.6.14.orig/test/tapset/JNIStapTest.c:1372:25: style: Variable 'aChar' is assigned a value that is never used. [unreadVariable] openjdk-7-7u181-2.6.14.orig/test/tapset/JNIStapTest.c:1385:29: style: Variable 'aDouble' is assigned a value that is never used. [unreadVariable] openjdk-7-7u181-2.6.14.orig/test/tapset/JNIStapTest.c:1388:29: style: Variable 'aDouble' is assigned a value that is never used. [unreadVariable] openjdk-7-7u181-2.6.14.orig/test/tapset/JNIStapTest.c:1402:27: style: Variable 'aFloat' is assigned a value that is never used. [unreadVariable] openjdk-7-7u181-2.6.14.orig/test/tapset/JNIStapTest.c:1405:27: style: Variable 'aFloat' is assigned a value that is never used. [unreadVariable] openjdk-7-7u181-2.6.14.orig/test/tapset/JNIStapTest.c:1419:23: style: Variable 'aInt' is assigned a value that is never used. [unreadVariable] openjdk-7-7u181-2.6.14.orig/test/tapset/JNIStapTest.c:1421:23: style: Variable 'aInt' is assigned a value that is never used. [unreadVariable] openjdk-7-7u181-2.6.14.orig/test/tapset/JNIStapTest.c:1434:25: style: Variable 'aLong' is assigned a value that is never used. [unreadVariable] openjdk-7-7u181-2.6.14.orig/test/tapset/JNIStapTest.c:1437:25: style: Variable 'aLong' is assigned a value that is never used. [unreadVariable] openjdk-7-7u181-2.6.14.orig/test/tapset/JNIStapTest.c:1450:29: style: Variable 'aObject' is assigned a value that is never used. [unreadVariable] openjdk-7-7u181-2.6.14.orig/test/tapset/JNIStapTest.c:1453:29: style: Variable 'aObject' is assigned a value that is never used. [unreadVariable] openjdk-7-7u181-2.6.14.orig/test/tapset/JNIStapTest.c:1473:27: style: Variable 'aShort' is assigned a value that is never used. [unreadVariable] openjdk-7-7u181-2.6.14.orig/test/tapset/JNIStapTest.c:1476:27: style: Variable 'aShort' is assigned a value that is never used. [unreadVariable] openjdk-7-7u181-2.6.14.orig/test/tapset/JNIStapTest.c:1655:25: style: Variable 'bString' is assigned a value that is never used. [unreadVariable] openjdk-7-7u181-2.6.14.orig/test/tapset/JNIStapTest.c:402:11: style: Variable 'byte_array_len' is assigned a value that is never used. [unreadVariable] diff: DONE