2026-05-01 15:15 ftp://ftp.de.debian.org/debian/pool/main/d/discount/discount_2.2.7.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 -j6 platform: Linux-7.0.3+deb14-amd64-x86_64-with-glibc2.42 python: 3.13.12 client-version: 1.4.0 compiler: g++ (Debian 15.2.0-17) 15.2.0 cppcheck: head 2.20.0 head-info: e5c4a734 (2026-05-01 11:10:43 +0200) count: 326 217 elapsed-time: 0.5 0.4 head-timing-info: old-timing-info: head results: discount-2.2.7/basename.c:21:11: style: Variable 'base' can be declared as pointer to const [constVariablePointer] discount-2.2.7/amalloc.c:25:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] discount-2.2.7/amalloc.c:127:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] discount-2.2.7/css.c:30:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STYLE [valueFlowBailoutIncompleteVar] discount-2.2.7/css.c:66:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] discount-2.2.7/css.c:84:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] discount-2.2.7/Csio.c:14:5: error: Expression '((*iot).size++)[((*iot).size<(*iot).alloc)?((*iot).text):((*iot).text=(*iot).text?realloc((*iot).text,sizeof(*iot).text[0]*((*iot).alloc+=100)):malloc(sizeof(*iot).text[0]*((*iot).alloc+=100)))]' depends on order of evaluation of side effects [unknownEvaluationOrder] discount-2.2.7/Csio.c:12:12: style:inconclusive: Function 'Csputc' argument 1 names different: declaration '' definition 'c'. [funcArgNamesDifferentUnnamed] discount-2.2.7/Csio.c:12:24: style:inconclusive: Function 'Csputc' argument 2 names different: declaration '' definition 'iot'. [funcArgNamesDifferentUnnamed] discount-2.2.7/Csio.c:21:19: style:inconclusive: Function 'Csprintf' argument 1 names different: declaration '' definition 'iot'. [funcArgNamesDifferentUnnamed] discount-2.2.7/Csio.c:21:30: style:inconclusive: Function 'Csprintf' argument 2 names different: declaration '' definition 'fmt'. [funcArgNamesDifferentUnnamed] discount-2.2.7/Csio.c:41:18: style:inconclusive: Function 'Cswrite' argument 1 names different: declaration '' definition 'iot'. [funcArgNamesDifferentUnnamed] discount-2.2.7/Csio.c:41:29: style:inconclusive: Function 'Cswrite' argument 2 names different: declaration '' definition 'bfr'. [funcArgNamesDifferentUnnamed] discount-2.2.7/Csio.c:41:38: style:inconclusive: Function 'Cswrite' argument 3 names different: declaration '' definition 'size'. [funcArgNamesDifferentUnnamed] discount-2.2.7/Csio.c:41:29: style: Parameter 'bfr' can be declared as pointer to const [constParameterPointer] discount-2.2.7/dumptree.c:111:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HDR [valueFlowBailoutIncompleteVar] discount-2.2.7/amalloc.c:99:2: error: Common realloc mistake: 'p2' nulled but not freed upon failure [memleakOnRealloc] discount-2.2.7/amalloc.c:23:11: style: Parameter 'msg' can be declared as pointer to const [constParameterPointer] discount-2.2.7/amalloc.c:123:19: style: Variable 'p' can be declared as pointer to const [constVariablePointer] discount-2.2.7/css.c:79:35: warning: Either the condition 'res' is redundant or there is possible null pointer dereference: res. [nullPointerRedundantCheck] discount-2.2.7/css.c:81:10: note: Assuming that condition 'res' is not redundant discount-2.2.7/css.c:79:35: note: Null pointer dereference discount-2.2.7/css.c:60:6: error: Expression '(f.size++)[(f.size<(f).alloc)?(f.text):(f.text=(f).text?realloc(f.text,sizeof(f).text[0]*(f.alloc+=100)):malloc(sizeof(f).text[0]*(f.alloc+=100)))]' depends on order of evaluation of side effects [unknownEvaluationOrder] discount-2.2.7/css.c:45:19: style:inconclusive: Function 'mkd_css' argument 1 names different: declaration '' definition 'd'. [funcArgNamesDifferentUnnamed] discount-2.2.7/css.c:45:29: style:inconclusive: Function 'mkd_css' argument 2 names different: declaration '' definition 'res'. [funcArgNamesDifferentUnnamed] discount-2.2.7/css.c:73:27: style:inconclusive: Function 'mkd_generatecss' argument 1 names different: declaration '' definition 'd'. [funcArgNamesDifferentUnnamed] discount-2.2.7/css.c:73:36: style:inconclusive: Function 'mkd_generatecss' argument 2 names different: declaration '' definition 'f'. [funcArgNamesDifferentUnnamed] discount-2.2.7/emmatch.c:52:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable bTEXT [valueFlowBailoutIncompleteVar] discount-2.2.7/emmatch.c:75:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable bTEXT [valueFlowBailoutIncompleteVar] discount-2.2.7/emmatch.c:160:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable bTEXT [valueFlowBailoutIncompleteVar] discount-2.2.7/dumptree.c:44:24: error: Expression '((*sp).size++)[((*sp).size<(*sp).alloc)?((*sp).text):((*sp).text=(*sp).text?realloc((*sp).text,sizeof(*sp).text[0]*((*sp).alloc+=100)):malloc(sizeof(*sp).text[0]*((*sp).alloc+=100)))]' depends on order of evaluation of side effects [unknownEvaluationOrder] discount-2.2.7/dumptree.c:102:11: style: Variable 'p' can be declared as pointer to const [constVariablePointer] discount-2.2.7/dumptree.c:104:18: style: Variable 'Begin' can be declared as const array [constVariable] discount-2.2.7/dumptree.c:146:60: style: Parameter 'title' can be declared as pointer to const [constParameterPointer] discount-2.2.7/flags.c:50:11: style: Variable 'name' can be declared as pointer to const [constVariablePointer] discount-2.2.7/flags.c:57:11: style: Variable 'not' is assigned a value that is never used. [unreadVariable] discount-2.2.7/gethopt.c:118:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] discount-2.2.7/gethopt.c:197:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] discount-2.2.7/github_flavoured.c:33:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TABSTOP [valueFlowBailoutIncompleteVar] discount-2.2.7/emmatch.c:79:4: error: Expression '(p->b_text.size++)[(p->b_text.size<(p->b_text).alloc)?(p->b_text.text):(p->b_text.text=(p->b_text).text?realloc(p->b_text.text,sizeof(p->b_text).text[0]*(p->b_text.alloc+=100)):malloc(sizeof(p->b_text).text[0]*(p->b_text.alloc+=100)))]' depends on order of evaluation of side effects [unknownEvaluationOrder] discount-2.2.7/emmatch.c:155:16: style:inconclusive: Function 'emblock' argument 1 names different: declaration '' definition 'f'. [funcArgNamesDifferentUnnamed] discount-2.2.7/emmatch.c:155:23: style:inconclusive: Function 'emblock' argument 2 names different: declaration '' definition 'first'. [funcArgNamesDifferentUnnamed] discount-2.2.7/emmatch.c:155:34: style:inconclusive: Function 'emblock' argument 3 names different: declaration '' definition 'last'. [funcArgNamesDifferentUnnamed] discount-2.2.7/emmatch.c:170:23: style:inconclusive: Function '___mkd_emblock' argument 1 names different: declaration '' definition 'f'. [funcArgNamesDifferentUnnamed] discount-2.2.7/emmatch.c:45:12: style: Variable 'begin' can be declared as pointer to const [constVariablePointer] discount-2.2.7/emmatch.c:45:20: style: Variable 'p' can be declared as pointer to const [constVariablePointer] discount-2.2.7/makepage.c:71:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] discount-2.2.7/github_flavoured.c:47:3: error: Expression '(line.size++)[(line.size<(line).alloc)?(line.text):(line.text=(line).text?realloc(line.text,sizeof(line).text[0]*(line.alloc+=100)):malloc(sizeof(line).text[0]*(line.alloc+=100)))]' depends on order of evaluation of side effects [unknownEvaluationOrder] discount-2.2.7/github_flavoured.c:48:3: error: Expression '(line.size++)[(line.size<(line).alloc)?(line.text):(line.text=(line).text?realloc(line.text,sizeof(line).text[0]*(line.alloc+=100)):malloc(sizeof(line).text[0]*(line.alloc+=100)))]' depends on order of evaluation of side effects [unknownEvaluationOrder] discount-2.2.7/main.c:55:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] discount-2.2.7/github_flavoured.c:54:6: error: Expression '(line.size++)[(line.size<(line).alloc)?(line.text):(line.text=(line).text?realloc(line.text,sizeof(line).text[0]*(line.alloc+=100)):malloc(sizeof(line).text[0]*(line.alloc+=100)))]' depends on order of evaluation of side effects [unknownEvaluationOrder] discount-2.2.7/main.c:241:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MKD_TOC [valueFlowBailoutIncompleteVar] discount-2.2.7/github_flavoured.c:84:24: style:inconclusive: Function 'gfm_string' argument 1 names different: declaration '' definition 'buf'. [funcArgNamesDifferentUnnamed] discount-2.2.7/github_flavoured.c:84:33: style:inconclusive: Function 'gfm_string' argument 2 names different: declaration '' definition 'len'. [funcArgNamesDifferentUnnamed] discount-2.2.7/github_flavoured.c:84:49: style:inconclusive: Function 'gfm_string' argument 3 names different: declaration '' definition 'flags'. [funcArgNamesDifferentUnnamed] discount-2.2.7/github_flavoured.c:98:14: style:inconclusive: Function 'gfm_in' argument 1 names different: declaration '' definition 'f'. [funcArgNamesDifferentUnnamed] discount-2.2.7/github_flavoured.c:98:28: style:inconclusive: Function 'gfm_in' argument 2 names different: declaration '' definition 'flags'. [funcArgNamesDifferentUnnamed] discount-2.2.7/makepage.c:38:11: style: Variable 'q' can be declared as pointer to const [constVariablePointer] discount-2.2.7/makepage.c:42:19: style: Variable 'opt' can be declared as pointer to const [constVariablePointer] discount-2.2.7/gethopt.c:14:19: style:inconclusive: Function 'hoptset' argument 1 names different: declaration '' definition 'ctx'. [funcArgNamesDifferentUnnamed] discount-2.2.7/gethopt.c:15:5: style:inconclusive: Function 'hoptset' argument 2 names different: declaration '' definition 'argc'. [funcArgNamesDifferentUnnamed] discount-2.2.7/gethopt.c:16:8: style:inconclusive: Function 'hoptset' argument 3 names different: declaration '' definition 'argv'. [funcArgNamesDifferentUnnamed] discount-2.2.7/gethopt.c:27:19: style:inconclusive: Function 'hoptarg' argument 1 names different: declaration '' definition 'ctx'. [funcArgNamesDifferentUnnamed] discount-2.2.7/gethopt.c:34:19: style:inconclusive: Function 'hoptind' argument 1 names different: declaration '' definition 'ctx'. [funcArgNamesDifferentUnnamed] discount-2.2.7/gethopt.c:41:19: style:inconclusive: Function 'hoptopt' argument 1 names different: declaration '' definition 'ctx'. [funcArgNamesDifferentUnnamed] discount-2.2.7/gethopt.c:49:19: style:inconclusive: Function 'hopterr' argument 1 names different: declaration '' definition 'ctx'. [funcArgNamesDifferentUnnamed] discount-2.2.7/gethopt.c:49:0: style:inconclusive: Function 'hopterr' argument 2 names different: declaration '' definition 'val'. [funcArgNamesDifferentUnnamed] discount-2.2.7/gethopt.c:60:19: style:inconclusive: Function 'gethopt' argument 1 names different: declaration '' definition 'ctx'. [funcArgNamesDifferentUnnamed] discount-2.2.7/gethopt.c:61:15: style:inconclusive: Function 'gethopt' argument 2 names different: declaration '' definition 'opts'. [funcArgNamesDifferentUnnamed] discount-2.2.7/gethopt.c:62:5: style:inconclusive: Function 'gethopt' argument 3 names different: declaration '' definition 'nropts'. [funcArgNamesDifferentUnnamed] discount-2.2.7/gethopt.c:192:17: style:inconclusive: Function 'hoptusage' argument 1 names different: declaration '' definition 'pgm'. [funcArgNamesDifferentUnnamed] discount-2.2.7/gethopt.c:192:35: style:inconclusive: Function 'hoptusage' argument 2 names different: declaration '' definition 'opts'. [funcArgNamesDifferentUnnamed] discount-2.2.7/gethopt.c:192:47: style:inconclusive: Function 'hoptusage' argument 3 names different: declaration '' definition 'nropts'. [funcArgNamesDifferentUnnamed] discount-2.2.7/gethopt.c:192:61: style:inconclusive: Function 'hoptusage' argument 4 names different: declaration '' definition 'arguments'. [funcArgNamesDifferentUnnamed] discount-2.2.7/gethopt.c:27:19: style: Parameter 'ctx' can be declared as pointer to const [constParameterPointer] discount-2.2.7/gethopt.c:34:19: style: Parameter 'ctx' can be declared as pointer to const [constParameterPointer] discount-2.2.7/gethopt.c:41:19: style: Parameter 'ctx' can be declared as pointer to const [constParameterPointer] discount-2.2.7/gethopt.c:192:17: style: Parameter 'pgm' can be declared as pointer to const [constParameterPointer] discount-2.2.7/gethopt.c:192:35: style: Parameter 'opts' can be declared as const array [constParameter] discount-2.2.7/gethopt.c:192:61: style: Parameter 'arguments' can be declared as pointer to const [constParameterPointer] discount-2.2.7/mkd2html.c:64:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] discount-2.2.7/mkd2html.c:129:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] discount-2.2.7/mktags.c:18:21: error: Expression '(blocktags.size++)[(blocktags.size<(blocktags).alloc)?(blocktags.text):(blocktags.text=(blocktags).text?realloc(blocktags.text,sizeof(blocktags).text[0]*(blocktags.alloc+=100)):malloc(sizeof(blocktags).text[0]*(blocktags.alloc+=100)))]' depends on order of evaluation of side effects [unknownEvaluationOrder] discount-2.2.7/mktags.c:29:19: style: Parameter 'a' can be declared as pointer to const. However it seems that 'casort' is a callback function, if 'a' is declared with const you might also need to cast function pointer(s). [constParameterCallback] discount-2.2.7/mktags.c:84:64: note: You might need to cast the function pointer here discount-2.2.7/mktags.c:29:19: note: Parameter 'a' can be declared as pointer to const discount-2.2.7/mktags.c:29:33: style: Parameter 'b' can be declared as pointer to const. However it seems that 'casort' is a callback function, if 'b' is declared with const you might also need to cast function pointer(s). [constParameterCallback] discount-2.2.7/mktags.c:84:64: note: You might need to cast the function pointer here discount-2.2.7/mktags.c:29:33: note: Parameter 'b' can be declared as pointer to const discount-2.2.7/mkd2html.c:157:6: warning: Either the condition 'p=strrchr(source,'/')' is redundant or there is pointer arithmetic with NULL pointer. [nullPointerArithmeticRedundantCheck] discount-2.2.7/mkd2html.c:154:10: note: Assuming that condition 'p=strrchr(source,'/')' is not redundant discount-2.2.7/mkd2html.c:157:6: note: Null pointer addition discount-2.2.7/mkd2html.c:117:6: error: Expression '(css.size++)[(css.size<(css).alloc)?(css.text):(css.text=(css).text?realloc(css.text,sizeof(css).text[0]*(css.alloc+=100)):malloc(sizeof(css).text[0]*(css.alloc+=100)))]' depends on order of evaluation of side effects [unknownEvaluationOrder] discount-2.2.7/mkd2html.c:120:6: error: Expression '(headers.size++)[(headers.size<(headers).alloc)?(headers.text):(headers.text=(headers).text?realloc(headers.text,sizeof(headers).text[0]*(headers.alloc+=100)):malloc(sizeof(headers).text[0]*(headers.alloc+=100)))]' depends on order of evaluation of side effects [unknownEvaluationOrder] discount-2.2.7/mkd2html.c:123:6: error: Expression '(footers.size++)[(footers.size<(footers).alloc)?(footers.text):(footers.text=(footers).text?realloc(footers.text,sizeof(footers).text[0]*(footers.alloc+=100)):malloc(sizeof(footers).text[0]*(footers.alloc+=100)))]' depends on order of evaluation of side effects [unknownEvaluationOrder] discount-2.2.7/mkd2html.c:98:19: style: Variable 'res' can be declared as pointer to const [constVariablePointer] discount-2.2.7/mkd2html.c:138:8: style: Variable 'p' can be declared as pointer to const [constVariablePointer] discount-2.2.7/mkd2html.c:155:8: style: Variable 'p' is assigned a value that is never used. [unreadVariable] discount-2.2.7/mkd2html.c:157:6: style: Variable 'p' is assigned a value that is never used. [unreadVariable] discount-2.2.7/mkdio.c:107:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TABSTOP [valueFlowBailoutIncompleteVar] discount-2.2.7/mkdio.c:163:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] discount-2.2.7/mkdio.c:193:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] discount-2.2.7/mkdio.c:344:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] discount-2.2.7/mkdio.c:361:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] discount-2.2.7/notspecial.c:24:18: style: Parameter 'file' can be declared as pointer to const [constParameterPointer] discount-2.2.7/main.c:65:21: style: Parameter 'input' can be declared as pointer to const. However it seems that 'anchor_format' is a callback function, if 'input' is declared with const you might also need to cast function pointer(s). [constParameterCallback] discount-2.2.7/main.c:309:41: note: You might need to cast the function pointer here discount-2.2.7/main.c:65:21: note: Parameter 'input' can be declared as pointer to const discount-2.2.7/main.c:103:44: style: Parameter 'lang' can be declared as pointer to const. However it seems that 'external_codefmt' is a callback function, if 'lang' is declared with const you might also need to cast function pointer(s). [constParameterCallback] discount-2.2.7/main.c:311:29: note: You might need to cast the function pointer here discount-2.2.7/main.c:103:44: note: Parameter 'lang' can be declared as pointer to const discount-2.2.7/main.c:185:11: style: Variable 'ofile' can be declared as pointer to const [constVariablePointer] discount-2.2.7/main.c:190:19: style: Variable 'opt' can be declared as pointer to const [constVariablePointer] discount-2.2.7/pgm_options.c:96:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] discount-2.2.7/pgm_options.c:119:17: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] discount-2.2.7/pgm_options.c:119:55: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] discount-2.2.7/pgm_options.c:74:27: style: Parameter 'a' can be declared as pointer to const. However it seems that 'sort_by_name' is a callback function, if 'a' is declared with const you might also need to cast function pointer(s). [constParameterCallback] discount-2.2.7/pgm_options.c:92:47: note: You might need to cast the function pointer here discount-2.2.7/pgm_options.c:74:27: note: Parameter 'a' can be declared as pointer to const discount-2.2.7/pgm_options.c:74:43: style: Parameter 'b' can be declared as pointer to const. However it seems that 'sort_by_name' is a callback function, if 'b' is declared with const you might also need to cast function pointer(s). [constParameterCallback] discount-2.2.7/pgm_options.c:92:47: note: You might need to cast the function pointer here discount-2.2.7/pgm_options.c:74:43: note: Parameter 'b' can be declared as pointer to const discount-2.2.7/pgm_options.c:80:27: style: Parameter 'a' can be declared as pointer to const. However it seems that 'sort_by_flag' is a callback function, if 'a' is declared with const you might also need to cast function pointer(s). [constParameterCallback] discount-2.2.7/pgm_options.c:99:47: note: You might need to cast the function pointer here discount-2.2.7/pgm_options.c:80:27: note: Parameter 'a' can be declared as pointer to const discount-2.2.7/pgm_options.c:80:43: style: Parameter 'b' can be declared as pointer to const. However it seems that 'sort_by_flag' is a callback function, if 'b' is declared with const you might also need to cast function pointer(s). [constParameterCallback] discount-2.2.7/pgm_options.c:99:47: note: You might need to cast the function pointer here discount-2.2.7/pgm_options.c:80:43: note: Parameter 'b' can be declared as pointer to const discount-2.2.7/resource.c:102:6: warning: If memory allocation fails, then there is a possible null pointer dereference: f->footnotes [nullPointerOutOfMemory] discount-2.2.7/resource.c:101:27: note: Assuming allocation function fails discount-2.2.7/resource.c:101:27: note: Assignment 'f->footnotes=malloc(sizeof(f->footnotes[0]))', assigned value is 0 discount-2.2.7/resource.c:102:6: note: Null pointer dereference discount-2.2.7/resource.c:23:23: style:inconclusive: Function '___mkd_freeLine' argument 1 names different: declaration '' definition 'ptr'. [funcArgNamesDifferentUnnamed] discount-2.2.7/resource.c:33:24: style:inconclusive: Function '___mkd_freeLines' argument 1 names different: declaration '' definition 'p'. [funcArgNamesDifferentUnnamed] discount-2.2.7/resource.c:44:33: style:inconclusive: Function '___mkd_freeParagraph' argument 1 names different: declaration '' definition 'p'. [funcArgNamesDifferentUnnamed] discount-2.2.7/resource.c:63:31: style:inconclusive: Function '___mkd_freefootnote' argument 1 names different: declaration '' definition 'f'. [funcArgNamesDifferentUnnamed] discount-2.2.7/resource.c:75:29: style:inconclusive: Function '___mkd_freefootnotes' argument 1 names different: declaration '' definition 'f'. [funcArgNamesDifferentUnnamed] discount-2.2.7/resource.c:91:25: style:inconclusive: Function '___mkd_initmmiot' argument 1 names different: declaration '' definition 'f'. [funcArgNamesDifferentUnnamed] discount-2.2.7/resource.c:91:34: style:inconclusive: Function '___mkd_initmmiot' argument 2 names different: declaration '' definition 'footnotes'. [funcArgNamesDifferentUnnamed] discount-2.2.7/resource.c:111:25: style:inconclusive: Function '___mkd_freemmiot' argument 1 names different: declaration '' definition 'f'. [funcArgNamesDifferentUnnamed] discount-2.2.7/resource.c:111:34: style:inconclusive: Function '___mkd_freemmiot' argument 2 names different: declaration '' definition 'footnotes'. [funcArgNamesDifferentUnnamed] discount-2.2.7/resource.c:127:28: style:inconclusive: Function '___mkd_freeLineRange' argument 1 names different: declaration '' definition 'anchor'. [funcArgNamesDifferentUnnamed] discount-2.2.7/resource.c:127:42: style:inconclusive: Function '___mkd_freeLineRange' argument 2 names different: declaration '' definition 'stop'. [funcArgNamesDifferentUnnamed] discount-2.2.7/resource.c:144:23: style:inconclusive: Function 'mkd_cleanup' argument 1 names different: declaration '' definition 'doc'. [funcArgNamesDifferentUnnamed] discount-2.2.7/resource.c:111:34: style: Parameter 'footnotes' can be declared as pointer to const [constParameterPointer] discount-2.2.7/resource.c:127:42: style: Parameter 'stop' can be declared as pointer to const [constParameterPointer] discount-2.2.7/tags.c:34:7: error: Expression '(extratags.size++)[(extratags.size<(extratags).alloc)?(extratags.text):(extratags.text=(extratags).text?realloc(extratags.text,sizeof(extratags).text[0]*(extratags.alloc+=100)):malloc(sizeof(extratags).text[0]*(extratags.alloc+=100)))]' depends on order of evaluation of side effects [unknownEvaluationOrder] discount-2.2.7/tags.c:23:22: style:inconclusive: Function 'mkd_define_tag' argument 1 names different: declaration '' definition 'id'. [funcArgNamesDifferentUnnamed] discount-2.2.7/tags.c:23:30: style:inconclusive: Function 'mkd_define_tag' argument 2 names different: declaration '' definition 'selfclose'. [funcArgNamesDifferentUnnamed] discount-2.2.7/tags.c:71:23: style:inconclusive: Function 'mkd_search_tags' argument 1 names different: declaration '' definition 'pat'. [funcArgNamesDifferentUnnamed] discount-2.2.7/tags.c:71:32: style:inconclusive: Function 'mkd_search_tags' argument 2 names different: declaration '' definition 'len'. [funcArgNamesDifferentUnnamed] discount-2.2.7/tags.c:45:19: style: Parameter 'a' can be declared as pointer to const. However it seems that 'casort' is a callback function, if 'a' is declared with const you might also need to cast function pointer(s). [constParameterCallback] discount-2.2.7/tags.c:83:65: note: You might need to cast the function pointer here discount-2.2.7/tags.c:45:19: note: Parameter 'a' can be declared as pointer to const discount-2.2.7/tags.c:45:33: style: Parameter 'b' can be declared as pointer to const. However it seems that 'casort' is a callback function, if 'b' is declared with const you might also need to cast function pointer(s). [constParameterCallback] discount-2.2.7/tags.c:83:65: note: You might need to cast the function pointer here discount-2.2.7/tags.c:45:33: note: Parameter 'b' can be declared as pointer to const discount-2.2.7/tags.c:79:23: error: Uninitialized variable: &key.selfclose [uninitvar] discount-2.2.7/tags.c:30:14: style: Variable 'p' is assigned a value that is never used. [unreadVariable] discount-2.2.7/toc.c:41:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SOURCE [valueFlowBailoutIncompleteVar] discount-2.2.7/toc.c:104:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] discount-2.2.7/theme.c:128:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] discount-2.2.7/theme.c:158:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] discount-2.2.7/theme.c:187:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] discount-2.2.7/theme.c:196:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] discount-2.2.7/theme.c:207:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] discount-2.2.7/theme.c:270:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] discount-2.2.7/theme.c:347:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MKD_TAGTEXT [valueFlowBailoutIncompleteVar] discount-2.2.7/theme.c:383:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable markdown_version [valueFlowBailoutIncompleteVar] discount-2.2.7/theme.c:458:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] discount-2.2.7/theme.c:536:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable THEME_CF [valueFlowBailoutIncompleteVar] discount-2.2.7/generate.c:59:70: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] discount-2.2.7/generate.c:68:72: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] discount-2.2.7/generate.c:86:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] discount-2.2.7/generate.c:99:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] discount-2.2.7/generate.c:138:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable bTEXT [valueFlowBailoutIncompleteVar] discount-2.2.7/generate.c:201:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable bUNDER [valueFlowBailoutIncompleteVar] discount-2.2.7/generate.c:307:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] discount-2.2.7/generate.c:321:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] discount-2.2.7/generate.c:344:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] discount-2.2.7/generate.c:363:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] discount-2.2.7/generate.c:429:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] discount-2.2.7/generate.c:471:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] discount-2.2.7/generate.c:865:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] discount-2.2.7/generate.c:1043:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] discount-2.2.7/generate.c:1100:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] discount-2.2.7/generate.c:1133:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] discount-2.2.7/generate.c:1231:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] discount-2.2.7/generate.c:1261:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] discount-2.2.7/generate.c:1317:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] discount-2.2.7/generate.c:1857:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UL [valueFlowBailoutIncompleteVar] discount-2.2.7/generate.c:1992:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] discount-2.2.7/tools/cols.c:13:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] discount-2.2.7/tools/echo.c:21:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] discount-2.2.7/tools/pandoc_headers.c:37:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] discount-2.2.7/tools/pandoc_headers.c:65:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HOPTERR [valueFlowBailoutIncompleteVar] discount-2.2.7/toc.c:55:32: style: Condition 'srcp->hnumber>last_hnumber' is always true [knownConditionTrueFalse] discount-2.2.7/toc.c:53:25: note: Assuming that condition 'last_hnumber==srcp->hnumber' is not redundant discount-2.2.7/toc.c:55:32: note: Condition 'srcp->hnumber>last_hnumber' is always true discount-2.2.7/toc.c:89:2: error: Expression '(res.size++)[(res.size<(res).alloc)?(res.text):(res.text=(res).text?realloc(res.text,sizeof(res).text[0]*(res.alloc+=100)):malloc(sizeof(res).text[0]*(res.alloc+=100)))]' depends on order of evaluation of side effects [unknownEvaluationOrder] discount-2.2.7/tools/pandoc_headers.c:65:7: style: Condition 'opt' is always true [knownConditionTrueFalse] discount-2.2.7/tools/pandoc_headers.c:58:11: style: Variable 'res' can be declared as pointer to const [constVariablePointer] discount-2.2.7/tools/pandoc_headers.c:59:19: style: Variable 'opt' can be declared as pointer to const [constVariablePointer] discount-2.2.7/xmlpage.c:42:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] discount-2.2.7/xmlpage.c:16:11: style: Variable 'title' can be declared as pointer to const [constVariablePointer] discount-2.2.7/xml.c:50:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] discount-2.2.7/xml.c:80:5: error: Expression '(f.size++)[(f.size<(f).alloc)?(f.text):(f.text=(f).text?realloc(f.text,sizeof(f).text[0]*(f.alloc+=100)):malloc(sizeof(f).text[0]*(f.alloc+=100)))]' depends on order of evaluation of side effects [unknownEvaluationOrder] discount-2.2.7/xml.c:41:23: style:inconclusive: Function 'mkd_generatexml' argument 1 names different: declaration '' definition 'p'. [funcArgNamesDifferentUnnamed] discount-2.2.7/xml.c:41:30: style:inconclusive: Function 'mkd_generatexml' argument 2 names different: declaration '' definition 'size'. [funcArgNamesDifferentUnnamed] discount-2.2.7/xml.c:41:42: style:inconclusive: Function 'mkd_generatexml' argument 3 names different: declaration '' definition 'out'. [funcArgNamesDifferentUnnamed] discount-2.2.7/xml.c:61:15: style:inconclusive: Function 'mkd_xml' argument 1 names different: declaration '' definition 'p'. [funcArgNamesDifferentUnnamed] discount-2.2.7/xml.c:61:22: style:inconclusive: Function 'mkd_xml' argument 2 names different: declaration '' definition 'size'. [funcArgNamesDifferentUnnamed] discount-2.2.7/xml.c:61:35: style:inconclusive: Function 'mkd_xml' argument 3 names different: declaration '' definition 'res'. [funcArgNamesDifferentUnnamed] discount-2.2.7/xml.c:41:23: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] discount-2.2.7/xml.c:44:11: style: Variable 'entity' can be declared as pointer to const [constVariablePointer] discount-2.2.7/xml.c:61:15: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] discount-2.2.7/markdown.c:160:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] discount-2.2.7/markdown.c:301:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] discount-2.2.7/markdown.c:523:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DL [valueFlowBailoutIncompleteVar] discount-2.2.7/markdown.c:661:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE [valueFlowBailoutIncompleteVar] discount-2.2.7/markdown.c:690:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CENTER [valueFlowBailoutIncompleteVar] discount-2.2.7/markdown.c:956:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LISTITEM [valueFlowBailoutIncompleteVar] discount-2.2.7/markdown.c:995:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LISTITEM [valueFlowBailoutIncompleteVar] discount-2.2.7/markdown.c:1182:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SOURCE [valueFlowBailoutIncompleteVar] discount-2.2.7/markdown.c:1213:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HTML [valueFlowBailoutIncompleteVar] discount-2.2.7/markdown.c:1328:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE [valueFlowBailoutIncompleteVar] discount-2.2.7/mkdio.c:50:5: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] discount-2.2.7/mkdio.c:44:21: note: Assuming allocation function fails discount-2.2.7/mkdio.c:44:21: note: Assignment 'p=calloc(sizeof(*p),1)', assigned value is 0 discount-2.2.7/mkdio.c:50:5: note: Null pointer dereference discount-2.2.7/mkdio.c:71:5: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] discount-2.2.7/mkdio.c:44:21: note: Assuming allocation function fails discount-2.2.7/mkdio.c:44:21: note: Assignment 'p=calloc(sizeof(*p),1)', assigned value is 0 discount-2.2.7/mkdio.c:71:5: note: Null pointer dereference discount-2.2.7/mkdio.c:72:5: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] discount-2.2.7/mkdio.c:44:21: note: Assuming allocation function fails discount-2.2.7/mkdio.c:44:21: note: Assignment 'p=calloc(sizeof(*p),1)', assigned value is 0 discount-2.2.7/mkdio.c:72:5: note: Null pointer dereference discount-2.2.7/mkdio.c:73:5: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] discount-2.2.7/mkdio.c:44:21: note: Assuming allocation function fails discount-2.2.7/mkdio.c:44:21: note: Assignment 'p=calloc(sizeof(*p),1)', assigned value is 0 discount-2.2.7/mkdio.c:73:5: note: Null pointer dereference discount-2.2.7/theme.c:100:38: error: Common realloc mistake: 'cwd' nulled but not freed upon failure [memleakOnRealloc] discount-2.2.7/mkdio.c:61:3: error: Expression '(p->text.size++)[(p->text.size<(p->text).alloc)?(p->text.text):(p->text.text=(p->text).text?realloc(p->text.text,sizeof(p->text).text[0]*(p->text.alloc+=100)):malloc(sizeof(p->text).text[0]*(p->text.alloc+=100)))]' depends on order of evaluation of side effects [unknownEvaluationOrder] discount-2.2.7/mkdio.c:67:6: error: Expression '(p->text.size++)[(p->text.size<(p->text).alloc)?(p->text.text):(p->text.text=(p->text).text?realloc(p->text.text,sizeof(p->text).text[0]*(p->text.alloc+=100)):malloc(sizeof(p->text).text[0]*(p->text.alloc+=100)))]' depends on order of evaluation of side effects [unknownEvaluationOrder] discount-2.2.7/mkdio.c:71:5: error: Expression '(p->text.size++)[(p->text.size<(p->text).alloc)?(p->text.text):(p->text.text=(p->text).text?realloc(p->text.text,sizeof(p->text).text[0]*(p->text.alloc+=100)):malloc(sizeof(p->text).text[0]*(p->text.alloc+=100)))]' depends on order of evaluation of side effects [unknownEvaluationOrder] discount-2.2.7/theme.c:283:5: style: Variable 'include.size' is reassigned a value before the old one has been used. [redundantAssignment] discount-2.2.7/theme.c:275:12: note: include.size is assigned discount-2.2.7/theme.c:283:5: note: include.size is overwritten discount-2.2.7/mkdio.c:123:6: error: Expression '(line.size++)[(line.size<(line).alloc)?(line.text):(line.text=(line).text?realloc(line.text,sizeof(line).text[0]*(line.alloc+=100)):malloc(sizeof(line).text[0]*(line.alloc+=100)))]' depends on order of evaluation of side effects [unknownEvaluationOrder] discount-2.2.7/mkdio.c:333:2: error: Expression '(f.out.size++)[(f.out.size<(f.out).alloc)?(f.out.text):(f.out.text=(f.out).text?realloc(f.out.text,sizeof(f.out).text[0]*(f.out.alloc+=100)):malloc(sizeof(f.out).text[0]*(f.out.alloc+=100)))]' depends on order of evaluation of side effects [unknownEvaluationOrder] discount-2.2.7/mkdio.c:42:25: style:inconclusive: Function '__mkd_enqueue' argument 1 names different: declaration '' definition 'a'. [funcArgNamesDifferentUnnamed] discount-2.2.7/mkdio.c:42:37: style:inconclusive: Function '__mkd_enqueue' argument 2 names different: declaration '' definition 'line'. [funcArgNamesDifferentUnnamed] discount-2.2.7/mkdio.c:80:23: style:inconclusive: Function '__mkd_trim_line' argument 1 names different: declaration '' definition 'p'. [funcArgNamesDifferentUnnamed] discount-2.2.7/mkdio.c:80:30: style:inconclusive: Function '__mkd_trim_line' argument 2 names different: declaration '' definition 'clip'. [funcArgNamesDifferentUnnamed] discount-2.2.7/mkdio.c:152:14: style:inconclusive: Function 'mkd_in' argument 1 names different: declaration '' definition 'f'. [funcArgNamesDifferentUnnamed] discount-2.2.7/mkdio.c:152:28: style:inconclusive: Function 'mkd_in' argument 2 names different: declaration '' definition 'flags'. [funcArgNamesDifferentUnnamed] discount-2.2.7/mkdio.c:161:39: style:inconclusive: Function '__mkd_io_strget' argument 1 names different: declaration '' definition 'in'. [funcArgNamesDifferentUnnamed] discount-2.2.7/mkdio.c:174:24: style:inconclusive: Function 'mkd_string' argument 1 names different: declaration '' definition 'buf'. [funcArgNamesDifferentUnnamed] discount-2.2.7/mkdio.c:174:33: style:inconclusive: Function 'mkd_string' argument 2 names different: declaration '' definition 'len'. [funcArgNamesDifferentUnnamed] discount-2.2.7/mkdio.c:174:49: style:inconclusive: Function 'mkd_string' argument 3 names different: declaration '' definition 'flags'. [funcArgNamesDifferentUnnamed] discount-2.2.7/mkdio.c:188:28: style:inconclusive: Function 'mkd_generatehtml' argument 1 names different: declaration '' definition 'p'. [funcArgNamesDifferentUnnamed] discount-2.2.7/mkdio.c:188:37: style:inconclusive: Function 'mkd_generatehtml' argument 2 names different: declaration '' definition 'output'. [funcArgNamesDifferentUnnamed] discount-2.2.7/mkdio.c:273:28: style:inconclusive: Function 'mkd_string_to_anchor' argument 1 names different: declaration '' definition 's'. [funcArgNamesDifferentUnnamed] discount-2.2.7/mkdio.c:273:35: style:inconclusive: Function 'mkd_string_to_anchor' argument 2 names different: declaration '' definition 'len'. [funcArgNamesDifferentUnnamed] discount-2.2.7/mkdio.c:273:59: style:inconclusive: Function 'mkd_string_to_anchor' argument 3 names different: declaration '' definition 'outchar'. [funcArgNamesDifferentUnnamed] discount-2.2.7/mkdio.c:274:18: style:inconclusive: Function 'mkd_string_to_anchor' argument 4 names different: declaration '' definition 'out'. [funcArgNamesDifferentUnnamed] discount-2.2.7/mkdio.c:274:27: style:inconclusive: Function 'mkd_string_to_anchor' argument 5 names different: declaration '' definition 'labelformat'. [funcArgNamesDifferentUnnamed] discount-2.2.7/mkdio.c:275:19: style:inconclusive: Function 'mkd_string_to_anchor' argument 6 names different: declaration '' definition 'f'. [funcArgNamesDifferentUnnamed] discount-2.2.7/theme.c:188:2: error: Expression '(inbuf.size++)[(inbuf.size<(inbuf).alloc)?(inbuf.text):(inbuf.text=(inbuf).text?realloc(inbuf.text,sizeof(inbuf).text[0]*(inbuf.alloc+=100)):malloc(sizeof(inbuf).text[0]*(inbuf.alloc+=100)))]' depends on order of evaluation of side effects [unknownEvaluationOrder] discount-2.2.7/mkdio.c:325:16: style:inconclusive: Function 'mkd_line' argument 1 names different: declaration '' definition 'bfr'. [funcArgNamesDifferentUnnamed] discount-2.2.7/theme.c:271:2: error: Expression '(include.size++)[(include.size<(include).alloc)?(include.text):(include.text=(include).text?realloc(include.text,sizeof(include).text[0]*(include.alloc+=100)):malloc(sizeof(include).text[0]*(include.alloc+=100)))]' depends on order of evaluation of side effects [unknownEvaluationOrder] discount-2.2.7/mkdio.c:325:25: style:inconclusive: Function 'mkd_line' argument 2 names different: declaration '' definition 'size'. [funcArgNamesDifferentUnnamed] discount-2.2.7/theme.c:274:2: error: Expression '(include.size++)[(include.size<(include).alloc)?(include.text):(include.text=(include).text?realloc(include.text,sizeof(include).text[0]*(include.alloc+=100)):malloc(sizeof(include).text[0]*(include.alloc+=100)))]' depends on order of evaluation of side effects [unknownEvaluationOrder] discount-2.2.7/mkdio.c:325:38: style:inconclusive: Function 'mkd_line' argument 3 names different: declaration '' definition 'res'. [funcArgNamesDifferentUnnamed] discount-2.2.7/mkdio.c:325:54: style:inconclusive: Function 'mkd_line' argument 4 names different: declaration '' definition 'flags'. [funcArgNamesDifferentUnnamed] discount-2.2.7/mkdio.c:354:24: style:inconclusive: Function 'mkd_generateline' argument 1 names different: declaration '' definition 'bfr'. [funcArgNamesDifferentUnnamed] discount-2.2.7/theme.c:611:16: style: Local variable 'q' shadows outer variable [shadowVariable] discount-2.2.7/theme.c:540:11: note: Shadowed declaration discount-2.2.7/theme.c:611:16: note: Shadow variable discount-2.2.7/mkdio.c:354:33: style:inconclusive: Function 'mkd_generateline' argument 2 names different: declaration '' definition 'size'. [funcArgNamesDifferentUnnamed] discount-2.2.7/mkdio.c:354:45: style:inconclusive: Function 'mkd_generateline' argument 3 names different: declaration '' definition 'output'. [funcArgNamesDifferentUnnamed] discount-2.2.7/mkdio.c:354:64: style:inconclusive: Function 'mkd_generateline' argument 4 names different: declaration '' definition 'flags'. [funcArgNamesDifferentUnnamed] discount-2.2.7/mkdio.c:450:26: style:inconclusive: Function 'mkd_ref_prefix' argument 1 names different: declaration '' definition 'f'. [funcArgNamesDifferentUnnamed] discount-2.2.7/mkdio.c:450:35: style:inconclusive: Function 'mkd_ref_prefix' argument 2 names different: declaration '' definition 'data'. [funcArgNamesDifferentUnnamed] discount-2.2.7/mkdio.c:48:20: style: Variable 'str' can be declared as pointer to const [constVariablePointer] discount-2.2.7/theme.c:92:13: style: Parameter 'd' can be declared as pointer to const [constParameterPointer] discount-2.2.7/mkdio.c:227:25: style: Parameter 's' can be declared as pointer to const [constParameterPointer] discount-2.2.7/theme.c:141:21: style: Parameter 'template' can be declared as pointer to const [constParameterPointer] discount-2.2.7/theme.c:225:14: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] discount-2.2.7/theme.c:292:11: style: Variable 'p' can be declared as pointer to const [constVariablePointer] discount-2.2.7/theme.c:304:11: style: Variable 'p' can be declared as pointer to const [constVariablePointer] discount-2.2.7/theme.c:540:11: style: Variable 'q' can be declared as pointer to const [constVariablePointer] discount-2.2.7/theme.c:542:19: style: Variable 'opt' can be declared as pointer to const [constVariablePointer] discount-2.2.7/theme.c:611:12: style: Variable 'p' can be declared as pointer to const [constVariablePointer] discount-2.2.7/theme.c:594:16: style: Variable 'added_text' is assigned a value that is never used. [unreadVariable] discount-2.2.7/theme.c:605:17: style: Variable 'added_text' is assigned a value that is never used. [unreadVariable] discount-2.2.7/generate.c:869:16: style: Condition 'count' is always true [knownConditionTrueFalse] discount-2.2.7/generate.c:1712:6: warning: If memory allocation fails, then there is a possible null pointer dereference: text [nullPointerOutOfMemory] discount-2.2.7/generate.c:1707:15: note: Assuming allocation function fails discount-2.2.7/generate.c:1707:15: note: Assignment 'text=malloc(1+size)', assigned value is 0 discount-2.2.7/generate.c:1712:6: note: Null pointer dereference discount-2.2.7/generate.c:1714:2: warning: If memory allocation fails, then there is a possible null pointer dereference: text [nullPointerOutOfMemory] discount-2.2.7/generate.c:1707:15: note: Assuming allocation function fails discount-2.2.7/generate.c:1707:15: note: Assignment 'text=malloc(1+size)', assigned value is 0 discount-2.2.7/generate.c:1714:2: note: Null pointer dereference discount-2.2.7/generate.c:1710:17: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] discount-2.2.7/generate.c:1707:15: note: Assuming allocation function fails discount-2.2.7/generate.c:1707:15: note: Assignment 'text=malloc(1+size)', assigned value is 0 discount-2.2.7/generate.c:1710:17: note: Null pointer addition discount-2.2.7/generate.c:37:2: error: Expression '(f->in.size++)[(f->in.size<(f->in).alloc)?(f->in.text):(f->in.text=(f->in).text?realloc(f->in.text,sizeof(f->in).text[0]*(f->in.alloc+=100)):malloc(sizeof(f->in).text[0]*(f->in.alloc+=100)))]' depends on order of evaluation of side effects [unknownEvaluationOrder] discount-2.2.7/generate.c:47:5: error: Expression '(f->in.size++)[(f->in.size<(f->in).alloc)?(f->in.text):(f->in.text=(f->in).text?realloc(f->in.text,sizeof(f->in).text[0]*(f->in.alloc+=100)):malloc(sizeof(f->in).text[0]*(f->in.alloc+=100)))]' depends on order of evaluation of side effects [unknownEvaluationOrder] discount-2.2.7/generate.c:136:9: error: Expression '(f->Q.size++)[(f->Q.size<(f->Q).alloc)?(f->Q.text):(f->Q.text=(f->Q).text?realloc(f->Q.text,sizeof(f->Q).text[0]*(f->Q.alloc+=100)):malloc(sizeof(f->Q).text[0]*(f->Q.alloc+=100)))]' depends on order of evaluation of side effects [unknownEvaluationOrder] discount-2.2.7/generate.c:143:5: error: Expression '(cur->b_text.size++)[(cur->b_text.size<(cur->b_text).alloc)?(cur->b_text.text):(cur->b_text.text=(cur->b_text).text?realloc(cur->b_text.text,sizeof(cur->b_text).text[0]*(cur->b_text.alloc+=100)):malloc(sizeof(cur->b_text).text[0]*(cur->b_text.alloc+=100)))]' depends on order of evaluation of side effects [unknownEvaluationOrder] discount-2.2.7/generate.c:198:17: error: Expression '(f->Q.size++)[(f->Q.size<(f->Q).alloc)?(f->Q.text):(f->Q.text=(f->Q).text?realloc(f->Q.text,sizeof(f->Q).text[0]*(f->Q.alloc+=100)):malloc(sizeof(f->Q).text[0]*(f->Q.alloc+=100)))]' depends on order of evaluation of side effects [unknownEvaluationOrder] discount-2.2.7/generate.c:205:13: error: Expression '(f->Q.size++)[(f->Q.size<(f->Q).alloc)?(f->Q.text):(f->Q.text=(f->Q).text?realloc(f->Q.text,sizeof(f->Q).text[0]*(f->Q.alloc+=100)):malloc(sizeof(f->Q).text[0]*(f->Q.alloc+=100)))]' depends on order of evaluation of side effects [unknownEvaluationOrder] discount-2.2.7/generate.c:1630:2: error: Expression '(align.size++)[(align.size<(align).alloc)?(align.text):(align.text=(align).text?realloc(align.text,sizeof(align).text[0]*(align.alloc+=100)):malloc(sizeof(align).text[0]*(align.alloc+=100)))]' depends on order of evaluation of side effects [unknownEvaluationOrder] discount-2.2.7/generate.c:1643:6: error: Expression '(align.size++)[(align.size<(align).alloc)?(align.text):(align.text=(align).text?realloc(align.text,sizeof(align).text[0]*(align.alloc+=100)):malloc(sizeof(align).text[0]*(align.alloc+=100)))]' depends on order of evaluation of side effects [unknownEvaluationOrder] discount-2.2.7/generate.c:1984:3: error: Expression '(p->ctx->out.size++)[(p->ctx->out.size<(p->ctx->out).alloc)?(p->ctx->out.text):(p->ctx->out.text=(p->ctx->out).text?realloc(p->ctx->out.text,sizeof(p->ctx->out).text[0]*(p->ctx->out.alloc+=100)):malloc(sizeof(p->ctx->out).text[0]*(p->ctx->out.alloc+=100)))]' depends on order of evaluation of side effects [unknownEvaluationOrder] discount-2.2.7/generate.c:212:22: style:inconclusive: Function '___mkd_reparse' argument 1 names different: declaration '' definition 'bfr'. [funcArgNamesDifferentUnnamed] discount-2.2.7/generate.c:212:31: style:inconclusive: Function '___mkd_reparse' argument 2 names different: declaration '' definition 'size'. [funcArgNamesDifferentUnnamed] discount-2.2.7/generate.c:212:48: style:inconclusive: Function '___mkd_reparse' argument 3 names different: declaration '' definition 'flags'. [funcArgNamesDifferentUnnamed] discount-2.2.7/generate.c:212:62: style:inconclusive: Function '___mkd_reparse' argument 4 names different: declaration '' definition 'f'. [funcArgNamesDifferentUnnamed] discount-2.2.7/generate.c:212:71: style:inconclusive: Function '___mkd_reparse' argument 5 names different: declaration '' definition 'esc'. [funcArgNamesDifferentUnnamed] discount-2.2.7/generate.c:1879:20: style:inconclusive: Function 'display' argument 1 names different: declaration '' definition 'p'. [funcArgNamesDifferentUnnamed] discount-2.2.7/generate.c:1879:30: style:inconclusive: Function 'display' argument 2 names different: declaration '' definition 'f'. [funcArgNamesDifferentUnnamed] discount-2.2.7/generate.c:1968:24: style:inconclusive: Function 'mkd_document' argument 1 names different: declaration '' definition 'p'. [funcArgNamesDifferentUnnamed] discount-2.2.7/generate.c:1968:34: style:inconclusive: Function 'mkd_document' argument 2 names different: declaration '' definition 'res'. [funcArgNamesDifferentUnnamed] discount-2.2.7/generate.c:990:11: style: Local variable 'text' shadows outer function [shadowFunction] discount-2.2.7/generate.c:24:13: note: Shadowed declaration discount-2.2.7/generate.c:990:11: note: Shadow variable discount-2.2.7/generate.c:1699:8: style: Local variable 'text' shadows outer function [shadowFunction] discount-2.2.7/generate.c:24:13: note: Shadowed declaration discount-2.2.7/generate.c:1699:8: note: Shadow variable discount-2.2.7/generate.c:34:12: style: Parameter 'bfr' can be declared as pointer to const [constParameterPointer] discount-2.2.7/generate.c:151:15: style: Parameter 's' can be declared as pointer to const [constParameterPointer] discount-2.2.7/generate.c:161:14: style: Parameter 's' can be declared as pointer to const [constParameterPointer] discount-2.2.7/generate.c:255:21: style: Variable 'thing' can be declared as pointer to const [constVariablePointer] discount-2.2.7/generate.c:270:14: style: Parameter 's' can be declared as pointer to const [constParameterPointer] discount-2.2.7/generate.c:360:11: style: Variable 'e' can be declared as pointer to const [constVariablePointer] discount-2.2.7/generate.c:525:20: style: Parameter 'text' can be declared as pointer to const [constParameterPointer] discount-2.2.7/generate.c:664:15: style: Variable 'colon' can be declared as pointer to const [constVariablePointer] discount-2.2.7/generate.c:891:22: style: Parameter 's' can be declared as pointer to const [constParameterPointer] discount-2.2.7/generate.c:1143:24: style: Parameter 's' can be declared as pointer to const [constParameterPointer] discount-2.2.7/generate.c:1595:11: style: Variable 'p' can be declared as pointer to const [constVariablePointer] discount-2.2.7/markdown.c:580:27: style: Array index 'i' is used before limits check. [arrayIndexThenCheck] discount-2.2.7/markdown.c:664:27: style: Redundant condition: The condition '*lang_attr != 0' is redundant since '*lang_attr == ' '' is sufficient. [redundantCondition] discount-2.2.7/markdown.c:170:2: warning: If memory allocation fails, then there is a possible null pointer dereference: tmp [nullPointerOutOfMemory] discount-2.2.7/markdown.c:168:20: note: Assuming allocation function fails discount-2.2.7/markdown.c:168:20: note: Assignment 'tmp=calloc(1,sizeof(*tmp))', assigned value is 0 discount-2.2.7/markdown.c:170:2: note: Null pointer dereference discount-2.2.7/markdown.c:173:2: warning: If memory allocation fails, then there is a possible null pointer dereference: tmp [nullPointerOutOfMemory] discount-2.2.7/markdown.c:168:20: note: Assuming allocation function fails discount-2.2.7/markdown.c:168:20: note: Assignment 'tmp=calloc(1,sizeof(*tmp))', assigned value is 0 discount-2.2.7/markdown.c:173:2: note: Null pointer dereference discount-2.2.7/markdown.c:174:2: warning: If memory allocation fails, then there is a possible null pointer dereference: tmp [nullPointerOutOfMemory] discount-2.2.7/markdown.c:168:20: note: Assuming allocation function fails discount-2.2.7/markdown.c:168:20: note: Assignment 'tmp=calloc(1,sizeof(*tmp))', assigned value is 0 discount-2.2.7/markdown.c:174:2: note: Null pointer dereference discount-2.2.7/markdown.c:175:2: warning: If memory allocation fails, then there is a possible null pointer dereference: tmp [nullPointerOutOfMemory] discount-2.2.7/markdown.c:168:20: note: Assuming allocation function fails discount-2.2.7/markdown.c:168:20: note: Assignment 'tmp=calloc(1,sizeof(*tmp))', assigned value is 0 discount-2.2.7/markdown.c:175:2: note: Null pointer dereference discount-2.2.7/markdown.c:1150:5: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] discount-2.2.7/markdown.c:1148:28: note: Assuming allocation function fails discount-2.2.7/markdown.c:1148:28: note: Assignment 'ret=calloc(sizeof(*ret),1)', assigned value is 0 discount-2.2.7/markdown.c:1150:5: note: Null pointer dereference discount-2.2.7/markdown.c:1151:5: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] discount-2.2.7/markdown.c:1148:28: note: Assuming allocation function fails discount-2.2.7/markdown.c:1148:28: note: Assignment 'ret=calloc(sizeof(*ret),1)', assigned value is 0 discount-2.2.7/markdown.c:1151:5: note: Null pointer dereference discount-2.2.7/markdown.c:1451:13: warning: If memory allocation fails, then there is a possible null pointer dereference: doc->ctx->footnotes [nullPointerOutOfMemory] discount-2.2.7/markdown.c:1450:33: note: Assuming allocation function fails discount-2.2.7/markdown.c:1450:33: note: Assignment 'doc->ctx->footnotes=malloc(sizeof(doc->ctx->footnotes[0]))', assigned value is 0 discount-2.2.7/markdown.c:1451:13: note: Null pointer dereference discount-2.2.7/markdown.c:174:2: error: Expression '(tmp->text.size++)[(tmp->text.size<(tmp->text).alloc)?(tmp->text.text):(tmp->text.text=(tmp->text).text?realloc(tmp->text.text,sizeof(tmp->text).text[0]*(tmp->text.alloc+=100)):malloc(sizeof(tmp->text).text[0]*(tmp->text.alloc+=100)))]' depends on order of evaluation of side effects [unknownEvaluationOrder] discount-2.2.7/markdown.c:1066:23: error: Expression '(f->footnotes->note.size++)[(f->footnotes->note.size<(f->footnotes->note).alloc)?(f->footnotes->note.text):(f->footnotes->note.text=(f->footnotes->note).text?realloc(f->footnotes->note.text,sizeof(f->footnotes->note).text[0]*(f->footnotes->note.alloc+=100)):malloc(sizeof(f->footnotes->note).text[0]*(f->footnotes->note.alloc+=100)))]' depends on order of evaluation of side effects [unknownEvaluationOrder] discount-2.2.7/markdown.c:1076:2: error: Expression '(foot->tag.size++)[(foot->tag.size<(foot->tag).alloc)?(foot->tag.text):(foot->tag.text=(foot->tag).text?realloc(foot->tag.text,sizeof(foot->tag).text[0]*(foot->tag.alloc+=100)):malloc(sizeof(foot->tag).text[0]*(foot->tag.alloc+=100)))]' depends on order of evaluation of side effects [unknownEvaluationOrder] discount-2.2.7/markdown.c:1077:5: error: Expression '(foot->tag.size++)[(foot->tag.size<(foot->tag).alloc)?(foot->tag.text):(foot->tag.text=(foot->tag).text?realloc(foot->tag.text,sizeof(foot->tag).text[0]*(foot->tag.alloc+=100)):malloc(sizeof(foot->tag).text[0]*(foot->tag.alloc+=100)))]' depends on order of evaluation of side effects [unknownEvaluationOrder] discount-2.2.7/markdown.c:1099:2: error: Expression '(foot->link.size++)[(foot->link.size<(foot->link).alloc)?(foot->link.text):(foot->link.text=(foot->link).text?realloc(foot->link.text,sizeof(foot->link).text[0]*(foot->link.alloc+=100)):malloc(sizeof(foot->link).text[0]*(foot->link.alloc+=100)))]' depends on order of evaluation of side effects [unknownEvaluationOrder] discount-2.2.7/markdown.c:1100:5: error: Expression '(foot->link.size++)[(foot->link.size<(foot->link).alloc)?(foot->link.text):(foot->link.text=(foot->link).text?realloc(foot->link.text,sizeof(foot->link).text[0]*(foot->link.alloc+=100)):malloc(sizeof(foot->link).text[0]*(foot->link.alloc+=100)))]' depends on order of evaluation of side effects [unknownEvaluationOrder] discount-2.2.7/markdown.c:1126:6: error: Expression '(foot->title.size++)[(foot->title.size<(foot->title).alloc)?(foot->title.text):(foot->title.text=(foot->title).text?realloc(foot->title.text,sizeof(foot->title).text[0]*(foot->title.alloc+=100)):malloc(sizeof(foot->title).text[0]*(foot->title.alloc+=100)))]' depends on order of evaluation of side effects [unknownEvaluationOrder] discount-2.2.7/markdown.c:1132:2: error: Expression '(foot->title.size++)[(foot->title.size<(foot->title).alloc)?(foot->title.text):(foot->title.text=(foot->title).text?realloc(foot->title.text,sizeof(foot->title).text[0]*(foot->title.alloc+=100)):malloc(sizeof(foot->title).text[0]*(foot->title.alloc+=100)))]' depends on order of evaluation of side effects [unknownEvaluationOrder] discount-2.2.7/markdown.c:77:25: style:inconclusive: Function 'mkd_firstnonblank' argument 1 names different: declaration '' definition 'p'. [funcArgNamesDifferentUnnamed] discount-2.2.7/markdown.c:100:22: style:inconclusive: Function '___mkd_tidy' argument 1 names different: declaration '' definition 't'. [funcArgNamesDifferentUnnamed] discount-2.2.7/markdown.c:1146:19: style:inconclusive: Function 'Pp' argument 1 names different: declaration '' definition 'd'. [funcArgNamesDifferentUnnamed] discount-2.2.7/markdown.c:1146:28: style:inconclusive: Function 'Pp' argument 2 names different: declaration '' definition 'ptr'. [funcArgNamesDifferentUnnamed] discount-2.2.7/markdown.c:1146:37: style:inconclusive: Function 'Pp' argument 3 names different: declaration '' definition 'typ'. [funcArgNamesDifferentUnnamed] discount-2.2.7/markdown.c:1314:15: style:inconclusive: Function 'compile' argument 1 names different: declaration '' definition 'ptr'. [funcArgNamesDifferentUnnamed] discount-2.2.7/markdown.c:1314:24: style:inconclusive: Function 'compile' argument 2 names different: declaration '' definition 'toplevel'. [funcArgNamesDifferentUnnamed] discount-2.2.7/markdown.c:1314:41: style:inconclusive: Function 'compile' argument 3 names different: declaration '' definition 'f'. [funcArgNamesDifferentUnnamed] discount-2.2.7/markdown.c:1425:23: style:inconclusive: Function 'mkd_compile' argument 1 names different: declaration '' definition 'doc'. [funcArgNamesDifferentUnnamed] discount-2.2.7/markdown.c:1425:39: style:inconclusive: Function 'mkd_compile' argument 2 names different: declaration '' definition 'flags'. [funcArgNamesDifferentUnnamed] discount-2.2.7/markdown.c:55:17: style: Parameter 't' can be declared as pointer to const [constParameterPointer] discount-2.2.7/markdown.c:66:20: style: Parameter 't' can be declared as pointer to const [constParameterPointer] discount-2.2.7/markdown.c:113:11: style: Variable 'line' can be declared as pointer to const [constVariablePointer] discount-2.2.7/markdown.c:263:11: style: Variable 'end' can be declared as pointer to const [constVariablePointer] discount-2.2.7/markdown.c:283:36: style: Parameter 'tag' can be declared as pointer to const [constParameterPointer] discount-2.2.7/markdown.c:377:14: style: Parameter 't' can be declared as pointer to const [constParameterPointer] discount-2.2.7/markdown.c:663:9: style: Variable 'lang_attr' can be declared as pointer to const [constVariablePointer] discount-2.2.7/markdown.c:736:21: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] discount-2.2.7/markdown.c:822:8: style: Variable 'prefix' can be declared as pointer to const [constVariablePointer] discount-2.2.7/markdown.c:1264:25: style: Parameter 'f' can be declared as pointer to const [constParameterPointer] discount-2.2.7/markdown.c:1075:13: style: Variable 'i' is assigned a value that is never used. [unreadVariable] discount-2.2.7/markdown.c:1317:18: style: Variable 'p' is assigned a value that is never used. [unreadVariable] diff: head discount-2.2.7/Csio.c:12:12: style:inconclusive: Function 'Csputc' argument 1 names different: declaration '' definition 'c'. [funcArgNamesDifferentUnnamed] head discount-2.2.7/Csio.c:12:24: style:inconclusive: Function 'Csputc' argument 2 names different: declaration '' definition 'iot'. [funcArgNamesDifferentUnnamed] head discount-2.2.7/Csio.c:21:19: style:inconclusive: Function 'Csprintf' argument 1 names different: declaration '' definition 'iot'. [funcArgNamesDifferentUnnamed] head discount-2.2.7/Csio.c:21:30: style:inconclusive: Function 'Csprintf' argument 2 names different: declaration '' definition 'fmt'. [funcArgNamesDifferentUnnamed] head discount-2.2.7/Csio.c:41:18: style:inconclusive: Function 'Cswrite' argument 1 names different: declaration '' definition 'iot'. [funcArgNamesDifferentUnnamed] head discount-2.2.7/Csio.c:41:29: style:inconclusive: Function 'Cswrite' argument 2 names different: declaration '' definition 'bfr'. [funcArgNamesDifferentUnnamed] head discount-2.2.7/Csio.c:41:38: style:inconclusive: Function 'Cswrite' argument 3 names different: declaration '' definition 'size'. [funcArgNamesDifferentUnnamed] head discount-2.2.7/css.c:45:19: style:inconclusive: Function 'mkd_css' argument 1 names different: declaration '' definition 'd'. [funcArgNamesDifferentUnnamed] head discount-2.2.7/css.c:45:29: style:inconclusive: Function 'mkd_css' argument 2 names different: declaration '' definition 'res'. [funcArgNamesDifferentUnnamed] head discount-2.2.7/css.c:73:27: style:inconclusive: Function 'mkd_generatecss' argument 1 names different: declaration '' definition 'd'. [funcArgNamesDifferentUnnamed] head discount-2.2.7/css.c:73:36: style:inconclusive: Function 'mkd_generatecss' argument 2 names different: declaration '' definition 'f'. [funcArgNamesDifferentUnnamed] head discount-2.2.7/emmatch.c:155:16: style:inconclusive: Function 'emblock' argument 1 names different: declaration '' definition 'f'. [funcArgNamesDifferentUnnamed] head discount-2.2.7/emmatch.c:155:23: style:inconclusive: Function 'emblock' argument 2 names different: declaration '' definition 'first'. [funcArgNamesDifferentUnnamed] head discount-2.2.7/emmatch.c:155:34: style:inconclusive: Function 'emblock' argument 3 names different: declaration '' definition 'last'. [funcArgNamesDifferentUnnamed] head discount-2.2.7/emmatch.c:170:23: style:inconclusive: Function '___mkd_emblock' argument 1 names different: declaration '' definition 'f'. [funcArgNamesDifferentUnnamed] head discount-2.2.7/generate.c:1879:20: style:inconclusive: Function 'display' argument 1 names different: declaration '' definition 'p'. [funcArgNamesDifferentUnnamed] head discount-2.2.7/generate.c:1879:30: style:inconclusive: Function 'display' argument 2 names different: declaration '' definition 'f'. [funcArgNamesDifferentUnnamed] head discount-2.2.7/generate.c:1968:24: style:inconclusive: Function 'mkd_document' argument 1 names different: declaration '' definition 'p'. [funcArgNamesDifferentUnnamed] head discount-2.2.7/generate.c:1968:34: style:inconclusive: Function 'mkd_document' argument 2 names different: declaration '' definition 'res'. [funcArgNamesDifferentUnnamed] head discount-2.2.7/generate.c:212:22: style:inconclusive: Function '___mkd_reparse' argument 1 names different: declaration '' definition 'bfr'. [funcArgNamesDifferentUnnamed] head discount-2.2.7/generate.c:212:31: style:inconclusive: Function '___mkd_reparse' argument 2 names different: declaration '' definition 'size'. [funcArgNamesDifferentUnnamed] head discount-2.2.7/generate.c:212:48: style:inconclusive: Function '___mkd_reparse' argument 3 names different: declaration '' definition 'flags'. [funcArgNamesDifferentUnnamed] head discount-2.2.7/generate.c:212:62: style:inconclusive: Function '___mkd_reparse' argument 4 names different: declaration '' definition 'f'. [funcArgNamesDifferentUnnamed] head discount-2.2.7/generate.c:212:71: style:inconclusive: Function '___mkd_reparse' argument 5 names different: declaration '' definition 'esc'. [funcArgNamesDifferentUnnamed] head discount-2.2.7/gethopt.c:14:19: style:inconclusive: Function 'hoptset' argument 1 names different: declaration '' definition 'ctx'. [funcArgNamesDifferentUnnamed] head discount-2.2.7/gethopt.c:15:5: style:inconclusive: Function 'hoptset' argument 2 names different: declaration '' definition 'argc'. [funcArgNamesDifferentUnnamed] head discount-2.2.7/gethopt.c:16:8: style:inconclusive: Function 'hoptset' argument 3 names different: declaration '' definition 'argv'. [funcArgNamesDifferentUnnamed] head discount-2.2.7/gethopt.c:192:17: style:inconclusive: Function 'hoptusage' argument 1 names different: declaration '' definition 'pgm'. [funcArgNamesDifferentUnnamed] head discount-2.2.7/gethopt.c:192:35: style:inconclusive: Function 'hoptusage' argument 2 names different: declaration '' definition 'opts'. [funcArgNamesDifferentUnnamed] head discount-2.2.7/gethopt.c:192:47: style:inconclusive: Function 'hoptusage' argument 3 names different: declaration '' definition 'nropts'. [funcArgNamesDifferentUnnamed] head discount-2.2.7/gethopt.c:192:61: style:inconclusive: Function 'hoptusage' argument 4 names different: declaration '' definition 'arguments'. [funcArgNamesDifferentUnnamed] head discount-2.2.7/gethopt.c:27:19: style:inconclusive: Function 'hoptarg' argument 1 names different: declaration '' definition 'ctx'. [funcArgNamesDifferentUnnamed] head discount-2.2.7/gethopt.c:34:19: style:inconclusive: Function 'hoptind' argument 1 names different: declaration '' definition 'ctx'. [funcArgNamesDifferentUnnamed] head discount-2.2.7/gethopt.c:41:19: style:inconclusive: Function 'hoptopt' argument 1 names different: declaration '' definition 'ctx'. [funcArgNamesDifferentUnnamed] head discount-2.2.7/gethopt.c:49:0: style:inconclusive: Function 'hopterr' argument 2 names different: declaration '' definition 'val'. [funcArgNamesDifferentUnnamed] head discount-2.2.7/gethopt.c:49:19: style:inconclusive: Function 'hopterr' argument 1 names different: declaration '' definition 'ctx'. [funcArgNamesDifferentUnnamed] head discount-2.2.7/gethopt.c:60:19: style:inconclusive: Function 'gethopt' argument 1 names different: declaration '' definition 'ctx'. [funcArgNamesDifferentUnnamed] head discount-2.2.7/gethopt.c:61:15: style:inconclusive: Function 'gethopt' argument 2 names different: declaration '' definition 'opts'. [funcArgNamesDifferentUnnamed] head discount-2.2.7/gethopt.c:62:5: style:inconclusive: Function 'gethopt' argument 3 names different: declaration '' definition 'nropts'. [funcArgNamesDifferentUnnamed] head discount-2.2.7/github_flavoured.c:84:24: style:inconclusive: Function 'gfm_string' argument 1 names different: declaration '' definition 'buf'. [funcArgNamesDifferentUnnamed] head discount-2.2.7/github_flavoured.c:84:33: style:inconclusive: Function 'gfm_string' argument 2 names different: declaration '' definition 'len'. [funcArgNamesDifferentUnnamed] head discount-2.2.7/github_flavoured.c:84:49: style:inconclusive: Function 'gfm_string' argument 3 names different: declaration '' definition 'flags'. [funcArgNamesDifferentUnnamed] head discount-2.2.7/github_flavoured.c:98:14: style:inconclusive: Function 'gfm_in' argument 1 names different: declaration '' definition 'f'. [funcArgNamesDifferentUnnamed] head discount-2.2.7/github_flavoured.c:98:28: style:inconclusive: Function 'gfm_in' argument 2 names different: declaration '' definition 'flags'. [funcArgNamesDifferentUnnamed] head discount-2.2.7/main.c:185:11: style: Variable 'ofile' can be declared as pointer to const [constVariablePointer] head discount-2.2.7/main.c:190:19: style: Variable 'opt' can be declared as pointer to const [constVariablePointer] head discount-2.2.7/markdown.c:100:22: style:inconclusive: Function '___mkd_tidy' argument 1 names different: declaration '' definition 't'. [funcArgNamesDifferentUnnamed] head discount-2.2.7/markdown.c:1146:19: style:inconclusive: Function 'Pp' argument 1 names different: declaration '' definition 'd'. [funcArgNamesDifferentUnnamed] head discount-2.2.7/markdown.c:1146:28: style:inconclusive: Function 'Pp' argument 2 names different: declaration '' definition 'ptr'. [funcArgNamesDifferentUnnamed] head discount-2.2.7/markdown.c:1146:37: style:inconclusive: Function 'Pp' argument 3 names different: declaration '' definition 'typ'. [funcArgNamesDifferentUnnamed] head discount-2.2.7/markdown.c:1314:15: style:inconclusive: Function 'compile' argument 1 names different: declaration '' definition 'ptr'. [funcArgNamesDifferentUnnamed] head discount-2.2.7/markdown.c:1314:24: style:inconclusive: Function 'compile' argument 2 names different: declaration '' definition 'toplevel'. [funcArgNamesDifferentUnnamed] head discount-2.2.7/markdown.c:1314:41: style:inconclusive: Function 'compile' argument 3 names different: declaration '' definition 'f'. [funcArgNamesDifferentUnnamed] head discount-2.2.7/markdown.c:1425:23: style:inconclusive: Function 'mkd_compile' argument 1 names different: declaration '' definition 'doc'. [funcArgNamesDifferentUnnamed] head discount-2.2.7/markdown.c:1425:39: style:inconclusive: Function 'mkd_compile' argument 2 names different: declaration '' definition 'flags'. [funcArgNamesDifferentUnnamed] head discount-2.2.7/markdown.c:77:25: style:inconclusive: Function 'mkd_firstnonblank' argument 1 names different: declaration '' definition 'p'. [funcArgNamesDifferentUnnamed] head discount-2.2.7/mkd2html.c:98:19: style: Variable 'res' can be declared as pointer to const [constVariablePointer] head discount-2.2.7/mkdio.c:152:14: style:inconclusive: Function 'mkd_in' argument 1 names different: declaration '' definition 'f'. [funcArgNamesDifferentUnnamed] head discount-2.2.7/mkdio.c:152:28: style:inconclusive: Function 'mkd_in' argument 2 names different: declaration '' definition 'flags'. [funcArgNamesDifferentUnnamed] head discount-2.2.7/mkdio.c:161:39: style:inconclusive: Function '__mkd_io_strget' argument 1 names different: declaration '' definition 'in'. [funcArgNamesDifferentUnnamed] head discount-2.2.7/mkdio.c:174:24: style:inconclusive: Function 'mkd_string' argument 1 names different: declaration '' definition 'buf'. [funcArgNamesDifferentUnnamed] head discount-2.2.7/mkdio.c:174:33: style:inconclusive: Function 'mkd_string' argument 2 names different: declaration '' definition 'len'. [funcArgNamesDifferentUnnamed] head discount-2.2.7/mkdio.c:174:49: style:inconclusive: Function 'mkd_string' argument 3 names different: declaration '' definition 'flags'. [funcArgNamesDifferentUnnamed] head discount-2.2.7/mkdio.c:188:28: style:inconclusive: Function 'mkd_generatehtml' argument 1 names different: declaration '' definition 'p'. [funcArgNamesDifferentUnnamed] head discount-2.2.7/mkdio.c:188:37: style:inconclusive: Function 'mkd_generatehtml' argument 2 names different: declaration '' definition 'output'. [funcArgNamesDifferentUnnamed] head discount-2.2.7/mkdio.c:273:28: style:inconclusive: Function 'mkd_string_to_anchor' argument 1 names different: declaration '' definition 's'. [funcArgNamesDifferentUnnamed] head discount-2.2.7/mkdio.c:273:35: style:inconclusive: Function 'mkd_string_to_anchor' argument 2 names different: declaration '' definition 'len'. [funcArgNamesDifferentUnnamed] head discount-2.2.7/mkdio.c:273:59: style:inconclusive: Function 'mkd_string_to_anchor' argument 3 names different: declaration '' definition 'outchar'. [funcArgNamesDifferentUnnamed] head discount-2.2.7/mkdio.c:274:18: style:inconclusive: Function 'mkd_string_to_anchor' argument 4 names different: declaration '' definition 'out'. [funcArgNamesDifferentUnnamed] head discount-2.2.7/mkdio.c:274:27: style:inconclusive: Function 'mkd_string_to_anchor' argument 5 names different: declaration '' definition 'labelformat'. [funcArgNamesDifferentUnnamed] head discount-2.2.7/mkdio.c:275:19: style:inconclusive: Function 'mkd_string_to_anchor' argument 6 names different: declaration '' definition 'f'. [funcArgNamesDifferentUnnamed] head discount-2.2.7/mkdio.c:325:16: style:inconclusive: Function 'mkd_line' argument 1 names different: declaration '' definition 'bfr'. [funcArgNamesDifferentUnnamed] head discount-2.2.7/mkdio.c:325:25: style:inconclusive: Function 'mkd_line' argument 2 names different: declaration '' definition 'size'. [funcArgNamesDifferentUnnamed] head discount-2.2.7/mkdio.c:325:38: style:inconclusive: Function 'mkd_line' argument 3 names different: declaration '' definition 'res'. [funcArgNamesDifferentUnnamed] head discount-2.2.7/mkdio.c:325:54: style:inconclusive: Function 'mkd_line' argument 4 names different: declaration '' definition 'flags'. [funcArgNamesDifferentUnnamed] head discount-2.2.7/mkdio.c:354:24: style:inconclusive: Function 'mkd_generateline' argument 1 names different: declaration '' definition 'bfr'. [funcArgNamesDifferentUnnamed] head discount-2.2.7/mkdio.c:354:33: style:inconclusive: Function 'mkd_generateline' argument 2 names different: declaration '' definition 'size'. [funcArgNamesDifferentUnnamed] head discount-2.2.7/mkdio.c:354:45: style:inconclusive: Function 'mkd_generateline' argument 3 names different: declaration '' definition 'output'. [funcArgNamesDifferentUnnamed] head discount-2.2.7/mkdio.c:354:64: style:inconclusive: Function 'mkd_generateline' argument 4 names different: declaration '' definition 'flags'. [funcArgNamesDifferentUnnamed] head discount-2.2.7/mkdio.c:42:25: style:inconclusive: Function '__mkd_enqueue' argument 1 names different: declaration '' definition 'a'. [funcArgNamesDifferentUnnamed] head discount-2.2.7/mkdio.c:42:37: style:inconclusive: Function '__mkd_enqueue' argument 2 names different: declaration '' definition 'line'. [funcArgNamesDifferentUnnamed] head discount-2.2.7/mkdio.c:450:26: style:inconclusive: Function 'mkd_ref_prefix' argument 1 names different: declaration '' definition 'f'. [funcArgNamesDifferentUnnamed] head discount-2.2.7/mkdio.c:450:35: style:inconclusive: Function 'mkd_ref_prefix' argument 2 names different: declaration '' definition 'data'. [funcArgNamesDifferentUnnamed] head discount-2.2.7/mkdio.c:80:23: style:inconclusive: Function '__mkd_trim_line' argument 1 names different: declaration '' definition 'p'. [funcArgNamesDifferentUnnamed] head discount-2.2.7/mkdio.c:80:30: style:inconclusive: Function '__mkd_trim_line' argument 2 names different: declaration '' definition 'clip'. [funcArgNamesDifferentUnnamed] head discount-2.2.7/resource.c:111:25: style:inconclusive: Function '___mkd_freemmiot' argument 1 names different: declaration '' definition 'f'. [funcArgNamesDifferentUnnamed] head discount-2.2.7/resource.c:111:34: style:inconclusive: Function '___mkd_freemmiot' argument 2 names different: declaration '' definition 'footnotes'. [funcArgNamesDifferentUnnamed] head discount-2.2.7/resource.c:127:28: style:inconclusive: Function '___mkd_freeLineRange' argument 1 names different: declaration '' definition 'anchor'. [funcArgNamesDifferentUnnamed] head discount-2.2.7/resource.c:127:42: style:inconclusive: Function '___mkd_freeLineRange' argument 2 names different: declaration '' definition 'stop'. [funcArgNamesDifferentUnnamed] head discount-2.2.7/resource.c:144:23: style:inconclusive: Function 'mkd_cleanup' argument 1 names different: declaration '' definition 'doc'. [funcArgNamesDifferentUnnamed] head discount-2.2.7/resource.c:23:23: style:inconclusive: Function '___mkd_freeLine' argument 1 names different: declaration '' definition 'ptr'. [funcArgNamesDifferentUnnamed] head discount-2.2.7/resource.c:33:24: style:inconclusive: Function '___mkd_freeLines' argument 1 names different: declaration '' definition 'p'. [funcArgNamesDifferentUnnamed] head discount-2.2.7/resource.c:44:33: style:inconclusive: Function '___mkd_freeParagraph' argument 1 names different: declaration '' definition 'p'. [funcArgNamesDifferentUnnamed] head discount-2.2.7/resource.c:63:31: style:inconclusive: Function '___mkd_freefootnote' argument 1 names different: declaration '' definition 'f'. [funcArgNamesDifferentUnnamed] head discount-2.2.7/resource.c:75:29: style:inconclusive: Function '___mkd_freefootnotes' argument 1 names different: declaration '' definition 'f'. [funcArgNamesDifferentUnnamed] head discount-2.2.7/resource.c:91:25: style:inconclusive: Function '___mkd_initmmiot' argument 1 names different: declaration '' definition 'f'. [funcArgNamesDifferentUnnamed] head discount-2.2.7/resource.c:91:34: style:inconclusive: Function '___mkd_initmmiot' argument 2 names different: declaration '' definition 'footnotes'. [funcArgNamesDifferentUnnamed] head discount-2.2.7/tags.c:23:22: style:inconclusive: Function 'mkd_define_tag' argument 1 names different: declaration '' definition 'id'. [funcArgNamesDifferentUnnamed] head discount-2.2.7/tags.c:23:30: style:inconclusive: Function 'mkd_define_tag' argument 2 names different: declaration '' definition 'selfclose'. [funcArgNamesDifferentUnnamed] head discount-2.2.7/tags.c:71:23: style:inconclusive: Function 'mkd_search_tags' argument 1 names different: declaration '' definition 'pat'. [funcArgNamesDifferentUnnamed] head discount-2.2.7/tags.c:71:32: style:inconclusive: Function 'mkd_search_tags' argument 2 names different: declaration '' definition 'len'. [funcArgNamesDifferentUnnamed] head discount-2.2.7/theme.c:540:11: style: Variable 'q' can be declared as pointer to const [constVariablePointer] head discount-2.2.7/theme.c:542:19: style: Variable 'opt' can be declared as pointer to const [constVariablePointer] head discount-2.2.7/xml.c:41:23: style:inconclusive: Function 'mkd_generatexml' argument 1 names different: declaration '' definition 'p'. [funcArgNamesDifferentUnnamed] head discount-2.2.7/xml.c:41:30: style:inconclusive: Function 'mkd_generatexml' argument 2 names different: declaration '' definition 'size'. [funcArgNamesDifferentUnnamed] head discount-2.2.7/xml.c:41:42: style:inconclusive: Function 'mkd_generatexml' argument 3 names different: declaration '' definition 'out'. [funcArgNamesDifferentUnnamed] head discount-2.2.7/xml.c:61:15: style:inconclusive: Function 'mkd_xml' argument 1 names different: declaration '' definition 'p'. [funcArgNamesDifferentUnnamed] head discount-2.2.7/xml.c:61:22: style:inconclusive: Function 'mkd_xml' argument 2 names different: declaration '' definition 'size'. [funcArgNamesDifferentUnnamed] head discount-2.2.7/xml.c:61:35: style:inconclusive: Function 'mkd_xml' argument 3 names different: declaration '' definition 'res'. [funcArgNamesDifferentUnnamed] DONE