2025-12-12 17:56 ftp://ftp.de.debian.org/debian/pool/main/g/golang-github-go-enry-go-oniguruma/golang-github-go-enry-go-oniguruma_1.2.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 -j1 platform: Linux-6.8.0-90-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.69 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04) 14.2.0 cppcheck: head 2.18.0 head-info: 575de99 (2025-12-12 13:19:50 +0100) count: 11 11 elapsed-time: 0.0 0.1 head-timing-info: old-timing-info: head results: go-oniguruma-1.2.1/chelper.c:11:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ONIG_NORMAL [valueFlowBailoutIncompleteVar] go-oniguruma-1.2.1/chelper.c:40:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ONIG_MISMATCH [valueFlowBailoutIncompleteVar] go-oniguruma-1.2.1/chelper.c:90:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ONIG_MISMATCH [valueFlowBailoutIncompleteVar] go-oniguruma-1.2.1/chelper.c:118:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ONIGERR_UNDEFINED_NAME_REFERENCE [valueFlowBailoutIncompleteVar] go-oniguruma-1.2.1/chelper.c:182:31: style:inconclusive: Function 'GetCaptureNames' argument 1 names different: declaration 'regex' definition 'reg'. [funcArgNamesDifferent] go-oniguruma-1.2.1/chelper.h:14:38: note: Function 'GetCaptureNames' argument 1 names different: declaration 'regex' definition 'reg'. go-oniguruma-1.2.1/chelper.c:182:31: note: Function 'GetCaptureNames' argument 1 names different: declaration 'regex' definition 'reg'. go-oniguruma-1.2.1/chelper.c:149:32: style: Parameter 'group_nums' can be declared as pointer to const. However it seems that 'name_callback' is a callback function, if 'group_nums' is declared with const you might also need to cast function pointer(s). [constParameterCallback] go-oniguruma-1.2.1/chelper.c:190:28: note: You might need to cast the function pointer here go-oniguruma-1.2.1/chelper.c:149:32: note: Parameter 'group_nums' can be declared as pointer to const go-oniguruma-1.2.1/chelper.c:12:23: style: Variable 'error_msg_len' is assigned a value that is never used. [unreadVariable] go-oniguruma-1.2.1/chelper.c:41:23: style: Variable 'error_msg_len' is assigned a value that is never used. [unreadVariable] go-oniguruma-1.2.1/chelper.c:91:23: style: Variable 'error_msg_len' is assigned a value that is never used. [unreadVariable] go-oniguruma-1.2.1/chelper.c:91:9: style: Variable 'error_msg_len' is assigned a value that is never used. [unreadVariable] go-oniguruma-1.2.1/chelper.c:183:9: style: Unused variable: ret [unusedVariable] diff: DONE