2025-07-11 07:27 ftp://ftp.de.debian.org/debian/pool/main/r/r-cran-caret/r-cran-caret_7.0-1+dfsg.orig.tar.xz 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 -j3 platform: Linux-6.8.0-63-generic-x86_64-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: 8f3d36a (2025-07-08 11:07:56 +0200) count: 25 25 elapsed-time: 0.0 0.1 head-timing-info: old-timing-info: head results: caret/src/caret.c:41:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DBL_MAX [valueFlowBailoutIncompleteVar] caret/src/caret.c:162:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DBL_MAX [valueFlowBailoutIncompleteVar] caret/src/caret.c:258:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] caret/src/caret.c:93:3: style: Variable 'j1' is assigned an expression that holds the same value. [redundantAssignment] caret/src/caret.c:88:9: note: j1 is assigned 'j' here. caret/src/caret.c:93:3: note: Variable 'j1' is assigned an expression that holds the same value. caret/src/caret.c:221:5: style: Variable 'j1' is assigned an expression that holds the same value. [redundantAssignment] caret/src/caret.c:215:7: note: j1 is assigned 'j' here. caret/src/caret.c:221:5: note: Variable 'j1' is assigned an expression that holds the same value. caret/src/caret.c:22:12: style: Parameter 'kin' can be declared as pointer to const. However it seems that 'knn3' is a callback function, if 'kin' is declared with const you might also need to cast function pointer(s). [constParameterCallback] caret/src/caret.c:251:22: note: You might need to cast the function pointer here caret/src/caret.c:22:12: note: Parameter 'kin' can be declared as pointer to const caret/src/caret.c:22:23: style: Parameter 'lin' can be declared as pointer to const. However it seems that 'knn3' is a callback function, if 'lin' is declared with const you might also need to cast function pointer(s). [constParameterCallback] caret/src/caret.c:251:22: note: You might need to cast the function pointer here caret/src/caret.c:22:23: note: Parameter 'lin' can be declared as pointer to const caret/src/caret.c:22:34: style: Parameter 'pntr' can be declared as pointer to const. However it seems that 'knn3' is a callback function, if 'pntr' is declared with const you might also need to cast function pointer(s). [constParameterCallback] caret/src/caret.c:251:22: note: You might need to cast the function pointer here caret/src/caret.c:22:34: note: Parameter 'pntr' can be declared as pointer to const caret/src/caret.c:22:46: style: Parameter 'pnte' can be declared as pointer to const. However it seems that 'knn3' is a callback function, if 'pnte' is declared with const you might also need to cast function pointer(s). [constParameterCallback] caret/src/caret.c:251:22: note: You might need to cast the function pointer here caret/src/caret.c:22:46: note: Parameter 'pnte' can be declared as pointer to const caret/src/caret.c:22:58: style: Parameter 'p' can be declared as pointer to const. However it seems that 'knn3' is a callback function, if 'p' is declared with const you might also need to cast function pointer(s). [constParameterCallback] caret/src/caret.c:251:22: note: You might need to cast the function pointer here caret/src/caret.c:22:58: note: Parameter 'p' can be declared as pointer to const caret/src/caret.c:23:16: style: Parameter 'train' can be declared as pointer to const. However it seems that 'knn3' is a callback function, if 'train' is declared with const you might also need to cast function pointer(s). [constParameterCallback] caret/src/caret.c:251:22: note: You might need to cast the function pointer here caret/src/caret.c:23:16: note: Parameter 'train' can be declared as pointer to const caret/src/caret.c:23:29: style: Parameter 'class' can be declared as pointer to const. However it seems that 'knn3' is a callback function, if 'class' is declared with const you might also need to cast function pointer(s). [constParameterCallback] caret/src/caret.c:251:22: note: You might need to cast the function pointer here caret/src/caret.c:23:29: note: Parameter 'class' can be declared as pointer to const caret/src/caret.c:23:44: style: Parameter 'test' can be declared as pointer to const. However it seems that 'knn3' is a callback function, if 'test' is declared with const you might also need to cast function pointer(s). [constParameterCallback] caret/src/caret.c:251:22: note: You might need to cast the function pointer here caret/src/caret.c:23:44: note: Parameter 'test' can be declared as pointer to const caret/src/caret.c:24:27: style: Parameter 'nc' can be declared as pointer to const. However it seems that 'knn3' is a callback function, if 'nc' is declared with const you might also need to cast function pointer(s). [constParameterCallback] caret/src/caret.c:251:22: note: You might need to cast the function pointer here caret/src/caret.c:24:27: note: Parameter 'nc' can be declared as pointer to const caret/src/caret.c:24:37: style: Parameter 'cv' can be declared as pointer to const. However it seems that 'knn3' is a callback function, if 'cv' is declared with const you might also need to cast function pointer(s). [constParameterCallback] caret/src/caret.c:251:22: note: You might need to cast the function pointer here caret/src/caret.c:24:37: note: Parameter 'cv' can be declared as pointer to const caret/src/caret.c:24:47: style: Parameter 'use_all' can be declared as pointer to const. However it seems that 'knn3' is a callback function, if 'use_all' is declared with const you might also need to cast function pointer(s). [constParameterCallback] caret/src/caret.c:251:22: note: You might need to cast the function pointer here caret/src/caret.c:24:47: note: Parameter 'use_all' can be declared as pointer to const caret/src/caret.c:138:15: style: Parameter 'kin' can be declared as pointer to const. However it seems that 'knn3reg' is a callback function, if 'kin' is declared with const you might also need to cast function pointer(s). [constParameterCallback] caret/src/caret.c:251:56: note: You might need to cast the function pointer here caret/src/caret.c:138:15: note: Parameter 'kin' can be declared as pointer to const caret/src/caret.c:138:26: style: Parameter 'pntr' can be declared as pointer to const. However it seems that 'knn3reg' is a callback function, if 'pntr' is declared with const you might also need to cast function pointer(s). [constParameterCallback] caret/src/caret.c:251:56: note: You might need to cast the function pointer here caret/src/caret.c:138:26: note: Parameter 'pntr' can be declared as pointer to const caret/src/caret.c:138:38: style: Parameter 'pnte' can be declared as pointer to const. However it seems that 'knn3reg' is a callback function, if 'pnte' is declared with const you might also need to cast function pointer(s). [constParameterCallback] caret/src/caret.c:251:56: note: You might need to cast the function pointer here caret/src/caret.c:138:38: note: Parameter 'pnte' can be declared as pointer to const caret/src/caret.c:138:50: style: Parameter 'p' can be declared as pointer to const. However it seems that 'knn3reg' is a callback function, if 'p' is declared with const you might also need to cast function pointer(s). [constParameterCallback] caret/src/caret.c:251:56: note: You might need to cast the function pointer here caret/src/caret.c:138:50: note: Parameter 'p' can be declared as pointer to const caret/src/caret.c:139:11: style: Parameter 'train' can be declared as pointer to const. However it seems that 'knn3reg' is a callback function, if 'train' is declared with const you might also need to cast function pointer(s). [constParameterCallback] caret/src/caret.c:251:56: note: You might need to cast the function pointer here caret/src/caret.c:139:11: note: Parameter 'train' can be declared as pointer to const caret/src/caret.c:139:26: style: Parameter 'y' can be declared as pointer to const. However it seems that 'knn3reg' is a callback function, if 'y' is declared with const you might also need to cast function pointer(s). [constParameterCallback] caret/src/caret.c:251:56: note: You might need to cast the function pointer here caret/src/caret.c:139:26: note: Parameter 'y' can be declared as pointer to const caret/src/caret.c:139:37: style: Parameter 'test' can be declared as pointer to const. However it seems that 'knn3reg' is a callback function, if 'test' is declared with const you might also need to cast function pointer(s). [constParameterCallback] caret/src/caret.c:251:56: note: You might need to cast the function pointer here caret/src/caret.c:139:37: note: Parameter 'test' can be declared as pointer to const caret/src/caret.c:140:24: style: Parameter 'cv' can be declared as pointer to const. However it seems that 'knn3reg' is a callback function, if 'cv' is declared with const you might also need to cast function pointer(s). [constParameterCallback] caret/src/caret.c:251:56: note: You might need to cast the function pointer here caret/src/caret.c:140:24: note: Parameter 'cv' can be declared as pointer to const caret/src/caret.c:140:34: style: Parameter 'use_all' can be declared as pointer to const. However it seems that 'knn3reg' is a callback function, if 'use_all' is declared with const you might also need to cast function pointer(s). [constParameterCallback] caret/src/caret.c:251:56: note: You might need to cast the function pointer here caret/src/caret.c:140:34: note: Parameter 'use_all' can be declared as pointer to const diff: DONE