2025-05-10 01:04 ftp://ftp.de.debian.org/debian/pool/main/d/dbcsr/dbcsr_2.8.0.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=openmp --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: 48 46 elapsed-time: 1.8 1.9 head-timing-info: old-timing-info: head results: dbcsr-2.8.0/examples/dbcsr_example_3.cpp:40:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MPI_COMM_WORLD [valueFlowBailoutIncompleteVar] dbcsr-2.8.0/examples/dbcsr_tensor_example_2.cpp:37:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] dbcsr-2.8.0/examples/dbcsr_tensor_example_2.cpp:46:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MPI_COMM_WORLD [valueFlowBailoutIncompleteVar] dbcsr-2.8.0/examples/dbcsr_tensor_example_2.cpp:125:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MPI_COMM_WORLD [valueFlowBailoutIncompleteVar] dbcsr-2.8.0/examples/dbcsr_example_3.cpp:94:58: style: Parameter 'irblks' can be declared as reference to const [constParameterReference] dbcsr-2.8.0/examples/dbcsr_example_3.cpp:94:84: style: Parameter 'icblks' can be declared as reference to const [constParameterReference] dbcsr-2.8.0/examples/dbcsr_example_3.cpp:95:25: style: Unused variable: block [unusedVariable] dbcsr-2.8.0/src/acc/acc_bench_trans.c:119:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dbcsr-2.8.0/src/acc/acc_bench_trans.c:84:60: style: Condition 'NULL!=x1' is always true [knownConditionTrueFalse] dbcsr-2.8.0/src/acc/acc_bench_trans.c:73:26: style: Parameter 'argv' can be declared as const array [constParameter] dbcsr-2.8.0/src/acc/acc_bench_smm.c:238:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dbcsr-2.8.0/examples/dbcsr_tensor_example_2.cpp:54:14: style: The if condition is the same as the previous if condition [duplicateCondition] dbcsr-2.8.0/examples/dbcsr_tensor_example_2.cpp:53:14: note: First condition dbcsr-2.8.0/examples/dbcsr_tensor_example_2.cpp:54:14: note: Second condition dbcsr-2.8.0/src/acc/cuda_hip/acc_error.h:19:21: error: There is an unknown macro here somewhere. Configuration is required. If ACC is a macro then please configure it. [unknownMacro] dbcsr-2.8.0/examples/dbcsr_tensor_example_2.cpp:42:71: performance: Function parameter 'nzblocks' should be passed by const reference. [passedByValue] dbcsr-2.8.0/examples/dbcsr_tensor_example_2.cpp:35:33: style: Parameter 'v' can be declared as reference to const [constParameterReference] dbcsr-2.8.0/examples/dbcsr_tensor_example_2.cpp:86:9: style: Consider using std::fill or std::generate algorithm instead of a raw loop. [useStlAlgorithm] dbcsr-2.8.0/examples/dbcsr_tensor_example_2.cpp:106:11: style: Consider using std::accumulate algorithm instead of a raw loop. [useStlAlgorithm] dbcsr-2.8.0/src/acc/cuda_hip/acc_init.cpp:25:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Init [valueFlowBailoutIncompleteVar] dbcsr-2.8.0/src/acc/cuda_hip/acc_init.cpp:43:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable device [valueFlowBailoutIncompleteVar] dbcsr-2.8.0/src/acc/cuda_hip/acc_utils.cpp:21:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DeviceProp [valueFlowBailoutIncompleteVar] dbcsr-2.8.0/src/acc/cuda_hip/calculate_norms.cpp:50:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __shared__ [valueFlowBailoutIncompleteVar] dbcsr-2.8.0/src/acc/cuda_hip/calculate_norms.cpp:105:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stream [valueFlowBailoutIncompleteVar] dbcsr-2.8.0/src/acc/cuda_hip/calculate_norms.cpp:51:10: style: The scope of the variable 'd' can be reduced. [variableScope] dbcsr-2.8.0/src/acc/cuda_hip/calculate_norms.cpp:108:57: warning:inconclusive: Found suspicious operator '>', result is not used. [constStatement] dbcsr-2.8.0/src/acc/cuda_hip/calculate_norms.cpp:111:57: warning:inconclusive: Found suspicious operator '>', result is not used. [constStatement] dbcsr-2.8.0/src/acc/libsmm_acc/libsmm_acc.h:42:74: error: There is an unknown macro here somewhere. Configuration is required. If ACC_DRV is a macro then please configure it. [unknownMacro] dbcsr-2.8.0/src/acc/libsmm_acc/libsmm_acc_benchmark.h:21:75: error: There is an unknown macro here somewhere. Configuration is required. If ACC_DRV is a macro then please configure it. [unknownMacro] dbcsr-2.8.0/src/acc/acc_bench_smm.c:126:19: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] dbcsr-2.8.0/src/acc/acc_bench_smm.c:128:15: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] dbcsr-2.8.0/src/acc/acc_bench_smm.c:130:33: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] dbcsr-2.8.0/tests/dbcsr_tensor_test.cpp:45:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] dbcsr-2.8.0/tests/dbcsr_tensor_test.cpp:131:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MPI_COMM_WORLD [valueFlowBailoutIncompleteVar] dbcsr-2.8.0/tests/dbcsr_tensor_test.cpp:54:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MPI_COMM_WORLD [valueFlowBailoutIncompleteVar] dbcsr-2.8.0/tests/dbcsr_acc_test.c:58:26: style: Parameter 'argv' can be declared as const array [constParameter] dbcsr-2.8.0/tests/dbcsr_tensor_test.cpp:58:14: style: The if condition is the same as the previous if condition [duplicateCondition] dbcsr-2.8.0/tests/dbcsr_tensor_test.cpp:57:14: note: First condition dbcsr-2.8.0/tests/dbcsr_tensor_test.cpp:58:14: note: Second condition dbcsr-2.8.0/tests/dbcsr_tensor_test.cpp:50:83: performance: Function parameter 'nzblocks' should be passed by const reference. [passedByValue] dbcsr-2.8.0/tests/dbcsr_tensor_test.cpp:90:9: style: Consider using std::generate algorithm instead of a raw loop. [useStlAlgorithm] dbcsr-2.8.0/tests/dbcsr_tensor_test.cpp:111:11: style: Consider using std::accumulate algorithm instead of a raw loop. [useStlAlgorithm] dbcsr-2.8.0/tests/dbcsr_test.cpp:38:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MPI_COMM_WORLD [valueFlowBailoutIncompleteVar] dbcsr-2.8.0/tests/libsmm_acc_unittest_transpose.cpp:28:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable libsmm_acc_transpose_d [valueFlowBailoutIncompleteVar] dbcsr-2.8.0/tests/dbcsr_test.cpp:94:58: style: Parameter 'irblks' can be declared as reference to const [constParameterReference] dbcsr-2.8.0/tests/dbcsr_test.cpp:94:84: style: Parameter 'icblks' can be declared as reference to const [constParameterReference] dbcsr-2.8.0/tests/dbcsr_test.cpp:200:38: style: Parameter 'v' can be declared as reference to const [constParameterReference] dbcsr-2.8.0/tests/dbcsr_test.cpp:95:25: style: Unused variable: block [unusedVariable] dbcsr-2.8.0/src/acc/acc_bench_smm.c:331:21: style: Local variable 'r' shadows outer variable [shadowVariable] dbcsr-2.8.0/src/acc/acc_bench_smm.c:302:39: note: Shadowed declaration dbcsr-2.8.0/src/acc/acc_bench_smm.c:331:21: note: Shadow variable dbcsr-2.8.0/src/acc/acc_bench_smm.c:213:60: style: Variable 'm' is assigned a value that is never used. [unreadVariable] dbcsr-2.8.0/src/acc/acc_bench_smm.c:213:67: style: Variable 'n' is assigned a value that is never used. [unreadVariable] dbcsr-2.8.0/src/acc/acc_bench_smm.c:213:74: style: Variable 'k' is assigned a value that is never used. [unreadVariable] diff: head dbcsr-2.8.0/examples/dbcsr_tensor_example_2.cpp:106:11: style: Consider using std::accumulate algorithm instead of a raw loop. [useStlAlgorithm] head dbcsr-2.8.0/tests/dbcsr_tensor_test.cpp:111:11: style: Consider using std::accumulate algorithm instead of a raw loop. [useStlAlgorithm] DONE