2024-04-21 17:47 ftp://ftp.de.debian.org/debian/pool/main/r/r-cran-ks/r-cran-ks_1.14.2.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: 63 63 elapsed-time: 164.7 163.6 head-timing-info: old-timing-info: head results: ks/src/ks.c:594:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] ks/src/ks.c:51:34: style: Parameter 'n' can be declared as pointer to const. However it seems that 'massdist1d' is a callback function, if 'n' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ks/src/ks.c:580:29: note: You might need to cast the function pointer here ks/src/ks.c:51:34: note: Parameter 'n' can be declared as pointer to const ks/src/ks.c:51:45: style: Parameter 'a1' can be declared as pointer to const. However it seems that 'massdist1d' is a callback function, if 'a1' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ks/src/ks.c:580:29: note: You might need to cast the function pointer here ks/src/ks.c:51:45: note: Parameter 'a1' can be declared as pointer to const ks/src/ks.c:51:57: style: Parameter 'b1' can be declared as pointer to const. However it seems that 'massdist1d' is a callback function, if 'b1' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ks/src/ks.c:580:29: note: You might need to cast the function pointer here ks/src/ks.c:51:57: note: Parameter 'b1' can be declared as pointer to const ks/src/ks.c:51:66: style: Parameter 'M1' can be declared as pointer to const. However it seems that 'massdist1d' is a callback function, if 'M1' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ks/src/ks.c:580:29: note: You might need to cast the function pointer here ks/src/ks.c:51:66: note: Parameter 'M1' can be declared as pointer to const ks/src/ks.c:52:24: style: Parameter 'weight' can be declared as pointer to const. However it seems that 'massdist1d' is a callback function, if 'weight' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ks/src/ks.c:580:29: note: You might need to cast the function pointer here ks/src/ks.c:52:24: note: Parameter 'weight' can be declared as pointer to const ks/src/ks.c:88:46: style: Parameter 'n' can be declared as pointer to const. However it seems that 'massdist2d' is a callback function, if 'n' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ks/src/ks.c:581:29: note: You might need to cast the function pointer here ks/src/ks.c:88:46: note: Parameter 'n' can be declared as pointer to const ks/src/ks.c:89:11: style: Parameter 'a1' can be declared as pointer to const. However it seems that 'massdist2d' is a callback function, if 'a1' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ks/src/ks.c:581:29: note: You might need to cast the function pointer here ks/src/ks.c:89:11: note: Parameter 'a1' can be declared as pointer to const ks/src/ks.c:89:23: style: Parameter 'a2' can be declared as pointer to const. However it seems that 'massdist2d' is a callback function, if 'a2' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ks/src/ks.c:581:29: note: You might need to cast the function pointer here ks/src/ks.c:89:23: note: Parameter 'a2' can be declared as pointer to const ks/src/ks.c:89:35: style: Parameter 'b1' can be declared as pointer to const. However it seems that 'massdist2d' is a callback function, if 'b1' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ks/src/ks.c:581:29: note: You might need to cast the function pointer here ks/src/ks.c:89:35: note: Parameter 'b1' can be declared as pointer to const ks/src/ks.c:89:47: style: Parameter 'b2' can be declared as pointer to const. However it seems that 'massdist2d' is a callback function, if 'b2' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ks/src/ks.c:581:29: note: You might need to cast the function pointer here ks/src/ks.c:89:47: note: Parameter 'b2' can be declared as pointer to const ks/src/ks.c:90:8: style: Parameter 'M1' can be declared as pointer to const. However it seems that 'massdist2d' is a callback function, if 'M1' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ks/src/ks.c:581:29: note: You might need to cast the function pointer here ks/src/ks.c:90:8: note: Parameter 'M1' can be declared as pointer to const ks/src/ks.c:90:17: style: Parameter 'M2' can be declared as pointer to const. However it seems that 'massdist2d' is a callback function, if 'M2' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ks/src/ks.c:581:29: note: You might need to cast the function pointer here ks/src/ks.c:90:17: note: Parameter 'M2' can be declared as pointer to const ks/src/ks.c:90:29: style: Parameter 'weight' can be declared as pointer to const. However it seems that 'massdist2d' is a callback function, if 'weight' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ks/src/ks.c:581:29: note: You might need to cast the function pointer here ks/src/ks.c:90:29: note: Parameter 'weight' can be declared as pointer to const ks/src/ks.c:140:58: style: Parameter 'n' can be declared as pointer to const. However it seems that 'massdist3d' is a callback function, if 'n' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ks/src/ks.c:582:29: note: You might need to cast the function pointer here ks/src/ks.c:140:58: note: Parameter 'n' can be declared as pointer to const ks/src/ks.c:141:11: style: Parameter 'a1' can be declared as pointer to const. However it seems that 'massdist3d' is a callback function, if 'a1' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ks/src/ks.c:582:29: note: You might need to cast the function pointer here ks/src/ks.c:141:11: note: Parameter 'a1' can be declared as pointer to const ks/src/ks.c:141:23: style: Parameter 'a2' can be declared as pointer to const. However it seems that 'massdist3d' is a callback function, if 'a2' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ks/src/ks.c:582:29: note: You might need to cast the function pointer here ks/src/ks.c:141:23: note: Parameter 'a2' can be declared as pointer to const ks/src/ks.c:141:35: style: Parameter 'a3' can be declared as pointer to const. However it seems that 'massdist3d' is a callback function, if 'a3' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ks/src/ks.c:582:29: note: You might need to cast the function pointer here ks/src/ks.c:141:35: note: Parameter 'a3' can be declared as pointer to const ks/src/ks.c:142:11: style: Parameter 'b1' can be declared as pointer to const. However it seems that 'massdist3d' is a callback function, if 'b1' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ks/src/ks.c:582:29: note: You might need to cast the function pointer here ks/src/ks.c:142:11: note: Parameter 'b1' can be declared as pointer to const ks/src/ks.c:142:23: style: Parameter 'b2' can be declared as pointer to const. However it seems that 'massdist3d' is a callback function, if 'b2' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ks/src/ks.c:582:29: note: You might need to cast the function pointer here ks/src/ks.c:142:23: note: Parameter 'b2' can be declared as pointer to const ks/src/ks.c:142:35: style: Parameter 'b3' can be declared as pointer to const. However it seems that 'massdist3d' is a callback function, if 'b3' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ks/src/ks.c:582:29: note: You might need to cast the function pointer here ks/src/ks.c:142:35: note: Parameter 'b3' can be declared as pointer to const ks/src/ks.c:143:8: style: Parameter 'M1' can be declared as pointer to const. However it seems that 'massdist3d' is a callback function, if 'M1' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ks/src/ks.c:582:29: note: You might need to cast the function pointer here ks/src/ks.c:143:8: note: Parameter 'M1' can be declared as pointer to const ks/src/ks.c:143:17: style: Parameter 'M2' can be declared as pointer to const. However it seems that 'massdist3d' is a callback function, if 'M2' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ks/src/ks.c:582:29: note: You might need to cast the function pointer here ks/src/ks.c:143:17: note: Parameter 'M2' can be declared as pointer to const ks/src/ks.c:143:26: style: Parameter 'M3' can be declared as pointer to const. However it seems that 'massdist3d' is a callback function, if 'M3' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ks/src/ks.c:582:29: note: You might need to cast the function pointer here ks/src/ks.c:143:26: note: Parameter 'M3' can be declared as pointer to const ks/src/ks.c:143:38: style: Parameter 'weight' can be declared as pointer to const. However it seems that 'massdist3d' is a callback function, if 'weight' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ks/src/ks.c:582:29: note: You might need to cast the function pointer here ks/src/ks.c:143:38: note: Parameter 'weight' can be declared as pointer to const ks/src/ks.c:226:70: style: Parameter 'n' can be declared as pointer to const. However it seems that 'massdist4d' is a callback function, if 'n' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ks/src/ks.c:583:29: note: You might need to cast the function pointer here ks/src/ks.c:226:70: note: Parameter 'n' can be declared as pointer to const ks/src/ks.c:227:11: style: Parameter 'a1' can be declared as pointer to const. However it seems that 'massdist4d' is a callback function, if 'a1' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ks/src/ks.c:583:29: note: You might need to cast the function pointer here ks/src/ks.c:227:11: note: Parameter 'a1' can be declared as pointer to const ks/src/ks.c:227:23: style: Parameter 'a2' can be declared as pointer to const. However it seems that 'massdist4d' is a callback function, if 'a2' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ks/src/ks.c:583:29: note: You might need to cast the function pointer here ks/src/ks.c:227:23: note: Parameter 'a2' can be declared as pointer to const ks/src/ks.c:227:35: style: Parameter 'a3' can be declared as pointer to const. However it seems that 'massdist4d' is a callback function, if 'a3' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ks/src/ks.c:583:29: note: You might need to cast the function pointer here ks/src/ks.c:227:35: note: Parameter 'a3' can be declared as pointer to const ks/src/ks.c:227:47: style: Parameter 'a4' can be declared as pointer to const. However it seems that 'massdist4d' is a callback function, if 'a4' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ks/src/ks.c:583:29: note: You might need to cast the function pointer here ks/src/ks.c:227:47: note: Parameter 'a4' can be declared as pointer to const ks/src/ks.c:228:11: style: Parameter 'b1' can be declared as pointer to const. However it seems that 'massdist4d' is a callback function, if 'b1' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ks/src/ks.c:583:29: note: You might need to cast the function pointer here ks/src/ks.c:228:11: note: Parameter 'b1' can be declared as pointer to const ks/src/ks.c:228:23: style: Parameter 'b2' can be declared as pointer to const. However it seems that 'massdist4d' is a callback function, if 'b2' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ks/src/ks.c:583:29: note: You might need to cast the function pointer here ks/src/ks.c:228:23: note: Parameter 'b2' can be declared as pointer to const ks/src/ks.c:228:35: style: Parameter 'b3' can be declared as pointer to const. However it seems that 'massdist4d' is a callback function, if 'b3' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ks/src/ks.c:583:29: note: You might need to cast the function pointer here ks/src/ks.c:228:35: note: Parameter 'b3' can be declared as pointer to const ks/src/ks.c:228:47: style: Parameter 'b4' can be declared as pointer to const. However it seems that 'massdist4d' is a callback function, if 'b4' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ks/src/ks.c:583:29: note: You might need to cast the function pointer here ks/src/ks.c:228:47: note: Parameter 'b4' can be declared as pointer to const ks/src/ks.c:229:8: style: Parameter 'M1' can be declared as pointer to const. However it seems that 'massdist4d' is a callback function, if 'M1' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ks/src/ks.c:583:29: note: You might need to cast the function pointer here ks/src/ks.c:229:8: note: Parameter 'M1' can be declared as pointer to const ks/src/ks.c:229:17: style: Parameter 'M2' can be declared as pointer to const. However it seems that 'massdist4d' is a callback function, if 'M2' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ks/src/ks.c:583:29: note: You might need to cast the function pointer here ks/src/ks.c:229:17: note: Parameter 'M2' can be declared as pointer to const ks/src/ks.c:229:26: style: Parameter 'M3' can be declared as pointer to const. However it seems that 'massdist4d' is a callback function, if 'M3' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ks/src/ks.c:583:29: note: You might need to cast the function pointer here ks/src/ks.c:229:26: note: Parameter 'M3' can be declared as pointer to const ks/src/ks.c:229:35: style: Parameter 'M4' can be declared as pointer to const. However it seems that 'massdist4d' is a callback function, if 'M4' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ks/src/ks.c:583:29: note: You might need to cast the function pointer here ks/src/ks.c:229:35: note: Parameter 'M4' can be declared as pointer to const ks/src/ks.c:229:47: style: Parameter 'weight' can be declared as pointer to const. However it seems that 'massdist4d' is a callback function, if 'weight' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ks/src/ks.c:583:29: note: You might need to cast the function pointer here ks/src/ks.c:229:47: note: Parameter 'weight' can be declared as pointer to const ks/src/ks.c:389:32: style: Parameter 'n' can be declared as pointer to const. However it seems that 'interp1d' is a callback function, if 'n' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ks/src/ks.c:584:27: note: You might need to cast the function pointer here ks/src/ks.c:389:32: note: Parameter 'n' can be declared as pointer to const ks/src/ks.c:389:43: style: Parameter 'a1' can be declared as pointer to const. However it seems that 'interp1d' is a callback function, if 'a1' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ks/src/ks.c:584:27: note: You might need to cast the function pointer here ks/src/ks.c:389:43: note: Parameter 'a1' can be declared as pointer to const ks/src/ks.c:389:55: style: Parameter 'b1' can be declared as pointer to const. However it seems that 'interp1d' is a callback function, if 'b1' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ks/src/ks.c:584:27: note: You might need to cast the function pointer here ks/src/ks.c:389:55: note: Parameter 'b1' can be declared as pointer to const ks/src/ks.c:389:64: style: Parameter 'M1' can be declared as pointer to const. However it seems that 'interp1d' is a callback function, if 'M1' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ks/src/ks.c:584:27: note: You might need to cast the function pointer here ks/src/ks.c:389:64: note: Parameter 'M1' can be declared as pointer to const ks/src/ks.c:390:23: style: Parameter 'fun' can be declared as pointer to const. However it seems that 'interp1d' is a callback function, if 'fun' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ks/src/ks.c:584:27: note: You might need to cast the function pointer here ks/src/ks.c:390:23: note: Parameter 'fun' can be declared as pointer to const ks/src/ks.c:424:44: style: Parameter 'n' can be declared as pointer to const. However it seems that 'interp2d' is a callback function, if 'n' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ks/src/ks.c:585:27: note: You might need to cast the function pointer here ks/src/ks.c:424:44: note: Parameter 'n' can be declared as pointer to const ks/src/ks.c:425:16: style: Parameter 'a1' can be declared as pointer to const. However it seems that 'interp2d' is a callback function, if 'a1' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ks/src/ks.c:585:27: note: You might need to cast the function pointer here ks/src/ks.c:425:16: note: Parameter 'a1' can be declared as pointer to const ks/src/ks.c:425:28: style: Parameter 'a2' can be declared as pointer to const. However it seems that 'interp2d' is a callback function, if 'a2' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ks/src/ks.c:585:27: note: You might need to cast the function pointer here ks/src/ks.c:425:28: note: Parameter 'a2' can be declared as pointer to const ks/src/ks.c:425:40: style: Parameter 'b1' can be declared as pointer to const. However it seems that 'interp2d' is a callback function, if 'b1' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ks/src/ks.c:585:27: note: You might need to cast the function pointer here ks/src/ks.c:425:40: note: Parameter 'b1' can be declared as pointer to const ks/src/ks.c:425:52: style: Parameter 'b2' can be declared as pointer to const. However it seems that 'interp2d' is a callback function, if 'b2' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ks/src/ks.c:585:27: note: You might need to cast the function pointer here ks/src/ks.c:425:52: note: Parameter 'b2' can be declared as pointer to const ks/src/ks.c:426:13: style: Parameter 'M1' can be declared as pointer to const. However it seems that 'interp2d' is a callback function, if 'M1' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ks/src/ks.c:585:27: note: You might need to cast the function pointer here ks/src/ks.c:426:13: note: Parameter 'M1' can be declared as pointer to const ks/src/ks.c:426:22: style: Parameter 'M2' can be declared as pointer to const. However it seems that 'interp2d' is a callback function, if 'M2' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ks/src/ks.c:585:27: note: You might need to cast the function pointer here ks/src/ks.c:426:22: note: Parameter 'M2' can be declared as pointer to const ks/src/ks.c:426:34: style: Parameter 'fun' can be declared as pointer to const. However it seems that 'interp2d' is a callback function, if 'fun' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ks/src/ks.c:585:27: note: You might need to cast the function pointer here ks/src/ks.c:426:34: note: Parameter 'fun' can be declared as pointer to const ks/src/ks.c:475:56: style: Parameter 'n' can be declared as pointer to const. However it seems that 'interp3d' is a callback function, if 'n' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ks/src/ks.c:586:27: note: You might need to cast the function pointer here ks/src/ks.c:475:56: note: Parameter 'n' can be declared as pointer to const ks/src/ks.c:476:16: style: Parameter 'a1' can be declared as pointer to const. However it seems that 'interp3d' is a callback function, if 'a1' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ks/src/ks.c:586:27: note: You might need to cast the function pointer here ks/src/ks.c:476:16: note: Parameter 'a1' can be declared as pointer to const ks/src/ks.c:476:28: style: Parameter 'a2' can be declared as pointer to const. However it seems that 'interp3d' is a callback function, if 'a2' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ks/src/ks.c:586:27: note: You might need to cast the function pointer here ks/src/ks.c:476:28: note: Parameter 'a2' can be declared as pointer to const ks/src/ks.c:476:40: style: Parameter 'a3' can be declared as pointer to const. However it seems that 'interp3d' is a callback function, if 'a3' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ks/src/ks.c:586:27: note: You might need to cast the function pointer here ks/src/ks.c:476:40: note: Parameter 'a3' can be declared as pointer to const ks/src/ks.c:477:16: style: Parameter 'b1' can be declared as pointer to const. However it seems that 'interp3d' is a callback function, if 'b1' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ks/src/ks.c:586:27: note: You might need to cast the function pointer here ks/src/ks.c:477:16: note: Parameter 'b1' can be declared as pointer to const ks/src/ks.c:477:28: style: Parameter 'b2' can be declared as pointer to const. However it seems that 'interp3d' is a callback function, if 'b2' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ks/src/ks.c:586:27: note: You might need to cast the function pointer here ks/src/ks.c:477:28: note: Parameter 'b2' can be declared as pointer to const ks/src/ks.c:477:40: style: Parameter 'b3' can be declared as pointer to const. However it seems that 'interp3d' is a callback function, if 'b3' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ks/src/ks.c:586:27: note: You might need to cast the function pointer here ks/src/ks.c:477:40: note: Parameter 'b3' can be declared as pointer to const ks/src/ks.c:478:20: style: Parameter 'M1' can be declared as pointer to const. However it seems that 'interp3d' is a callback function, if 'M1' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ks/src/ks.c:586:27: note: You might need to cast the function pointer here ks/src/ks.c:478:20: note: Parameter 'M1' can be declared as pointer to const ks/src/ks.c:478:29: style: Parameter 'M2' can be declared as pointer to const. However it seems that 'interp3d' is a callback function, if 'M2' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ks/src/ks.c:586:27: note: You might need to cast the function pointer here ks/src/ks.c:478:29: note: Parameter 'M2' can be declared as pointer to const ks/src/ks.c:478:38: style: Parameter 'M3' can be declared as pointer to const. However it seems that 'interp3d' is a callback function, if 'M3' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ks/src/ks.c:586:27: note: You might need to cast the function pointer here ks/src/ks.c:478:38: note: Parameter 'M3' can be declared as pointer to const ks/src/ks.c:478:50: style: Parameter 'fun' can be declared as pointer to const. However it seems that 'interp3d' is a callback function, if 'fun' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ks/src/ks.c:586:27: note: You might need to cast the function pointer here ks/src/ks.c:478:50: note: Parameter 'fun' can be declared as pointer to const diff: DONE