2025-12-23 23:39 ftp://ftp.de.debian.org/debian/pool/main/r/rglpk/rglpk_0.6-5.1.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 -j90 platform: Linux-6.8.0-90-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.69 compiler: g++ (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 cppcheck: head 2.19.0 head-info: b66f900 (2025-12-21 20:49:38 +0100) count: 26 26 elapsed-time: 0.0 0.1 head-timing-info: old-timing-info: head results: Rglpk/src/Rglpk_initialize.c:5:30: style: Parameter 'info' can be declared as pointer to const. However it seems that 'Rglpk_print' is a callback function, if 'info' is declared with const you might also need to cast function pointer(s). [constParameterCallback] Rglpk/src/Rglpk_initialize.c:13:17: note: You might need to cast the function pointer here Rglpk/src/Rglpk_initialize.c:5:30: note: Parameter 'info' can be declared as pointer to const Rglpk/src/init.c:77:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] Rglpk/src/Rglpk_solve.c:58:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GLP_ON [valueFlowBailoutIncompleteVar] Rglpk/src/Rglpk_read_file.c:52:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GLP_ON [valueFlowBailoutIncompleteVar] Rglpk/src/Rglpk_read_file.c:171:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GLP_ON [valueFlowBailoutIncompleteVar] Rglpk/src/Rglpk_solve.c:9:24: style: Parameter 'lp_direction' can be declared as pointer to const [constParameterPointer] Rglpk/src/Rglpk_solve.c:10:24: style: Parameter 'lp_direction_of_constraints' can be declared as pointer to const [constParameterPointer] Rglpk/src/Rglpk_solve.c:13:24: style: Parameter 'lp_objective_var_is_integer' can be declared as pointer to const [constParameterPointer] Rglpk/src/Rglpk_solve.c:14:24: style: Parameter 'lp_objective_var_is_binary' can be declared as pointer to const [constParameterPointer] Rglpk/src/Rglpk_solve.c:15:24: style: Parameter 'lp_is_integer' can be declared as pointer to const [constParameterPointer] Rglpk/src/Rglpk_solve.c:28:24: style: Parameter 'lp_verbosity' can be declared as pointer to const [constParameterPointer] Rglpk/src/Rglpk_solve.c:29:24: style: Parameter 'lp_presolve' can be declared as pointer to const [constParameterPointer] Rglpk/src/Rglpk_solve.c:30:24: style: Parameter 'lp_time_limit' can be declared as pointer to const [constParameterPointer] Rglpk/src/Rglpk_solve.c:34:24: style: Parameter 'write_sensitivity_report' can be declared as pointer to const [constParameterPointer] Rglpk/src/Rglpk_solve.c:97:8: style: Variable 'kl' is assigned a value that is never used. [unreadVariable] Rglpk/src/Rglpk_solve.c:97:13: style: Variable 'ku' is assigned a value that is never used. [unreadVariable] Rglpk/src/Rglpk_read_file.c:18:20: style: Local variable 'lp' shadows outer variable [shadowVariable] Rglpk/src/Rglpk_read_file.c:13:18: note: Shadowed declaration Rglpk/src/Rglpk_read_file.c:18:20: note: Shadow variable Rglpk/src/Rglpk_read_file.c:38:20: style: Local variable 'lp' shadows outer variable [shadowVariable] Rglpk/src/Rglpk_read_file.c:13:18: note: Shadowed declaration Rglpk/src/Rglpk_read_file.c:38:20: note: Shadow variable Rglpk/src/Rglpk_read_file.c:153:20: style: Local variable 'lp' shadows outer variable [shadowVariable] Rglpk/src/Rglpk_read_file.c:13:18: note: Shadowed declaration Rglpk/src/Rglpk_read_file.c:153:20: note: Shadow variable Rglpk/src/Rglpk_read_file.c:28:41: style: Parameter 'type' can be declared as pointer to const [constParameterPointer] Rglpk/src/Rglpk_read_file.c:35:14: style: Parameter 'lp_verbosity' can be declared as pointer to const [constParameterPointer] Rglpk/src/Rglpk_read_file.c:133:53: style: Parameter 'type' can be declared as pointer to const [constParameterPointer] Rglpk/src/Rglpk_read_file.c:134:12: style: Parameter 'lp_n_constraints' can be declared as pointer to const [constParameterPointer] Rglpk/src/Rglpk_read_file.c:135:12: style: Parameter 'lp_n_objective_vars' can be declared as pointer to const [constParameterPointer] Rglpk/src/Rglpk_read_file.c:148:12: style: Parameter 'lp_ignore_first_row' can be declared as pointer to const [constParameterPointer] Rglpk/src/Rglpk_read_file.c:149:12: style: Parameter 'lp_verbosity' can be declared as pointer to const [constParameterPointer] diff: DONE