2024-04-24 13:21 ftp://ftp.de.debian.org/debian/pool/main/e/espresso/espresso_6.7.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.5.0-28-generic-x86_64-with-glibc2.35 python: 3.10.12 client-version: 1.3.57 compiler: g++ (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0 cppcheck: head 2.14.0 head-info: 9fab9b9 (2024-04-24 10:46:48 +0200) count: 127 127 elapsed-time: 8.3 8.4 head-timing-info: old-timing-info: head results: qe-6.7/COUPLE/examples/c2cp.cpp:23:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MPI_COMM_WORLD [valueFlowBailoutIncompleteVar] qe-6.7/COUPLE/examples/c2cp.cpp:18:17: style: The scope of the variable 'pw_comm' can be reduced. [variableScope] qe-6.7/COUPLE/examples/c2cp.cpp:28:28: style: The scope of the variable 'npools' can be reduced. [variableScope] qe-6.7/COUPLE/examples/c2pw.cpp:23:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MPI_COMM_WORLD [valueFlowBailoutIncompleteVar] qe-6.7/COUPLE/examples/c2pw.cpp:18:17: style: The scope of the variable 'pw_comm' can be reduced. [variableScope] qe-6.7/COUPLE/examples/c2pw.cpp:28:28: style: The scope of the variable 'npools' can be reduced. [variableScope] qe-6.7/FFTXlib/fft_stick.c:20:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] qe-6.7/FFTXlib/fft_stick.c:29:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] qe-6.7/FFTXlib/fft_stick.c:37:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] qe-6.7/FFTXlib/fft_stick.c:44:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] qe-6.7/FFTXlib/fft_stick.c:52:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] qe-6.7/FFTXlib/fft_stick.c:60:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] qe-6.7/FFTXlib/fft_stick.c:69:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] qe-6.7/FFTXlib/fft_stick.c:80:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] qe-6.7/FFTXlib/fft_stick.c:16:40: style: Parameter 'n' can be declared as pointer to const [constParameterPointer] qe-6.7/FFTXlib/fft_stick.c:16:48: style: Parameter 'idir' can be declared as pointer to const [constParameterPointer] qe-6.7/FFTXlib/fft_stick.c:25:51: style: Parameter 'n' can be declared as pointer to const [constParameterPointer] qe-6.7/FFTXlib/fft_stick.c:25:59: style: Parameter 'idir' can be declared as pointer to const [constParameterPointer] qe-6.7/FFTXlib/fft_stick.c:48:42: style: Parameter 'n' can be declared as pointer to const [constParameterPointer] qe-6.7/FFTXlib/fft_stick.c:48:50: style: Parameter 'm' can be declared as pointer to const [constParameterPointer] qe-6.7/FFTXlib/fft_stick.c:48:58: style: Parameter 'idir' can be declared as pointer to const [constParameterPointer] qe-6.7/FFTXlib/fft_stick.c:64:42: style: Parameter 'n' can be declared as pointer to const [constParameterPointer] qe-6.7/FFTXlib/fft_stick.c:64:50: style: Parameter 'm' can be declared as pointer to const [constParameterPointer] qe-6.7/FFTXlib/fft_stick.c:64:58: style: Parameter 'l' can be declared as pointer to const [constParameterPointer] qe-6.7/FFTXlib/fft_stick.c:64:66: style: Parameter 'idir' can be declared as pointer to const [constParameterPointer] qe-6.7/FFTXlib/fft_stick.c:86:47: style: Parameter 'ny' can be declared as pointer to const [constParameterPointer] qe-6.7/FFTXlib/fft_stick.c:86:56: style: Parameter 'nz' can be declared as pointer to const [constParameterPointer] qe-6.7/FFTXlib/fft_stick.c:86:65: style: Parameter 'ldx' can be declared as pointer to const [constParameterPointer] qe-6.7/FFTXlib/fft_stick.c:86:75: style: Parameter 'ldy' can be declared as pointer to const [constParameterPointer] qe-6.7/FFTXlib/fft_stick.c:110:50: style: Parameter 'ldx' can be declared as pointer to const [constParameterPointer] qe-6.7/FFTXlib/fft_stick.c:118:46: style: Parameter 'ldz' can be declared as pointer to const [constParameterPointer] qe-6.7/FFTXlib/fft_stick.c:118:56: style: Parameter 'nstick_l' can be declared as pointer to const [constParameterPointer] qe-6.7/FFTXlib/fft_stick.c:128:24: style: Parameter 'nfft' can be declared as pointer to const [constParameterPointer] qe-6.7/FFTXlib/fft_stick.c:128:52: style: Parameter 'inca' can be declared as pointer to const [constParameterPointer] qe-6.7/FFTXlib/fft_stick.c:128:63: style: Parameter 'idist' can be declared as pointer to const [constParameterPointer] qe-6.7/FFTXlib/fft_stick.c:135:26: style: Parameter 'nfft' can be declared as pointer to const [constParameterPointer] qe-6.7/FFTXlib/fft_stick.c:135:54: style: Parameter 'inca' can be declared as pointer to const [constParameterPointer] qe-6.7/FFTXlib/fft_stick.c:135:65: style: Parameter 'idist' can be declared as pointer to const [constParameterPointer] qe-6.7/FFTXlib/fft_stick.c:142:27: style: Parameter 'nfft' can be declared as pointer to const [constParameterPointer] qe-6.7/FFTXlib/fft_stick.c:142:55: style: Parameter 'inca' can be declared as pointer to const [constParameterPointer] qe-6.7/FFTXlib/fft_stick.c:142:66: style: Parameter 'idist' can be declared as pointer to const [constParameterPointer] qe-6.7/FFTXlib/fft_stick.c:149:47: style: Parameter 'ny' can be declared as pointer to const [constParameterPointer] qe-6.7/FFTXlib/fft_stick.c:149:65: style: Parameter 'ldx' can be declared as pointer to const [constParameterPointer] qe-6.7/FFTXlib/fft_stick.c:149:75: style: Parameter 'ldy' can be declared as pointer to const [constParameterPointer] qe-6.7/FFTXlib/fft_stick.c:156:14: style: Variable 'bigstride' is assigned a value that is never used. [unreadVariable] qe-6.7/FFTXlib/fftw.c:6:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] qe-6.7/FFTXlib/fftw.c:4:21: style: Parameter 's' can be declared as pointer to const [constParameterPointer] qe-6.7/FFTXlib/fftw_dp.c:24139:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] qe-6.7/FFTXlib/fftw_dp.c:24351:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] qe-6.7/FFTXlib/fftw_dp.c:24383:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] qe-6.7/FFTXlib/fftw_dp.c:23907:4: style: Redundant assignment of 'p' to itself. [selfAssignment] qe-6.7/FFTXlib/fftw_dp.c:23923:4: style: Redundant assignment of 'p' to itself. [selfAssignment] qe-6.7/FFTXlib/fftw_dp.c:24375:42: style:inconclusive: Function 'fftw_fprint_plan' argument 2 names different: declaration 'plan' definition 'p'. [funcArgNamesDifferent] qe-6.7/FFTXlib/fftw_dp.h:210:42: note: Function 'fftw_fprint_plan' argument 2 names different: declaration 'plan' definition 'p'. qe-6.7/FFTXlib/fftw_dp.c:24375:42: note: Function 'fftw_fprint_plan' argument 2 names different: declaration 'plan' definition 'p'. qe-6.7/FFTXlib/fftw_sp.c:23924:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] qe-6.7/FFTXlib/fftw_sp.c:23933:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] qe-6.7/FFTXlib/fftw_sp.c:24012:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] qe-6.7/FFTXlib/fftw_sp.c:23718:3: style: Redundant assignment of 'p' to itself. [selfAssignment] qe-6.7/FFTXlib/fftw_sp.c:23734:3: style: Redundant assignment of 'p' to itself. [selfAssignment] qe-6.7/FFTXlib/fftw_sp.c:23916:54: style:inconclusive: Function 'float_fftw_fprint_plan' argument 2 names different: declaration 'plan' definition 'p'. [funcArgNamesDifferent] qe-6.7/FFTXlib/fftw_sp.h:208:54: note: Function 'float_fftw_fprint_plan' argument 2 names different: declaration 'plan' definition 'p'. qe-6.7/FFTXlib/fftw_sp.c:23916:54: note: Function 'float_fftw_fprint_plan' argument 2 names different: declaration 'plan' definition 'p'. qe-6.7/GUI/PWgui/external/src/tkAppInit.c:83:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TCL_ERROR [valueFlowBailoutIncompleteVar] qe-6.7/clib/c_mkdir.c:31:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] qe-6.7/clib/c_mkdir.c:62:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] qe-6.7/clib/cptimer.c:82:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RUSAGE_SELF [valueFlowBailoutIncompleteVar] qe-6.7/clib/eval_infix.c:166:24: warning: Either the condition 'sp_op>=0' is redundant or the array 'stack_op[100]' is accessed at index -1, which is out of bounds. [negativeIndex] qe-6.7/clib/eval_infix.c:165:15: note: Assuming that condition 'sp_op>=0' is not redundant qe-6.7/clib/eval_infix.c:166:24: note: Negative array index qe-6.7/clib/eval_infix.c:152:16: error: Uninitialized variable: tok_temp.Value [uninitvar] qe-6.7/clib/eval_infix.c:172:16: error: Uninitialized variable: tok_temp.Value [uninitvar] qe-6.7/clib/eval_infix.c:481:13: error: Uninitialized variable: tok_temp.Value [uninitvar] qe-6.7/clib/eval_infix.c:481:13: error: Uninitialized struct member: tok_temp.Value [uninitStructMember] qe-6.7/clib/eval_infix.c:485:10: style: Variable 'left' is assigned a value that is never used. [unreadVariable] qe-6.7/clib/fletcher32.c:23:54: style: Parameter 'ndata' can be declared as pointer to const [constParameterPointer] qe-6.7/clib/md5_from_file.c:23:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] qe-6.7/clib/md5_from_file.c:61:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] qe-6.7/clib/md5_from_file.c:112:6: style: Assignment of function parameter has no effect outside the function. [uselessAssignmentArg] qe-6.7/clib/md5_from_file.c:84:6: style: Variable 'err' is assigned a value that is never used. [unreadVariable] qe-6.7/clib/md5_from_file.c:91:6: style: Variable 'err' is assigned a value that is never used. [unreadVariable] qe-6.7/clib/md5_from_file.c:98:6: style: Variable 'err' is assigned a value that is never used. [unreadVariable] qe-6.7/clib/md5_from_file.c:112:10: style: Variable 'err' is assigned a value that is never used. [unreadVariable] qe-6.7/clib/qmmm_aux.c:235:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] qe-6.7/clib/qmmm_aux.c:224:24: style: Parameter 'ndata' can be declared as pointer to const [constParameterPointer] qe-6.7/clib/qmmm_aux.c:224:39: style: Parameter 'mass' can be declared as pointer to const [constParameterPointer] qe-6.7/clib/qmmm_aux.c:224:50: style: Parameter 'type' can be declared as pointer to const [constParameterPointer] qe-6.7/clib/qmmm_aux.c:224:61: style: Parameter 'ntypes' can be declared as pointer to const [constParameterPointer] qe-6.7/clib/qmmm_aux.c:224:74: style: Parameter 'screen' can be declared as pointer to const [constParameterPointer] qe-6.7/clib/qsort.c:29:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _swap [valueFlowBailoutIncompleteVar] qe-6.7/clib/qsort.c:55:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _swap [valueFlowBailoutIncompleteVar] qe-6.7/clib/sockets.c:75:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SOCK_STREAM [valueFlowBailoutIncompleteVar] qe-6.7/clib/sockets.c:48:37: style: Parameter 'inet' can be declared as pointer to const [constParameterPointer] qe-6.7/clib/sockets.c:48:48: style: Parameter 'port' can be declared as pointer to const [constParameterPointer] qe-6.7/clib/sockets.c:115:23: style: Parameter 'psockfd' can be declared as pointer to const [constParameterPointer] qe-6.7/clib/sockets.c:115:55: style: Parameter 'plen' can be declared as pointer to const [constParameterPointer] qe-6.7/clib/sockets.c:134:22: style: Parameter 'psockfd' can be declared as pointer to const [constParameterPointer] qe-6.7/clib/sockets.c:134:48: style: Parameter 'plen' can be declared as pointer to const [constParameterPointer] qe-6.7/clib/stack.c:20:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RLIMIT_STACK [valueFlowBailoutIncompleteVar] qe-6.7/dev-tools/device_props.c:23:0: error: #error Must define CUDART_LIBRARY_NAME (e.g. libcudart.so or libcudart.dylib) [preprocessorErrorDirective] qe-6.7/external/libbeef/beefun.c:345:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RAND_MAX [valueFlowBailoutIncompleteVar] qe-6.7/external/libbeef/beefun.c:377:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] qe-6.7/external/libbeef/beefun.c:13:21: style: Parameter 'r' can be declared as pointer to const [constParameterPointer] qe-6.7/external/libbeef/beefun.c:13:32: style: Parameter 'g' can be declared as pointer to const [constParameterPointer] qe-6.7/external/libbeef/beefun.c:13:75: style: Parameter 'addlda' can be declared as pointer to const [constParameterPointer] qe-6.7/external/libbeef/beefun.c:70:29: style: Parameter 'r' can be declared as pointer to const [constParameterPointer] qe-6.7/external/libbeef/beefun.c:70:40: style: Parameter 'g' can be declared as pointer to const [constParameterPointer] qe-6.7/external/libbeef/beefun.c:70:83: style: Parameter 'addlda' can be declared as pointer to const [constParameterPointer] qe-6.7/external/libbeef/beefun.c:128:24: style: Parameter 'r' can be declared as pointer to const [constParameterPointer] qe-6.7/external/libbeef/beefun.c:128:35: style: Parameter 'g' can be declared as pointer to const [constParameterPointer] qe-6.7/external/libbeef/beefun.c:128:54: style: Parameter 'addlda' can be declared as pointer to const [constParameterPointer] qe-6.7/external/libbeef/beefun.c:163:32: style: Parameter 'r' can be declared as pointer to const [constParameterPointer] qe-6.7/external/libbeef/beefun.c:163:43: style: Parameter 'g' can be declared as pointer to const [constParameterPointer] qe-6.7/external/libbeef/beefun.c:163:62: style: Parameter 'addlda' can be declared as pointer to const [constParameterPointer] qe-6.7/external/libbeef/beefun.c:202:33: style: Parameter 'r' can be declared as pointer to const [constParameterPointer] qe-6.7/external/libbeef/beefun.c:202:44: style: Parameter 'z' can be declared as pointer to const [constParameterPointer] qe-6.7/external/libbeef/beefun.c:202:55: style: Parameter 'g' can be declared as pointer to const [constParameterPointer] qe-6.7/external/libbeef/beefun.c:203:52: style: Parameter 'addlda' can be declared as pointer to const [constParameterPointer] qe-6.7/external/libbeef/beefun.c:267:36: style: Parameter 'r' can be declared as pointer to const [constParameterPointer] qe-6.7/external/libbeef/beefun.c:267:47: style: Parameter 'z' can be declared as pointer to const [constParameterPointer] qe-6.7/external/libbeef/beefun.c:267:58: style: Parameter 'g' can be declared as pointer to const [constParameterPointer] qe-6.7/external/libbeef/beefun.c:267:77: style: Parameter 'addlda' can be declared as pointer to const [constParameterPointer] qe-6.7/external/libbeef/beefun.c:311:24: style: Parameter 'mode' can be declared as pointer to const [constParameterPointer] qe-6.7/external/libbeef/beefun.c:357:25: style: Parameter 'tbeef' can be declared as pointer to const [constParameterPointer] qe-6.7/external/libbeef/beefun.c:357:37: style: Parameter 'ionode' can be declared as pointer to const [constParameterPointer] qe-6.7/external/libbeef/beefun.c:130:17: style: Unused variable: s [unusedVariable] qe-6.7/external/libbeef/beefun.c:342:10: style: Variable 'j' is assigned a value that is never used. [unreadVariable] qe-6.7/external/libbeef/pbecor.c:46:10: style: Expression 'log(1 + x)' can be replaced by 'log1p(x)' to avoid loss of precision. [unpreciseMathCall] qe-6.7/external/libbeef/pbecor.c:147:18: style: Expression 'exp(x) - 1' can be replaced by 'expm1(x)' to avoid loss of precision. [unpreciseMathCall] qe-6.7/external/libbeef/pbecor.c:153:20: style: Expression 'log(1 + x)' can be replaced by 'log1p(x)' to avoid loss of precision. [unpreciseMathCall] qe-6.7/external/libbeef/pbecor.c:268:18: style: Expression 'exp(x) - 1' can be replaced by 'expm1(x)' to avoid loss of precision. [unpreciseMathCall] qe-6.7/external/libbeef/pbecor.c:275:25: style: Expression 'log(1 + x)' can be replaced by 'log1p(x)' to avoid loss of precision. [unpreciseMathCall] qe-6.7/external/libbeef/pbecor.c:71:6: style: Unused variable: ep [unusedVariable] diff: DONE