2026-07-25 05:40 ftp://ftp.de.debian.org/debian/pool/main/r/r-cran-rsolnp/r-cran-rsolnp_2.0.1.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 -j96 platform: Linux-6.8.0-111-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.4.0 compiler: g++ (Ubuntu 13.3.0-6ubuntu2~24.04.1) 13.3.0 cppcheck: head 2.21.0 head-info: 1ef5ef3 (2026-07-24 19:54:54 +0200) count: 22 22 elapsed-time: 0.9 0.4 head-timing-info: old-timing-info: head results: Rsolnp/src/RcppExports.cpp:23:1: error: There is an unknown macro here somewhere. Configuration is required. If END_RCPP is a macro then please configure it. [unknownMacro] Rsolnp/src/subnp_helpers.h:13:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Rcout [valueFlowBailoutIncompleteVar] Rsolnp/src/subnp_helpers.h:65:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fast [valueFlowBailoutIncompleteVar] Rsolnp/src/subnp_helpers.h:88:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fast [valueFlowBailoutIncompleteVar] Rsolnp/src/subnp_helpers.h:109:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fast [valueFlowBailoutIncompleteVar] Rsolnp/src/subnp_helpers.h:150:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NA_REAL [valueFlowBailoutIncompleteVar] Rsolnp/src/solnp.cpp:116:70: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ones [valueFlowBailoutIncompleteVar] Rsolnp/src/subnp_state.cpp:69:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable zeros [valueFlowBailoutIncompleteVar] Rsolnp/src/subnp_state.h:25:5: style: Struct 'subnp_state' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] Rsolnp/src/solnp.cpp:271:19: style: Redundant initialization for 'best_feas_obj'. The initialized value is overwritten before it is read. [redundantInitialization] Rsolnp/src/solnp.cpp:101:26: note: best_feas_obj is initialized Rsolnp/src/solnp.cpp:271:19: note: best_feas_obj is overwritten Rsolnp/src/solnp.cpp:99:12: style: The scope of the variable 'grad_norm' can be reduced. [variableScope] Rsolnp/src/solnp.cpp:104:12: style: The scope of the variable 'step_norm' can be reduced. [variableScope] Rsolnp/src/solnp.cpp:132:17: style: Consider using std::transform algorithm instead of a raw loop. [useStlAlgorithm] Rsolnp/src/solnp.cpp:86:25: style: Variable 'subnp.penalty_param' is assigned a value that is never used. [unreadVariable] Rsolnp/src/solnp.cpp:99:22: style: Variable 'grad_norm' is assigned a value that is never used. [unreadVariable] Rsolnp/src/solnp.cpp:104:22: style: Variable 'step_norm' is assigned a value that is never used. [unreadVariable] Rsolnp/src/subnp_state.cpp:55:12: style: The scope of the variable 'max_step_obj' can be reduced. [variableScope] Rsolnp/src/subnp_state.cpp:133:23: style: Local variable 'r' shadows outer variable [shadowVariable] Rsolnp/src/subnp_state.cpp:33:15: note: Shadowed variable Rsolnp/src/subnp_state.cpp:133:23: note: Shadow local variable Rsolnp/src/subnp_state.cpp:140:23: style: Local variable 'r' shadows outer variable [shadowVariable] Rsolnp/src/subnp_state.cpp:33:15: note: Shadowed variable Rsolnp/src/subnp_state.cpp:140:23: note: Shadow local variable Rsolnp/src/subnp_state.cpp:277:27: style: Local variable 'r' shadows outer variable [shadowVariable] Rsolnp/src/subnp_state.cpp:33:15: note: Shadowed variable Rsolnp/src/subnp_state.cpp:277:27: note: Shadow local variable Rsolnp/src/subnp_state.cpp:283:27: style: Local variable 'r' shadows outer variable [shadowVariable] Rsolnp/src/subnp_state.cpp:33:15: note: Shadowed variable Rsolnp/src/subnp_state.cpp:283:27: note: Shadow local variable Rsolnp/src/subnp_state.cpp:388:22: style: Local variable 'result' shadows outer variable [shadowVariable] Rsolnp/src/subnp_state.cpp:364:18: note: Shadowed variable Rsolnp/src/subnp_state.cpp:388:22: note: Shadow local variable diff: DONE