2024-04-21 23:07 ftp://ftp.de.debian.org/debian/pool/main/r/ruby-github-markdown/ruby-github-markdown_0.6.9.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=ruby --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 -j1 platform: Linux-5.15.0-105-generic-x86_64-with-glibc2.35 python: 3.10.12 client-version: 1.3.56 compiler: g++ (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0 cppcheck: head 2.14.0 head-info: ea2e716 (2024-04-21 15:59:20 +0200) count: 43 43 elapsed-time: 11.2 11.0 head-timing-info: old-timing-info: head results: github-markdown-0.6.9/ext/markdown/autolink.c:173:9: style:inconclusive: Function 'sd_autolink__www' argument 4 names different: declaration 'offset' definition 'max_rewind'. [funcArgNamesDifferent] github-markdown-0.6.9/ext/markdown/autolink.h:35:24: note: Function 'sd_autolink__www' argument 4 names different: declaration 'offset' definition 'max_rewind'. github-markdown-0.6.9/ext/markdown/autolink.c:173:9: note: Function 'sd_autolink__www' argument 4 names different: declaration 'offset' definition 'max_rewind'. github-markdown-0.6.9/ext/markdown/autolink.c:209:9: style:inconclusive: Function 'sd_autolink__email' argument 4 names different: declaration 'offset' definition 'max_rewind'. [funcArgNamesDifferent] github-markdown-0.6.9/ext/markdown/autolink.h:39:24: note: Function 'sd_autolink__email' argument 4 names different: declaration 'offset' definition 'max_rewind'. github-markdown-0.6.9/ext/markdown/autolink.c:209:9: note: Function 'sd_autolink__email' argument 4 names different: declaration 'offset' definition 'max_rewind'. github-markdown-0.6.9/ext/markdown/autolink.c:268:9: style:inconclusive: Function 'sd_autolink__url' argument 4 names different: declaration 'offset' definition 'max_rewind'. [funcArgNamesDifferent] github-markdown-0.6.9/ext/markdown/autolink.h:43:24: note: Function 'sd_autolink__url' argument 4 names different: declaration 'offset' definition 'max_rewind'. github-markdown-0.6.9/ext/markdown/autolink.c:268:9: note: Function 'sd_autolink__url' argument 4 names different: declaration 'offset' definition 'max_rewind'. github-markdown-0.6.9/ext/markdown/autolink.c:98:10: style: Local variable 'i' shadows outer variable [shadowVariable] github-markdown-0.6.9/ext/markdown/autolink.c:55:9: note: Shadowed declaration github-markdown-0.6.9/ext/markdown/autolink.c:98:10: note: Shadow variable github-markdown-0.6.9/ext/markdown/autolink.c:52:25: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] github-markdown-0.6.9/ext/markdown/autolink.c:139:23: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] github-markdown-0.6.9/ext/markdown/gh-markdown.c:75:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable T_STRING [valueFlowBailoutIncompleteVar] github-markdown-0.6.9/ext/markdown/gh-markdown.c:100:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] github-markdown-0.6.9/ext/markdown/gh-markdown.c:217:69: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_cObject [valueFlowBailoutIncompleteVar] github-markdown-0.6.9/ext/markdown/houdini_html_e.c:52:25: style: Variable 'esc' is assigned a value that is never used. [unreadVariable] github-markdown-0.6.9/ext/markdown/html.c:202:6: style: Condition 'text' is always true [knownConditionTrueFalse] github-markdown-0.6.9/ext/markdown/html.c:543:76: style:inconclusive: Function 'sdhtml_toc_renderer' argument 2 names different: declaration 'options_ptr' definition 'options'. [funcArgNamesDifferent] github-markdown-0.6.9/ext/markdown/html.h:67:76: note: Function 'sdhtml_toc_renderer' argument 2 names different: declaration 'options_ptr' definition 'options'. github-markdown-0.6.9/ext/markdown/html.c:543:76: note: Function 'sdhtml_toc_renderer' argument 2 names different: declaration 'options_ptr' definition 'options'. github-markdown-0.6.9/ext/markdown/html.c:584:72: style:inconclusive: Function 'sdhtml_renderer' argument 2 names different: declaration 'options_ptr' definition 'options'. [funcArgNamesDifferent] github-markdown-0.6.9/ext/markdown/html.h:64:72: note: Function 'sdhtml_renderer' argument 2 names different: declaration 'options_ptr' definition 'options'. github-markdown-0.6.9/ext/markdown/html.c:584:72: note: Function 'sdhtml_renderer' argument 2 names different: declaration 'options_ptr' definition 'options'. github-markdown-0.6.9/ext/markdown/html.c:210:25: style: Variable 'options' can be declared as pointer to const [constVariablePointer] github-markdown-0.6.9/ext/markdown/html.c:289:25: style: Variable 'options' can be declared as pointer to const [constVariablePointer] github-markdown-0.6.9/ext/markdown/html.c:357:25: style: Variable 'options' can be declared as pointer to const [constVariablePointer] github-markdown-0.6.9/ext/markdown/html.c:365:25: style: Variable 'options' can be declared as pointer to const [constVariablePointer] github-markdown-0.6.9/ext/markdown/html.c:386:25: style: Variable 'options' can be declared as pointer to const [constVariablePointer] github-markdown-0.6.9/ext/markdown/markdown.c:2636:17: style:inconclusive: Function 'sd_version' argument 1 names different: declaration 'major' definition 'ver_major'. [funcArgNamesDifferent] github-markdown-0.6.9/ext/markdown/markdown.h:130:17: note: Function 'sd_version' argument 1 names different: declaration 'major' definition 'ver_major'. github-markdown-0.6.9/ext/markdown/markdown.c:2636:17: note: Function 'sd_version' argument 1 names different: declaration 'major' definition 'ver_major'. github-markdown-0.6.9/ext/markdown/markdown.c:2636:33: style:inconclusive: Function 'sd_version' argument 2 names different: declaration 'minor' definition 'ver_minor'. [funcArgNamesDifferent] github-markdown-0.6.9/ext/markdown/markdown.h:130:29: note: Function 'sd_version' argument 2 names different: declaration 'minor' definition 'ver_minor'. github-markdown-0.6.9/ext/markdown/markdown.c:2636:33: note: Function 'sd_version' argument 2 names different: declaration 'minor' definition 'ver_minor'. github-markdown-0.6.9/ext/markdown/markdown.c:2636:49: style:inconclusive: Function 'sd_version' argument 3 names different: declaration 'revision' definition 'ver_revision'. [funcArgNamesDifferent] github-markdown-0.6.9/ext/markdown/markdown.h:130:41: note: Function 'sd_version' argument 3 names different: declaration 'revision' definition 'ver_revision'. github-markdown-0.6.9/ext/markdown/markdown.c:2636:49: note: Function 'sd_version' argument 3 names different: declaration 'revision' definition 'ver_revision'. github-markdown-0.6.9/ext/markdown/markdown.c:151:42: style: Parameter 'src' can be declared as pointer to const [constParameterPointer] github-markdown-0.6.9/ext/markdown/markdown.c:200:54: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] github-markdown-0.6.9/ext/markdown/markdown.c:269:27: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] github-markdown-0.6.9/ext/markdown/markdown.c:401:25: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] github-markdown-0.6.9/ext/markdown/markdown.c:655:67: style: Parameter 'data' can be declared as pointer to const. However it seems that 'char_linebreak' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] github-markdown-0.6.9/ext/markdown/markdown.c:97:3: note: You might need to cast the function pointer here github-markdown-0.6.9/ext/markdown/markdown.c:655:67: note: Parameter 'data' can be declared as pointer to const github-markdown-0.6.9/ext/markdown/markdown.c:1150:19: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] github-markdown-0.6.9/ext/markdown/markdown.c:1163:19: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] github-markdown-0.6.9/ext/markdown/markdown.c:1195:27: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] github-markdown-0.6.9/ext/markdown/markdown.c:1282:34: style: Parameter 'rndr' can be declared as pointer to const [constParameterPointer] github-markdown-0.6.9/ext/markdown/markdown.c:1282:49: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] github-markdown-0.6.9/ext/markdown/markdown.c:1302:24: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] github-markdown-0.6.9/ext/markdown/markdown.c:1337:23: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] github-markdown-0.6.9/ext/markdown/markdown.c:1356:22: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] github-markdown-0.6.9/ext/markdown/markdown.c:2039:7: style: Parameter 'col_data' can be declared as pointer to const [constParameterPointer] github-markdown-0.6.9/ext/markdown/markdown.c:364:17: style: Variable 'action' is assigned a value that is never used. [unreadVariable] github-markdown-0.6.9/ext/markdown/markdown.c:2044:9: style: Variable 'nb' is assigned a value that is never used. [unreadVariable] github-markdown-0.6.9/ext/markdown/plaintext.c:113:24: style: Parameter 'ob' can be declared as pointer to const. However it seems that 'rndr_hrule' is a callback function, if 'ob' is declared with const you might also need to cast function pointer(s). [constParameterCallback] github-markdown-0.6.9/ext/markdown/plaintext.c:158:3: note: You might need to cast the function pointer here github-markdown-0.6.9/ext/markdown/plaintext.c:113:24: note: Parameter 'ob' can be declared as pointer to const github-markdown-0.6.9/ext/markdown/plaintext.c:113:34: style: Parameter 'opaque' can be declared as pointer to const. However it seems that 'rndr_hrule' is a callback function, if 'opaque' is declared with const you might also need to cast function pointer(s). [constParameterCallback] github-markdown-0.6.9/ext/markdown/plaintext.c:158:3: note: You might need to cast the function pointer here github-markdown-0.6.9/ext/markdown/plaintext.c:113:34: note: Parameter 'opaque' can be declared as pointer to const github-markdown-0.6.9/ext/markdown/plaintext.c:119:24: style: Parameter 'ob' can be declared as pointer to const. However it seems that 'rndr_image' is a callback function, if 'ob' is declared with const you might also need to cast function pointer(s). [constParameterCallback] github-markdown-0.6.9/ext/markdown/plaintext.c:170:3: note: You might need to cast the function pointer here github-markdown-0.6.9/ext/markdown/plaintext.c:119:24: note: Parameter 'ob' can be declared as pointer to const github-markdown-0.6.9/ext/markdown/plaintext.c:119:106: style: Parameter 'opaque' can be declared as pointer to const. However it seems that 'rndr_image' is a callback function, if 'opaque' is declared with const you might also need to cast function pointer(s). [constParameterCallback] github-markdown-0.6.9/ext/markdown/plaintext.c:170:3: note: You might need to cast the function pointer here github-markdown-0.6.9/ext/markdown/plaintext.c:119:106: note: Parameter 'opaque' can be declared as pointer to const github-markdown-0.6.9/ext/markdown/plaintext.c:126:27: style: Parameter 'ob' can be declared as pointer to const. However it seems that 'rndr_raw_html' is a callback function, if 'ob' is declared with const you might also need to cast function pointer(s). [constParameterCallback] github-markdown-0.6.9/ext/markdown/plaintext.c:173:3: note: You might need to cast the function pointer here github-markdown-0.6.9/ext/markdown/plaintext.c:126:27: note: Parameter 'ob' can be declared as pointer to const github-markdown-0.6.9/ext/markdown/plaintext.c:126:61: style: Parameter 'opaque' can be declared as pointer to const. However it seems that 'rndr_raw_html' is a callback function, if 'opaque' is declared with const you might also need to cast function pointer(s). [constParameterCallback] github-markdown-0.6.9/ext/markdown/plaintext.c:173:3: note: You might need to cast the function pointer here github-markdown-0.6.9/ext/markdown/plaintext.c:126:61: note: Parameter 'opaque' can be declared as pointer to const diff: DONE