2024-04-15 07:45 ftp://ftp.de.debian.org/debian/pool/main/c/cgit/cgit_1.2.3+git20221219.50.91f2590+git2.39.1.orig.tar.xz cppcheck-options: --library=posix --library=gnu --library=bsd --library=lua --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-102-generic-x86_64-with-glibc2.35 python: 3.10.12 client-version: 1.3.55 compiler: g++ (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0 cppcheck: head 2.13.0 head-info: 01c049d (2024-04-13 21:28:19 +0200) count: 181 107 elapsed-time: 13.3 751.9 head-timing-info: old-timing-info: head results: cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/cache.c:50:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/cache.c:78:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/cache.c:115:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/cache.c:158:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/cache.c:172:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable F_WRLCK [valueFlowBailoutIncompleteVar] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/cache.c:214:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/cache.c:227:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/cache.c:361:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRBUF_INIT [valueFlowBailoutIncompleteVar] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/cache.c:424:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRBUF_INIT [valueFlowBailoutIncompleteVar] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/cache.c:470:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/cache.c:441:16: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/cache.c:47:8: style: Variable 'bufz' can be declared as pointer to const [constVariablePointer] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/cache.c:257:17: style: Variable 's' can be declared as pointer to const [constVariablePointer] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/cgit.c:370:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CGIT_CACHE_ROOT [valueFlowBailoutIncompleteVar] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/cgit.c:596:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/cgit.c:771:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRBUF_INIT [valueFlowBailoutIncompleteVar] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/cgit.c:884:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRBUF_INIT [valueFlowBailoutIncompleteVar] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/cgit.c:919:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRBUF_INIT [valueFlowBailoutIncompleteVar] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/cgit.c:970:79: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CGIT_VERSION [valueFlowBailoutIncompleteVar] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/cgit.c:783:35: style: Parameter 'txt' can be declared as pointer to const [constParameterPointer] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/configfile.c:29:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/configfile.c:42:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/configfile.c:72:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRBUF_INIT [valueFlowBailoutIncompleteVar] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/filter.c:152:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RTLD_NEXT [valueFlowBailoutIncompleteVar] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/filter.c:201:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/filter.c:93:27: style: Variable 'filter' can be declared as pointer to const [constVariablePointer] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/filter.c:343:21: style: Variable 'filter' can be declared as pointer to const [constVariablePointer] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/html.c:63:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/html.c:71:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRBUF_INIT [valueFlowBailoutIncompleteVar] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/html.c:95:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRBUF_INIT [valueFlowBailoutIncompleteVar] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/html.c:116:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRBUF_INIT [valueFlowBailoutIncompleteVar] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/html.c:136:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SSIZE_MAX [valueFlowBailoutIncompleteVar] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/html.c:162:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRBUF_INIT [valueFlowBailoutIncompleteVar] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/html.c:321:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/html.c:81:27: style:inconclusive: Function 'html_raw' argument 1 names different: declaration 'txt' definition 'data'. [funcArgNamesDifferent] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/html.h:6:34: note: Function 'html_raw' argument 1 names different: declaration 'txt' definition 'data'. cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/html.c:81:27: note: Function 'html_raw' argument 1 names different: declaration 'txt' definition 'data'. cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/html.c:159:29: style:inconclusive: Function 'html_attrf' argument 1 names different: declaration 'format' definition 'fmt'. [funcArgNamesDifferent] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/html.h:19:36: note: Function 'html_attrf' argument 1 names different: declaration 'format' definition 'fmt'. cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/html.c:159:29: note: Function 'html_attrf' argument 1 names different: declaration 'format' definition 'fmt'. cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/parsing.c:131:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable the_repository [valueFlowBailoutIncompleteVar] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/parsing.c:202:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OBJ_TAG [valueFlowBailoutIncompleteVar] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/scan-tree.c:19:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRBUF_INIT [valueFlowBailoutIncompleteVar] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/scan-tree.c:87:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRBUF_INIT [valueFlowBailoutIncompleteVar] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/scan-tree.c:191:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRBUF_INIT [valueFlowBailoutIncompleteVar] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/scan-tree.c:242:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRBUF_INIT [valueFlowBailoutIncompleteVar] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/scan-tree.c:139:14: portability: Non reentrant function 'getpwuid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwuid_r'. [prohibitedgetpwuidCalled] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/scan-tree.c:216:16: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/scan-tree.c:75:29: style: Parameter 's' can be declared as pointer to const [constParameterPointer] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/shared.c:165:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable the_repository [valueFlowBailoutIncompleteVar] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/shared.c:230:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable status [valueFlowBailoutIncompleteVar] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/shared.c:266:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ptr [valueFlowBailoutIncompleteVar] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/shared.c:324:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XDF_NEED_MINIMAL [valueFlowBailoutIncompleteVar] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/shared.c:347:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DIFF_FORMAT_CALLBACK [valueFlowBailoutIncompleteVar] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/shared.c:384:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRING_LIST_INIT_DUP [valueFlowBailoutIncompleteVar] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/shared.c:421:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable name [valueFlowBailoutIncompleteVar] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/shared.c:448:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/shared.c:305:6: style: Condition '!load_mmfile(&file1,old_oid)' is always false [knownConditionTrueFalse] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/shared.c:305:18: note: Calling function 'load_mmfile' returns 1 cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/shared.c:305:6: note: Condition '!load_mmfile(&file1,old_oid)' is always false cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/shared.c:305:39: style: Condition '!load_mmfile(&file2,new_oid)' is always false [knownConditionTrueFalse] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/shared.c:305:51: note: Calling function 'load_mmfile' returns 1 cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/shared.c:305:39: note: Condition '!load_mmfile(&file2,new_oid)' is always false cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/shared.c:177:40: style:inconclusive: Function 'cgit_free_taginfo' argument 1 names different: declaration 'info' definition 'tag'. [funcArgNamesDifferent] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/cgit.h:347:47: note: Function 'cgit_free_taginfo' argument 1 names different: declaration 'info' definition 'tag'. cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/shared.c:177:40: note: Function 'cgit_free_taginfo' argument 1 names different: declaration 'info' definition 'tag'. cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/shared.c:418:47: style: Parameter 'repo' can be declared as pointer to const [constParameterPointer] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/shared.c:430:20: style: Variable 'q' can be declared as pointer to const [constVariablePointer] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/shared.c:431:15: style: Variable 'warn' can be declared as pointer to const [constVariablePointer] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/shared.c:542:14: style: Variable 'mimetype' can be declared as pointer to const [constVariablePointer] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/shared.c:542:25: style: Variable 'token' can be declared as pointer to const [constVariablePointer] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/shared.c:544:27: style: Variable 'mime' can be declared as pointer to const [constVariablePointer] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-atom.c:29:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DATE_ISO8601_STRICT [valueFlowBailoutIncompleteVar] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-atom.c:101:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DEFAULT_ABBREV [valueFlowBailoutIncompleteVar] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-blame.c:20:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRBUF_INIT [valueFlowBailoutIncompleteVar] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-blame.c:52:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DEFAULT_ABBREV [valueFlowBailoutIncompleteVar] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-blame.c:116:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRVEC_INIT [valueFlowBailoutIncompleteVar] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-blame.c:243:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRBUF_INIT [valueFlowBailoutIncompleteVar] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-blame.c:295:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable the_repository [valueFlowBailoutIncompleteVar] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-blame.c:44:55: style: Parameter 'ent' can be declared as pointer to const [constParameterPointer] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-blame.c:70:61: style: Parameter 'ent' can be declared as pointer to const [constParameterPointer] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-blame.c:80:31: style: Parameter 'ent' can be declared as pointer to const [constParameterPointer] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-blame.c:264:8: style: Variable 'p' can be declared as pointer to const [constVariablePointer] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-blob.c:27:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable READ_TREE_RECURSIVE [valueFlowBailoutIncompleteVar] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-blob.c:57:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable the_repository [valueFlowBailoutIncompleteVar] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-blob.c:92:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable the_repository [valueFlowBailoutIncompleteVar] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-blob.c:148:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable the_repository [valueFlowBailoutIncompleteVar] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-blob.c:21:66: style: Parameter 'base' can be declared as pointer to const. However it seems that 'walk_tree' is a callback function, if 'base' is declared with const you might also need to cast function pointer(s). [constParameterCallback] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-blob.c:153:14: note: You might need to cast the function pointer here cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-blob.c:21:66: note: Parameter 'base' can be declared as pointer to const cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-clone.c:22:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable the_repository [valueFlowBailoutIncompleteVar] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-clone.c:42:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable the_repository [valueFlowBailoutIncompleteVar] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-clone.c:60:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-commit.c:21:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRBUF_INIT [valueFlowBailoutIncompleteVar] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-commit.c:23:14: style: Variable 'tmp2' can be declared as pointer to const [constVariablePointer] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-diff.c:102:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DIFF_STATUS_COPIED [valueFlowBailoutIncompleteVar] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-diff.c:261:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DEFAULT_ABBREV [valueFlowBailoutIncompleteVar] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-diff.c:410:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable the_repository [valueFlowBailoutIncompleteVar] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-diff.c:384:34: style:inconclusive: Function 'cgit_print_diff' argument 1 names different: declaration 'new_hex' definition 'new_rev'. [funcArgNamesDifferent] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-diff.h:6:41: note: Function 'cgit_print_diff' argument 1 names different: declaration 'new_hex' definition 'new_rev'. cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-diff.c:384:34: note: Function 'cgit_print_diff' argument 1 names different: declaration 'new_hex' definition 'new_rev'. cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-diff.c:384:55: style:inconclusive: Function 'cgit_print_diff' argument 2 names different: declaration 'old_hex' definition 'old_rev'. [funcArgNamesDifferent] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-diff.h:6:62: note: Function 'cgit_print_diff' argument 2 names different: declaration 'old_hex' definition 'old_rev'. cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-diff.c:384:55: note: Function 'cgit_print_diff' argument 2 names different: declaration 'old_hex' definition 'old_rev'. cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-diff.c:126:36: style: Parameter 'line' can be declared as pointer to const. However it seems that 'count_diff_lines' is a callback function, if 'line' is declared with const you might also need to cast function pointer(s). [constParameterCallback] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-diff.c:164:34: note: You might need to cast the function pointer here cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-diff.c:126:36: note: Parameter 'line' can be declared as pointer to const cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-diff.c:241:56: style: Parameter 'path1' can be declared as pointer to const [constParameterPointer] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-diff.c:242:42: style: Parameter 'path2' can be declared as pointer to const [constParameterPointer] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-log.c:164:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DIFF_FORMAT_CALLBACK [valueFlowBailoutIncompleteVar] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-log.c:179:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRBUF_INIT [valueFlowBailoutIncompleteVar] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-log.c:330:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRBUF_INIT [valueFlowBailoutIncompleteVar] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-log.c:370:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRVEC_INIT [valueFlowBailoutIncompleteVar] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-log.c:32:31: style: Parameter 'line' can be declared as pointer to const. However it seems that 'count_lines' is a callback function, if 'line' is declared with const you might also need to cast function pointer(s). [constParameterCallback] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-log.c:54:5: note: You might need to cast the function pointer here cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-log.c:32:31: note: Parameter 'line' can be declared as pointer to const cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-log.c:527:15: style: Variable 'commit' is assigned a value that is never used. [unreadVariable] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-log.c:538:21: style: Variable 'commit' is assigned a value that is never used. [unreadVariable] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-patch.c:23:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GIT_MAX_HEXSZ [valueFlowBailoutIncompleteVar] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-plain.c:25:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable the_repository [valueFlowBailoutIncompleteVar] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-plain.c:144:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable READ_TREE_RECURSIVE [valueFlowBailoutIncompleteVar] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-plain.c:188:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable the_repository [valueFlowBailoutIncompleteVar] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-plain.c:132:66: style: Parameter 'base' can be declared as pointer to const. However it seems that 'walk_tree' is a callback function, if 'base' is declared with const you might also need to cast function pointer(s). [constParameterCallback] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-plain.c:202:13: note: You might need to cast the function pointer here cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-plain.c:132:66: note: Parameter 'base' can be declared as pointer to const cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-plain.c:158:8: style: Variable 'p' can be declared as pointer to const [constVariablePointer] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-refs.c:69:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OBJ_COMMIT [valueFlowBailoutIncompleteVar] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-refs.c:100:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OBJ_TAG [valueFlowBailoutIncompleteVar] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-refs.c:22:18: style: Variable 'r1' can be declared as pointer to const [constVariablePointer] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-refs.c:23:18: style: Variable 'r2' can be declared as pointer to const [constVariablePointer] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-refs.c:30:18: style: Variable 'r1' can be declared as pointer to const [constVariablePointer] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-refs.c:31:18: style: Variable 'r2' can be declared as pointer to const [constVariablePointer] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-refs.c:60:8: style: Variable 'name' can be declared as pointer to const [constVariablePointer] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-refs.c:95:14: style: Variable 'tag' can be declared as pointer to const [constVariablePointer] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-refs.c:97:8: style: Variable 'name' can be declared as pointer to const [constVariablePointer] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-repolist.c:19:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRBUF_INIT [valueFlowBailoutIncompleteVar] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-repolist.c:37:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRBUF_INIT [valueFlowBailoutIncompleteVar] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-repolist.c:78:45: style: Parameter 'repo' can be declared as pointer to const [constParameterPointer] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-repolist.c:85:39: style: Parameter 'repo' can be declared as pointer to const [constParameterPointer] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-repolist.c:157:55: style: Parameter 'search' can be declared as pointer to const [constParameterPointer] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-repolist.c:157:69: style: Parameter 'sort' can be declared as pointer to const [constParameterPointer] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-repolist.c:160:8: style: Variable 'class' can be declared as pointer to const [constVariablePointer] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-repolist.c:253:32: style: Parameter 'field' can be declared as pointer to const [constParameterPointer] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-shared.c:141:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRBUF_INIT [valueFlowBailoutIncompleteVar] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-shared.c:586:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OBJ_COMMIT [valueFlowBailoutIncompleteVar] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-shared.c:677:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DATE_ISO8601 [valueFlowBailoutIncompleteVar] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-shared.c:694:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DATE_ISO8601 [valueFlowBailoutIncompleteVar] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-shared.c:800:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRBUF_INIT [valueFlowBailoutIncompleteVar] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-shared.c:839:69: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable git_version_string [valueFlowBailoutIncompleteVar] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-shared.c:879:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable len [valueFlowBailoutIncompleteVar] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-shared.c:909:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRBUF_INIT [valueFlowBailoutIncompleteVar] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-shared.c:1165:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRBUF_INIT [valueFlowBailoutIncompleteVar] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-shared.c:1204:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRBUF_INIT [valueFlowBailoutIncompleteVar] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-shared.c:953:19: style: Redundant initialization for 'p'. The initialized value is overwritten before it is read. [redundantInitialization] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-shared.c:948:10: note: p is initialized cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-shared.c:953:19: note: p is overwritten cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-shared.c:204:8: style: Variable 'delim' can be declared as pointer to const [constVariablePointer] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-shared.c:318:8: style: Variable 'delim' can be declared as pointer to const [constVariablePointer] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-shared.c:366:8: style: Variable 'delim' can be declared as pointer to const [constVariablePointer] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-shared.c:407:8: style: Variable 'delim' can be declared as pointer to const [constVariablePointer] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-shared.c:465:8: style: Variable 'delim' can be declared as pointer to const [constVariablePointer] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-shared.c:517:34: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-shared.c:581:8: style: Variable 'page' can be declared as pointer to const [constVariablePointer] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-shared.c:581:26: style: Variable 'fullrev' can be declared as pointer to const [constVariablePointer] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-shared.c:581:36: style: Variable 'name' can be declared as pointer to const [constVariablePointer] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-shared.c:618:27: style: Variable 'item' can be declared as pointer to const [constVariablePointer] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-shared.c:900:8: style: Variable 'name' can be declared as pointer to const [constVariablePointer] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-shared.c:970:8: style: Variable 'logo' can be declared as pointer to const [constVariablePointer] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-shared.c:970:22: style: Variable 'logo_link' can be declared as pointer to const [constVariablePointer] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-snapshot.c:16:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRVEC_INIT [valueFlowBailoutIncompleteVar] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-snapshot.c:125:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRBUF_INIT [valueFlowBailoutIncompleteVar] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-snapshot.c:164:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable the_repository [valueFlowBailoutIncompleteVar] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-snapshot.c:227:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRBUF_INIT [valueFlowBailoutIncompleteVar] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-snapshot.c:242:41: warning: Either the condition 'new_start' is redundant or there is overflow in pointer subtraction. [nullPointerArithmeticRedundantCheck] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-snapshot.c:240:10: note: Assuming that condition 'new_start' is not redundant cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-snapshot.c:242:41: note: Null pointer subtraction cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-snapshot.c:139:37: style: Local variable 'fmt' shadows outer function [shadowFunction] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/cgit.h:366:14: note: Shadowed declaration cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-snapshot.c:139:37: note: Shadow variable cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-ssdiff.c:40:47: style: Parameter 'A' can be declared as pointer to const [constParameterPointer] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-ssdiff.c:40:56: style: Parameter 'B' can be declared as pointer to const [constParameterPointer] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-ssdiff.c:92:33: style: Parameter 'line' can be declared as pointer to const [constParameterPointer] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-ssdiff.c:165:36: style: Parameter 'line' can be declared as pointer to const [constParameterPointer] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-ssdiff.c:179:36: style: Parameter 'line' can be declared as pointer to const [constParameterPointer] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-ssdiff.c:193:52: style: Parameter 'line' can be declared as pointer to const [constParameterPointer] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-ssdiff.c:193:64: style: Parameter 'lcs' can be declared as pointer to const [constParameterPointer] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-stats.c:234:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DEFAULT_ABBREV [valueFlowBailoutIncompleteVar] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-stats.c:381:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable string_list_item [valueFlowBailoutIncompleteVar] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-stats.c:35:37: style: Parameter 'tm' can be declared as pointer to const [constParameterPointer] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-stats.c:96:40: style: Parameter 'tm' can be declared as pointer to const [constParameterPointer] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-stats.c:117:37: style: Parameter 'tm' can be declared as pointer to const [constParameterPointer] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-stats.c:257:27: style: Variable 'author' can be declared as pointer to const [constVariablePointer] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-stats.c:260:27: style: Variable 'date' can be declared as pointer to const [constVariablePointer] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-stats.c:296:27: style: Variable 'author' can be declared as pointer to const [constVariablePointer] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-summary.c:121:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable string [valueFlowBailoutIncompleteVar] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-summary.c:104:19: style: Variable 'ref' can be declared as pointer to const [constVariablePointer] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-tag.c:43:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRBUF_INIT [valueFlowBailoutIncompleteVar] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-tag.c:14:37: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-tag.c:34:40: style: Parameter 'revname' can be declared as pointer to const [constParameterPointer] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-tree.c:94:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable the_repository [valueFlowBailoutIncompleteVar] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-tree.c:181:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable the_repository [valueFlowBailoutIncompleteVar] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-tree.c:206:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRBUF_INIT [valueFlowBailoutIncompleteVar] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-tree.c:315:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable the_repository [valueFlowBailoutIncompleteVar] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-tree.c:326:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRBUF_INIT [valueFlowBailoutIncompleteVar] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-tree.c:380:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable the_repository [valueFlowBailoutIncompleteVar] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-tree.c:146:26: style: Local variable 'ctx' shadows outer variable [shadowVariable] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/cgit.h:324:28: note: Shadowed declaration cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-tree.c:146:26: note: Shadow variable cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-tree.c:20:55: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-tree.c:162:64: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-tree.c:163:14: style: Parameter 'rev' can be declared as pointer to const [constParameterPointer] diff: head cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/cache.c:115:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/cache.c:158:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/cache.c:172:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable F_WRLCK [valueFlowBailoutIncompleteVar] head cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/cache.c:214:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/cache.c:227:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/cache.c:361:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRBUF_INIT [valueFlowBailoutIncompleteVar] head cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/cache.c:424:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRBUF_INIT [valueFlowBailoutIncompleteVar] head cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/cache.c:470:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/cache.c:78:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/cgit.c:596:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/cgit.c:771:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRBUF_INIT [valueFlowBailoutIncompleteVar] head cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/cgit.c:884:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRBUF_INIT [valueFlowBailoutIncompleteVar] head cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/cgit.c:919:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRBUF_INIT [valueFlowBailoutIncompleteVar] head cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/cgit.c:970:79: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CGIT_VERSION [valueFlowBailoutIncompleteVar] head cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/configfile.c:42:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] head cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/configfile.c:72:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRBUF_INIT [valueFlowBailoutIncompleteVar] head cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/filter.c:201:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/html.c:116:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRBUF_INIT [valueFlowBailoutIncompleteVar] head cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/html.c:136:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SSIZE_MAX [valueFlowBailoutIncompleteVar] head cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/html.c:162:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRBUF_INIT [valueFlowBailoutIncompleteVar] head cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/html.c:321:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/html.c:71:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRBUF_INIT [valueFlowBailoutIncompleteVar] head cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/html.c:95:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRBUF_INIT [valueFlowBailoutIncompleteVar] head cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/parsing.c:202:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OBJ_TAG [valueFlowBailoutIncompleteVar] head cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/scan-tree.c:191:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRBUF_INIT [valueFlowBailoutIncompleteVar] head cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/scan-tree.c:242:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRBUF_INIT [valueFlowBailoutIncompleteVar] head cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/scan-tree.c:87:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRBUF_INIT [valueFlowBailoutIncompleteVar] head cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/shared.c:230:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable status [valueFlowBailoutIncompleteVar] head cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/shared.c:266:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ptr [valueFlowBailoutIncompleteVar] head cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/shared.c:324:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XDF_NEED_MINIMAL [valueFlowBailoutIncompleteVar] head cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/shared.c:347:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DIFF_FORMAT_CALLBACK [valueFlowBailoutIncompleteVar] head cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/shared.c:384:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRING_LIST_INIT_DUP [valueFlowBailoutIncompleteVar] head cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/shared.c:421:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable name [valueFlowBailoutIncompleteVar] head cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/shared.c:448:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] head cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-atom.c:101:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DEFAULT_ABBREV [valueFlowBailoutIncompleteVar] head cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-blame.c:116:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRVEC_INIT [valueFlowBailoutIncompleteVar] head cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-blame.c:243:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRBUF_INIT [valueFlowBailoutIncompleteVar] head cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-blame.c:295:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable the_repository [valueFlowBailoutIncompleteVar] head cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-blame.c:44:55: style: Parameter 'ent' can be declared as pointer to const [constParameterPointer] head cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-blame.c:52:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DEFAULT_ABBREV [valueFlowBailoutIncompleteVar] head cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-blob.c:148:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable the_repository [valueFlowBailoutIncompleteVar] head cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-blob.c:57:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable the_repository [valueFlowBailoutIncompleteVar] head cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-blob.c:92:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable the_repository [valueFlowBailoutIncompleteVar] head cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-clone.c:42:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable the_repository [valueFlowBailoutIncompleteVar] head cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-clone.c:60:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-diff.c:261:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DEFAULT_ABBREV [valueFlowBailoutIncompleteVar] head cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-diff.c:410:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable the_repository [valueFlowBailoutIncompleteVar] head cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-log.c:179:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRBUF_INIT [valueFlowBailoutIncompleteVar] head cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-log.c:330:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRBUF_INIT [valueFlowBailoutIncompleteVar] head cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-log.c:370:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRVEC_INIT [valueFlowBailoutIncompleteVar] head cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-plain.c:132:66: style: Parameter 'base' can be declared as pointer to const. However it seems that 'walk_tree' is a callback function, if 'base' is declared with const you might also need to cast function pointer(s). [constParameterCallback] cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-plain.c:202:13: note: You might need to cast the function pointer here cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-plain.c:132:66: note: Parameter 'base' can be declared as pointer to const head cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-plain.c:144:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable READ_TREE_RECURSIVE [valueFlowBailoutIncompleteVar] head cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-plain.c:188:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable the_repository [valueFlowBailoutIncompleteVar] head cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-refs.c:100:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OBJ_TAG [valueFlowBailoutIncompleteVar] head cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-repolist.c:37:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRBUF_INIT [valueFlowBailoutIncompleteVar] head cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-shared.c:1165:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRBUF_INIT [valueFlowBailoutIncompleteVar] head cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-shared.c:1204:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRBUF_INIT [valueFlowBailoutIncompleteVar] head cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-shared.c:586:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OBJ_COMMIT [valueFlowBailoutIncompleteVar] head cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-shared.c:677:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DATE_ISO8601 [valueFlowBailoutIncompleteVar] head cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-shared.c:694:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DATE_ISO8601 [valueFlowBailoutIncompleteVar] head cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-shared.c:800:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRBUF_INIT [valueFlowBailoutIncompleteVar] head cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-shared.c:839:69: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable git_version_string [valueFlowBailoutIncompleteVar] head cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-shared.c:879:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable len [valueFlowBailoutIncompleteVar] head cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-shared.c:909:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRBUF_INIT [valueFlowBailoutIncompleteVar] head cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-snapshot.c:125:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRBUF_INIT [valueFlowBailoutIncompleteVar] head cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-snapshot.c:164:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable the_repository [valueFlowBailoutIncompleteVar] head cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-snapshot.c:227:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRBUF_INIT [valueFlowBailoutIncompleteVar] head cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-stats.c:260:27: style: Variable 'date' can be declared as pointer to const [constVariablePointer] head cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-stats.c:381:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable string_list_item [valueFlowBailoutIncompleteVar] head cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-tree.c:181:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable the_repository [valueFlowBailoutIncompleteVar] head cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-tree.c:206:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRBUF_INIT [valueFlowBailoutIncompleteVar] head cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-tree.c:315:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable the_repository [valueFlowBailoutIncompleteVar] head cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-tree.c:326:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRBUF_INIT [valueFlowBailoutIncompleteVar] head cgit-91f25909b9572ebdf3a0fed8224bf03d0d9bf3db/ui-tree.c:380:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable the_repository [valueFlowBailoutIncompleteVar] DONE