2024-04-21 17:30 ftp://ftp.de.debian.org/debian/pool/main/r/r-cran-gee/r-cran-gee_4.13-26.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 -D__GNUC__ --platform=unix64 -j4 platform: Linux-6.1.0-20-amd64-x86_64-with-glibc2.36 python: 3.11.2 client-version: 1.3.56 compiler: g++ (Debian 12.2.0-14) 12.2.0 cppcheck: head 2.14.0 head-info: ea2e716 (2024-04-21 15:59:20 +0200) count: 39 39 elapsed-time: 0.6 0.6 head-timing-info: old-timing-info: head results: gee/src/ugee.c:1404:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable dgefa [valueFlowBailoutIncompleteVar] gee/src/ugee.c:1654:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] gee/src/ugee.c:847:5: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] gee/src/ugee.c:354:10: style: The if condition is the same as the previous if condition [duplicateCondition] gee/src/ugee.c:352:10: note: First condition gee/src/ugee.c:354:10: note: Second condition gee/src/ugee.c:356:10: style: The if condition is the same as the previous if condition [duplicateCondition] gee/src/ugee.c:354:10: note: First condition gee/src/ugee.c:356:10: note: Second condition gee/src/ugee.c:557:23: style: The if condition is the same as the previous if condition [duplicateCondition] gee/src/ugee.c:555:23: note: First condition gee/src/ugee.c:557:23: note: Second condition gee/src/ugee.c:603:6: style: The if condition is the same as the previous if condition [duplicateCondition] gee/src/ugee.c:601:6: note: First condition gee/src/ugee.c:603:6: note: Second condition gee/src/ugee.c:605:6: style: The if condition is the same as the previous if condition [duplicateCondition] gee/src/ugee.c:603:6: note: First condition gee/src/ugee.c:605:6: note: Second condition gee/src/ugee.c:817:5: warning: Either the condition 'tmp==NULL' is redundant or there is possible null pointer dereference: tmp. [nullPointerRedundantCheck] gee/src/ugee.c:811:13: note: Assuming that condition 'tmp==NULL' is not redundant gee/src/ugee.c:817:5: note: Null pointer dereference gee/src/ugee.c:818:5: warning: Either the condition 'tmp==NULL' is redundant or there is possible null pointer dereference: tmp. [nullPointerRedundantCheck] gee/src/ugee.c:811:13: note: Assuming that condition 'tmp==NULL' is not redundant gee/src/ugee.c:818:5: note: Null pointer dereference gee/src/ugee.c:819:5: warning: Either the condition 'tmp==NULL' is redundant or there is possible null pointer dereference: tmp. [nullPointerRedundantCheck] gee/src/ugee.c:811:13: note: Assuming that condition 'tmp==NULL' is not redundant gee/src/ugee.c:819:5: note: Null pointer dereference gee/src/ugee.c:821:5: warning: Either the condition 'tmp==NULL' is redundant or there is possible null pointer dereference: tmp. [nullPointerRedundantCheck] gee/src/ugee.c:811:13: note: Assuming that condition 'tmp==NULL' is not redundant gee/src/ugee.c:821:5: note: Null pointer dereference gee/src/ugee.c:823:9: warning: Either the condition 'tmp==NULL' is redundant or there is possible null pointer dereference: tmp. [nullPointerRedundantCheck] gee/src/ugee.c:811:13: note: Assuming that condition 'tmp==NULL' is not redundant gee/src/ugee.c:823:9: note: Null pointer dereference gee/src/ugee.c:23:77: style: Parameter 'nobs' can be declared as pointer to const. However it seems that 'Cgee' is a callback function, if 'nobs' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gee/src/ugee.c:1645:25: note: You might need to cast the function pointer here gee/src/ugee.c:23:77: note: Parameter 'nobs' can be declared as pointer to const gee/src/ugee.c:23:88: style: Parameter 'p' can be declared as pointer to const. However it seems that 'Cgee' is a callback function, if 'p' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gee/src/ugee.c:1645:25: note: You might need to cast the function pointer here gee/src/ugee.c:23:88: note: Parameter 'p' can be declared as pointer to const gee/src/ugee.c:23:207: style: Parameter 'tol' can be declared as pointer to const. However it seems that 'Cgee' is a callback function, if 'tol' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gee/src/ugee.c:1645:25: note: You might need to cast the function pointer here gee/src/ugee.c:23:207: note: Parameter 'tol' can be declared as pointer to const gee/src/ugee.c:23:243: style: Parameter 'silent' can be declared as pointer to const. However it seems that 'Cgee' is a callback function, if 'silent' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gee/src/ugee.c:1645:25: note: You might need to cast the function pointer here gee/src/ugee.c:23:243: note: Parameter 'silent' can be declared as pointer to const gee/src/ugee.c:23:273: style: Parameter 'scale_fix' can be declared as pointer to const. However it seems that 'Cgee' is a callback function, if 'scale_fix' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gee/src/ugee.c:1645:25: note: You might need to cast the function pointer here gee/src/ugee.c:23:273: note: Parameter 'scale_fix' can be declared as pointer to const gee/src/ugee.c:23:289: style: Parameter 'compatflag' can be declared as pointer to const. However it seems that 'Cgee' is a callback function, if 'compatflag' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gee/src/ugee.c:1645:25: note: You might need to cast the function pointer here gee/src/ugee.c:23:289: note: Parameter 'compatflag' can be declared as pointer to const gee/src/ugee.c:35:23: style: Variable 'ete' can be declared as pointer to const [constVariablePointer] gee/src/ugee.c:42:10: style: Variable 'onep' can be declared as pointer to const [constVariablePointer] gee/src/ugee.c:45:21: style: Variable 'maxnip' can be declared as pointer to const [constVariablePointer] gee/src/ugee.c:73:5: style: Variable 'Sload' can be declared as pointer to const [constVariablePointer] gee/src/ugee.c:74:5: style: Variable 'Sload' can be declared as pointer to const [constVariablePointer] gee/src/ugee.c:75:5: style: Variable 'Sload' can be declared as pointer to const [constVariablePointer] gee/src/ugee.c:76:5: style: Variable 'Sload' can be declared as pointer to const [constVariablePointer] gee/src/ugee.c:77:5: style: Variable 'Sload' can be declared as pointer to const [constVariablePointer] gee/src/ugee.c:78:5: style: Variable 'Sload' can be declared as pointer to const [constVariablePointer] gee/src/ugee.c:115:2: style: Variable 'Sload' can be declared as pointer to const [constVariablePointer] gee/src/ugee.c:858:21: style: Variable 'inelem' can be declared as pointer to const [constVariablePointer] gee/src/ugee.c:909:44: style: Parameter 'Source' can be declared as pointer to const [constParameterPointer] gee/src/ugee.c:941:39: style: Parameter 'inmat' can be declared as pointer to const [constParameterPointer] gee/src/ugee.c:989:55: style: Parameter 'socket' can be declared as pointer to const [constParameterPointer] gee/src/ugee.c:992:24: style: Variable 'VC_GEE_plughead' can be declared as pointer to const [constVariablePointer] gee/src/ugee.c:1118:13: style: Variable 'loc' can be declared as pointer to const [constVariablePointer] gee/src/ugee.c:1131:20: style: Variable 'look' can be declared as pointer to const [constVariablePointer] gee/src/ugee.c:1166:20: style: Variable 'look' can be declared as pointer to const [constVariablePointer] gee/src/ugee.c:1514:20: style: Variable 'look' can be declared as pointer to const [constVariablePointer] gee/src/ugee.c:1534:44: style: Parameter 'inmat' can be declared as pointer to const [constParameterPointer] diff: DONE