2025-05-18 05:43 ftp://ftp.de.debian.org/debian/pool/main/v/vis/vis_0.9.orig.tar.xz cppcheck-options: --library=posix --library=gnu --library=bsd --library=lua --library=bsd --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j1 platform: Linux-6.8.0-60-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.67 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04) 14.2.0 cppcheck: head 2.17.0 head-info: 5147b19 (2025-05-17 14:35:14 +0200) count: 488 486 elapsed-time: 12.1 12.2 head-timing-info: old-timing-info: head results: vis-0.9/util.h:19:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIZE_MAX [valueFlowBailoutIncompleteVar] vis-0.9/array.c:60:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] vis-0.9/array.c:68:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] vis-0.9/array.c:77:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] vis-0.9/array.c:89:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] vis-0.9/array.c:117:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] vis-0.9/array.c:135:40: style:inconclusive: Function 'array_truncate' argument 2 names different: declaration 'length' definition 'len'. [funcArgNamesDifferent] vis-0.9/array.h:98:36: note: Function 'array_truncate' argument 2 names different: declaration 'length' definition 'len'. vis-0.9/array.c:135:40: note: Function 'array_truncate' argument 2 names different: declaration 'length' definition 'len'. vis-0.9/array.c:143:38: style:inconclusive: Function 'array_resize' argument 2 names different: declaration 'length' definition 'len'. [funcArgNamesDifferent] vis-0.9/array.h:106:34: note: Function 'array_resize' argument 2 names different: declaration 'length' definition 'len'. vis-0.9/array.c:143:38: note: Function 'array_resize' argument 2 names different: declaration 'length' definition 'len'. vis-0.9/array.c:75:46: style: Parameter 'item' can be declared as pointer to const [constParameterPointer] vis-0.9/buffer.c:155:31: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] vis-0.9/buffer.c:162:30: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] vis-0.9/buffer.c:166:32: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] vis-0.9/buffer.c:170:36: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] vis-0.9/main.c:1450:61: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] vis-0.9/main.c:1528:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] vis-0.9/main.c:1579:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] vis-0.9/main.c:2177:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIX32 [valueFlowBailoutIncompleteVar] vis-0.9/main.c:2245:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable default_bindings [valueFlowBailoutIncompleteVar] vis-0.9/main.c:1212:20: style: Local variable 'reg' shadows outer function [shadowFunction] vis-0.9/main.c:106:20: note: Shadowed declaration vis-0.9/main.c:1212:20: note: Shadow variable vis-0.9/main.c:1226:19: style: Local variable 'reg' shadows outer function [shadowFunction] vis-0.9/main.c:106:20: note: Shadowed declaration vis-0.9/main.c:1226:19: note: Shadow variable vis-0.9/main.c:1522:6: style: Local variable 'count' shadows outer function [shadowFunction] vis-0.9/main.c:90:20: note: Shadowed declaration vis-0.9/main.c:1522:6: note: Shadow variable vis-0.9/main.c:1608:15: style: Local variable 'mark' shadows outer function [shadowFunction] vis-0.9/main.c:108:20: note: Shadowed declaration vis-0.9/main.c:1608:15: note: Shadow variable vis-0.9/main.c:1619:15: style: Local variable 'mark' shadows outer function [shadowFunction] vis-0.9/main.c:108:20: note: Shadowed declaration vis-0.9/main.c:1619:15: note: Shadow variable vis-0.9/main.c:1630:15: style: Local variable 'mark' shadows outer function [shadowFunction] vis-0.9/main.c:108:20: note: Shadowed declaration vis-0.9/main.c:1630:15: note: Shadow variable vis-0.9/main.c:1697:15: style: Local variable 'mark' shadows outer function [shadowFunction] vis-0.9/main.c:108:20: note: Shadowed declaration vis-0.9/main.c:1697:15: note: Shadow variable vis-0.9/main.c:1750:15: style: Local variable 'mark' shadows outer function [shadowFunction] vis-0.9/main.c:108:20: note: Shadowed declaration vis-0.9/main.c:1750:15: note: Shadow variable vis-0.9/main.c:1938:19: style: Local variable 'reg' shadows outer function [shadowFunction] vis-0.9/main.c:106:20: note: Shadowed declaration vis-0.9/main.c:1938:19: note: Shadow variable vis-0.9/main.c:1955:15: style: Local variable 'count' shadows outer function [shadowFunction] vis-0.9/main.c:90:20: note: Shadowed declaration vis-0.9/main.c:1955:15: note: Shadow variable vis-0.9/main.c:2035:6: style: Local variable 'count' shadows outer function [shadowFunction] vis-0.9/main.c:90:20: note: Shadowed declaration vis-0.9/main.c:2035:6: note: Shadow variable vis-0.9/main.c:2064:6: style: Local variable 'count' shadows outer function [shadowFunction] vis-0.9/main.c:90:20: note: Shadowed declaration vis-0.9/main.c:2064:6: note: Shadow variable vis-0.9/main.c:2107:7: style: Local variable 'count' shadows outer function [shadowFunction] vis-0.9/main.c:90:20: note: Shadowed declaration vis-0.9/main.c:2107:7: note: Shadow variable vis-0.9/main.c:1201:29: style: Parameter 'vis' can be declared as pointer to const. However it seems that 'nop' is a callback function, if 'vis' is declared with const you might also need to cast function pointer(s). [constParameterCallback] vis-0.9/main.c:1193:3: note: You might need to cast the function pointer here vis-0.9/main.c:1201:29: note: Parameter 'vis' can be declared as pointer to const vis-0.9/main.c:1358:56: style: Parameter 'r' can be declared as pointer to const [constParameterPointer] vis-0.9/main.c:1577:8: style: Variable 'txt' can be declared as pointer to const [constVariablePointer] vis-0.9/main.c:1637:13: style: Variable 'r1' can be declared as pointer to const [constVariablePointer] vis-0.9/main.c:1637:37: style: Variable 'r2' can be declared as pointer to const [constVariablePointer] vis-0.9/main.c:1679:42: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] vis-0.9/main.c:1679:52: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] vis-0.9/main.c:1681:13: style: Variable 'r1' can be declared as pointer to const [constVariablePointer] vis-0.9/main.c:1681:36: style: Variable 'r2' can be declared as pointer to const [constVariablePointer] vis-0.9/main.c:1714:43: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] vis-0.9/main.c:1714:57: style: Parameter 'universe' can be declared as pointer to const [constParameterPointer] vis-0.9/main.c:1717:14: style: Variable 'r' can be declared as pointer to const [constVariablePointer] vis-0.9/main.c:2211:51: style: Parameter 'siginfo' can be declared as pointer to const. However it seems that 'signal_handler' is a callback function, if 'siginfo' is declared with const you might also need to cast function pointer(s). [constParameterCallback] vis-0.9/main.c:2261:20: note: You might need to cast the function pointer here vis-0.9/main.c:2211:51: note: Parameter 'siginfo' can be declared as pointer to const vis-0.9/main.c:2211:66: style: Parameter 'context' can be declared as pointer to const. However it seems that 'signal_handler' is a callback function, if 'context' is declared with const you might also need to cast function pointer(s). [constParameterCallback] vis-0.9/main.c:2261:20: note: You might need to cast the function pointer here vis-0.9/main.c:2211:66: note: Parameter 'context' can be declared as pointer to const vis-0.9/main.c:2307:8: style: Variable 'cmd' can be declared as pointer to const [constVariablePointer] vis-0.9/map.c:66:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] vis-0.9/map.c:92:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] vis-0.9/map.c:175:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] vis-0.9/map.c:81:36: style:inconclusive: Function 'map_put' argument 2 names different: declaration 'key' definition 'k'. [funcArgNamesDifferent] vis-0.9/map.h:42:32: note: Function 'map_put' argument 2 names different: declaration 'key' definition 'k'. vis-0.9/map.c:81:36: note: Function 'map_put' argument 2 names different: declaration 'key' definition 'k'. vis-0.9/map.c:324:31: style: Parameter 'src' can be declared as pointer to const [constParameterPointer] vis-0.9/map.c:183:13: style: Variable 'c' is assigned a value that is never used. [unreadVariable] vis-0.9/sam.c:519:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] vis-0.9/sam.c:527:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRANSCRIPT_INSERT [valueFlowBailoutIncompleteVar] vis-0.9/sam.c:537:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRANSCRIPT_DELETE [valueFlowBailoutIncompleteVar] vis-0.9/sam.c:541:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRANSCRIPT_CHANGE [valueFlowBailoutIncompleteVar] vis-0.9/sam.c:578:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CMD_SHELL [valueFlowBailoutIncompleteVar] vis-0.9/sam.c:642:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CMD_TEXT [valueFlowBailoutIncompleteVar] vis-0.9/sam.c:678:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CMD_ARGV [valueFlowBailoutIncompleteVar] vis-0.9/sam.c:704:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CMD_REGEX [valueFlowBailoutIncompleteVar] vis-0.9/sam.c:871:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] vis-0.9/sam.c:954:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CMD_COUNT [valueFlowBailoutIncompleteVar] vis-0.9/sam.c:1174:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CMD_DESTRUCTIVE [valueFlowBailoutIncompleteVar] vis-0.9/sam.c:1263:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRANSCRIPT_DELETE [valueFlowBailoutIncompleteVar] vis-0.9/sam.c:1528:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] vis-0.9/sam.c:1595:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable w [valueFlowBailoutIncompleteVar] vis-0.9/sam.c:1712:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AT_FDCWD [valueFlowBailoutIncompleteVar] vis-0.9/vis-cmds.c:35:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CMD_ARGV [valueFlowBailoutIncompleteVar] vis-0.9/vis-cmds.c:219:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] vis-0.9/vis-cmds.c:394:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable s [valueFlowBailoutIncompleteVar] vis-0.9/vis-cmds.c:441:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] vis-0.9/vis-cmds.c:597:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] vis-0.9/vis-cmds.c:693:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CMD_FORCE [valueFlowBailoutIncompleteVar] vis-0.9/vis-cmds.c:793:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VERSION [valueFlowBailoutIncompleteVar] vis-0.9/sam.c:1220:45: style:inconclusive: Function 'sam_cmd' argument 2 names different: declaration 'cmd' definition 's'. [funcArgNamesDifferent] vis-0.9/sam.h:27:41: note: Function 'sam_cmd' argument 2 names different: declaration 'cmd' definition 's'. vis-0.9/sam.c:1220:45: note: Function 'sam_cmd' argument 2 names different: declaration 'cmd' definition 's'. vis-0.9/vis-cmds.c:21:75: style:inconclusive: Function 'vis_cmd_register' argument 4 names different: declaration 'context' definition 'data'. [funcArgNamesDifferent] vis-0.9/vis.h:844:71: note: Function 'vis_cmd_register' argument 4 names different: declaration 'context' definition 'data'. vis-0.9/vis-cmds.c:21:75: note: Function 'vis_cmd_register' argument 4 names different: declaration 'context' definition 'data'. vis-0.9/sam.c:1312:19: style: Local variable 's' shadows outer argument [shadowArgument] vis-0.9/sam.c:1220:45: note: Shadowed declaration vis-0.9/sam.c:1312:19: note: Shadow variable vis-0.9/sam.c:1627:8: style: Local variable 'text' shadows outer function [shadowFunction] vis-0.9/sam.c:1325:8: note: Shadowed declaration vis-0.9/sam.c:1627:8: note: Shadow variable vis-0.9/vis-cmds.c:288:17: style: Local variable 'opt' shadows outer variable [shadowVariable] vis-0.9/vis-cmds.c:174:13: note: Shadowed declaration vis-0.9/vis-cmds.c:288:17: note: Shadow variable vis-0.9/vis-cmds.c:299:17: style: Local variable 'opt' shadows outer variable [shadowVariable] vis-0.9/vis-cmds.c:174:13: note: Shadowed declaration vis-0.9/vis-cmds.c:299:17: note: Shadow variable vis-0.9/vis-cmds.c:310:17: style: Local variable 'opt' shadows outer variable [shadowVariable] vis-0.9/vis-cmds.c:174:13: note: Shadowed declaration vis-0.9/vis-cmds.c:310:17: note: Shadow variable vis-0.9/vis-cmds.c:546:16: style: Local variable 'options' shadows outer variable [shadowVariable] vis-0.9/sam.c:309:24: note: Shadowed declaration vis-0.9/vis-cmds.c:546:16: note: Shadow variable vis-0.9/vis-cmds.c:559:16: style: Local variable 'options' shadows outer variable [shadowVariable] vis-0.9/sam.c:309:24: note: Shadowed declaration vis-0.9/vis-cmds.c:559:16: note: Shadow variable vis-0.9/sam.c:476:75: style: Parameter 'range' can be declared as pointer to const [constParameterPointer] vis-0.9/sam.c:615:7: style: Variable 'delim' can be declared as const array [constVariable] vis-0.9/sam.c:883:46: style: Parameter 'vis' can be declared as pointer to const [constParameterPointer] vis-0.9/sam.c:902:8: style: Variable 'name' can be declared as const array [constVariable] vis-0.9/sam.c:1037:78: style: Parameter 'range' can be declared as pointer to const [constParameterPointer] vis-0.9/sam.c:1082:11: style: Variable 'marks' can be declared as pointer to const [constVariablePointer] vis-0.9/sam.c:1084:21: style: Variable 'sr' can be declared as pointer to const [constVariablePointer] vis-0.9/sam.c:1362:53: style: Parameter 'cmd' can be declared as pointer to const [constParameterPointer] vis-0.9/sam.c:1362:105: style: Parameter 'range' can be declared as pointer to const [constParameterPointer] vis-0.9/sam.c:1374:53: style: Parameter 'cmd' can be declared as pointer to const [constParameterPointer] vis-0.9/sam.c:1374:105: style: Parameter 'range' can be declared as pointer to const [constParameterPointer] vis-0.9/sam.c:1386:53: style: Parameter 'cmd' can be declared as pointer to const [constParameterPointer] vis-0.9/sam.c:1418:101: style: Parameter 'range' can be declared as pointer to const [constParameterPointer] vis-0.9/sam.c:1523:13: style: Variable 'primary' can be declared as pointer to const [constVariablePointer] vis-0.9/sam.c:1575:104: style: Parameter 'range' can be declared as pointer to const. However it seems that 'cmd_print' is a callback function, if 'range' is declared with const you might also need to cast function pointer(s). [constParameterCallback] vis-0.9/sam.c:1535:55: note: You might need to cast the function pointer here vis-0.9/sam.c:1575:104: note: Parameter 'range' can be declared as pointer to const vis-0.9/sam.c:1619:52: style: Parameter 'cmd' can be declared as pointer to const [constParameterPointer] vis-0.9/sam.c:1757:49: style: Parameter 'data' can be declared as pointer to const. However it seems that 'read_buffer' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] vis-0.9/vis-cmds.c:419:34: note: You might need to cast the function pointer here vis-0.9/sam.c:1757:49: note: Parameter 'data' can be declared as pointer to const vis-0.9/sam.c:1789:105: style: Parameter 'range' can be declared as pointer to const [constParameterPointer] vis-0.9/sam.c:1822:25: style: Parameter 'vis' can be declared as pointer to const [constParameterPointer] vis-0.9/sam.c:1822:35: style: Parameter 'win' can be declared as pointer to const [constParameterPointer] vis-0.9/sam.c:1822:49: style: Parameter 'cmd' can be declared as pointer to const [constParameterPointer] vis-0.9/sam.c:1822:85: style: Parameter 'sel' can be declared as pointer to const [constParameterPointer] vis-0.9/sam.c:1822:101: style: Parameter 'range' can be declared as pointer to const [constParameterPointer] vis-0.9/vis-cmds.c:123:51: style: Parameter 'cmd' can be declared as pointer to const. However it seems that 'cmd_user' is a callback function, if 'cmd' is declared with const you might also need to cast function pointer(s). [constParameterCallback] vis-0.9/vis-cmds.c:36:18: note: You might need to cast the function pointer here vis-0.9/vis-cmds.c:123:51: note: Parameter 'cmd' can be declared as pointer to const vis-0.9/vis-cmds.c:461:51: style: Parameter 'cmd' can be declared as pointer to const [constParameterPointer] vis-0.9/vis-cmds.c:517:51: style: Parameter 'cmd' can be declared as pointer to const [constParameterPointer] vis-0.9/vis-cmds.c:528:51: style: Parameter 'cmd' can be declared as pointer to const [constParameterPointer] vis-0.9/vis-cmds.c:582:8: style: Variable 'file' can be declared as pointer to const [constVariablePointer] vis-0.9/vis-cmds.c:688:14: style: Variable 'cmd' can be declared as pointer to const [constVariablePointer] vis-0.9/vis-cmds.c:915:50: style: Parameter 'cmd' can be declared as pointer to const [constParameterPointer] vis-0.9/test/core/array-test.c:27:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] vis-0.9/test/core/array-test.c:100:62: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] vis-0.9/test/core/array-test.c:143:66: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] vis-0.9/test/core/array-test.c:19:32: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] vis-0.9/test/core/array-test.c:19:41: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] vis-0.9/test/core/array-test.c:51:7: style: Variable 'v' can be declared as pointer to const [constVariablePointer] vis-0.9/test/core/array-test.c:64:12: style: Variable 'tmp' can be declared as pointer to const [constVariablePointer] vis-0.9/test/core/array-test.c:150:20: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] vis-0.9/test/core/array-test.c:205:26: style: Parameter 'argv' can be declared as const array [constParameter] vis-0.9/test/core/array-test.c:106:20: error: Uninitialized variable: items[i].key [legacyUninitvar] vis-0.9/test/core/buffer-test.c:9:29: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] vis-0.9/test/core/buffer-test.c:13:30: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] vis-0.9/test/core/ccan-config.c:340:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] vis-0.9/test/core/ccan-config.c:564:43: error: Allocation with connect_args, printf doesn't release it. [leakNoVarFunctionCall] vis-0.9/test/core/ccan-config.c:313:4: error: Common realloc mistake: 'buffer' nulled but not freed upon failure [memleakOnRealloc] vis-0.9/test/core/ccan-config.c:419:5: warning: If memory allocation fails, then there is a possible null pointer dereference: dep [nullPointerOutOfMemory] vis-0.9/test/core/ccan-config.c:418:17: note: Assuming allocation function fails vis-0.9/test/core/ccan-config.c:418:17: note: Assignment 'dep=strdup(deps)', assigned value is 0 vis-0.9/test/core/ccan-config.c:419:5: note: Null pointer dereference vis-0.9/test/core/ccan-config.c:424:8: warning: If memory allocation fails, then there is a possible null pointer dereference: dep [nullPointerOutOfMemory] vis-0.9/test/core/ccan-config.c:418:17: note: Assuming allocation function fails vis-0.9/test/core/ccan-config.c:418:17: note: Assignment 'dep=strdup(deps)', assigned value is 0 vis-0.9/test/core/ccan-config.c:424:8: note: Null pointer dereference vis-0.9/test/core/ccan-config.c:374:14: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] vis-0.9/test/core/ccan-config.c:371:14: note: Assuming allocation function fails vis-0.9/test/core/ccan-config.c:371:14: note: Assignment 'ret=malloc(len)', assigned value is 0 vis-0.9/test/core/ccan-config.c:374:14: note: Null pointer addition vis-0.9/test/core/ccan-config.c:523:8: style: Variable 'cmd' can be declared as pointer to const [constVariablePointer] vis-0.9/test/core/ccan/compiler/test/compile_fail-printf.c:7:26: style: Parameter 'argv' can be declared as const array [constParameter] vis-0.9/test/core/ccan/compiler/test/run-is_compile_constant.c:4:26: style: Parameter 'argv' can be declared as const array [constParameter] vis-0.9/test/core/ccan/tap/tap.c:77:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] vis-0.9/test/core/ccan/tap/tap.c:152:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] vis-0.9/test/core/ccan/tap/tap.c:288:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] vis-0.9/test/core/ccan/tap/tap.c:335:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] vis-0.9/test/core/ccan/tap/tap.c:70:2: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] vis-0.9/test/core/ccan/tap/tap.c:144:2: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] vis-0.9/test/core/ccan/tap/tap.c:227:3: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] vis-0.9/test/core/ccan/tap/tap.c:384:3: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] vis-0.9/test/core/ccan/tap/test/run.c:52:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PIPE_BUF [valueFlowBailoutIncompleteVar] vis-0.9/test/core/ccan/tap/test/run.c:69:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] vis-0.9/test/core/map-test.c:55:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] vis-0.9/test/core/map-test.c:13:44: style: Parameter 'value' can be declared as pointer to const. However it seems that 'compare' is a callback function, if 'value' is declared with const you might also need to cast function pointer(s). [constParameterCallback] vis-0.9/test/core/map-test.c:74:19: note: You might need to cast the function pointer here vis-0.9/test/core/map-test.c:13:44: note: Parameter 'value' can be declared as pointer to const vis-0.9/test/core/map-test.c:26:7: style: Variable 'index' can be declared as pointer to const [constVariablePointer] vis-0.9/test/core/map-test.c:35:7: style: Variable 'index' can be declared as pointer to const [constVariablePointer] vis-0.9/test/core/text-test.c:109:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] vis-0.9/test/fuzz/buffer-fuzzer.c:57:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] vis-0.9/test/fuzz/buffer-fuzzer.c:86:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] vis-0.9/test/fuzz/buffer-fuzzer.c:20:6: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] vis-0.9/test/fuzz/buffer-fuzzer.c:27:6: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] vis-0.9/test/fuzz/buffer-fuzzer.c:64:40: style: Parameter 'buf' can be declared as pointer to const. However it seems that 'cmd_quit' is a callback function, if 'buf' is declared with const you might also need to cast function pointer(s). [constParameterCallback] vis-0.9/test/fuzz/buffer-fuzzer.c:76:10: note: You might need to cast the function pointer here vis-0.9/test/fuzz/buffer-fuzzer.c:64:40: note: Parameter 'buf' can be declared as pointer to const vis-0.9/test/fuzz/text-fuzzer.c:27:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLOCK_MONOTONIC [valueFlowBailoutIncompleteVar] vis-0.9/test/fuzz/text-fuzzer.c:50:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EPOS [valueFlowBailoutIncompleteVar] vis-0.9/test/fuzz/text-fuzzer.c:83:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EMARK [valueFlowBailoutIncompleteVar] vis-0.9/test/fuzz/text-fuzzer.c:143:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu64 [valueFlowBailoutIncompleteVar] vis-0.9/test/fuzz/text-fuzzer.c:175:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EPOS [valueFlowBailoutIncompleteVar] vis-0.9/test/fuzz/text-fuzzer.c:179:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EPOS [valueFlowBailoutIncompleteVar] vis-0.9/test/fuzz/text-fuzzer.c:183:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EPOS [valueFlowBailoutIncompleteVar] vis-0.9/test/fuzz/text-fuzzer.c:187:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EPOS [valueFlowBailoutIncompleteVar] vis-0.9/test/fuzz/text-fuzzer.c:195:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EMARK [valueFlowBailoutIncompleteVar] vis-0.9/test/fuzz/text-fuzzer.c:202:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EPOS [valueFlowBailoutIncompleteVar] vis-0.9/test/fuzz/text-fuzzer.c:215:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] vis-0.9/test/fuzz/text-fuzzer.c:269:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] vis-0.9/test/fuzz/text-fuzzer.c:314:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] vis-0.9/test/fuzz/text-fuzzer.c:151:6: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] vis-0.9/test/fuzz/text-fuzzer.c:82:7: style: Local variable 'mark' shadows outer variable [shadowVariable] vis-0.9/test/fuzz/text-fuzzer.c:20:13: note: Shadowed declaration vis-0.9/test/fuzz/text-fuzzer.c:82:7: note: Shadow variable vis-0.9/test/fuzz/text-fuzzer.c:149:7: style: Local variable 'data' shadows outer variable [shadowVariable] vis-0.9/test/fuzz/text-fuzzer.c:22:13: note: Shadowed declaration vis-0.9/test/fuzz/text-fuzzer.c:149:7: note: Shadow variable vis-0.9/test/fuzz/text-fuzzer.c:33:31: style: Parameter 'txt' can be declared as pointer to const. However it seems that 'pos_start' is a callback function, if 'txt' is declared with const you might also need to cast function pointer(s). [constParameterCallback] vis-0.9/test/fuzz/text-fuzzer.c:100:11: note: You might need to cast the function pointer here vis-0.9/test/fuzz/text-fuzzer.c:33:31: note: Parameter 'txt' can be declared as pointer to const vis-0.9/test/fuzz/text-fuzzer.c:224:38: style: Parameter 'txt' can be declared as pointer to const. However it seems that 'cmd_info' is a callback function, if 'txt' is declared with const you might also need to cast function pointer(s). [constParameterCallback] vis-0.9/test/fuzz/text-fuzzer.c:247:10: note: You might need to cast the function pointer here vis-0.9/test/fuzz/text-fuzzer.c:224:38: note: Parameter 'txt' can be declared as pointer to const vis-0.9/test/fuzz/text-fuzzer.c:235:38: style: Parameter 'txt' can be declared as pointer to const. However it seems that 'cmd_dump' is a callback function, if 'txt' is declared with const you might also need to cast function pointer(s). [constParameterCallback] vis-0.9/test/fuzz/text-fuzzer.c:248:10: note: You might need to cast the function pointer here vis-0.9/test/fuzz/text-fuzzer.c:235:38: note: Parameter 'txt' can be declared as pointer to const vis-0.9/test/fuzz/text-fuzzer.c:242:38: style: Parameter 'txt' can be declared as pointer to const. However it seems that 'cmd_quit' is a callback function, if 'txt' is declared with const you might also need to cast function pointer(s). [constParameterCallback] vis-0.9/test/fuzz/text-fuzzer.c:258:10: note: You might need to cast the function pointer here vis-0.9/test/fuzz/text-fuzzer.c:242:38: note: Parameter 'txt' can be declared as pointer to const vis-0.9/test/util/keys.c:16:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] vis-0.9/test/util/keys.c:24:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] vis-0.9/test/util/keys.c:36:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TERMKEY_KEYMOD_SHIFT [valueFlowBailoutIncompleteVar] vis-0.9/test/util/keys.c:146:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] vis-0.9/test/util/keys.c:30:2: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] vis-0.9/text-common.c:64:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIZE_MAX [valueFlowBailoutIncompleteVar] vis-0.9/text-io.c:51:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BLOCK_TYPE_MALLOC [valueFlowBailoutIncompleteVar] vis-0.9/text-io.c:89:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BLOCK_TYPE_MMAP_ORIG [valueFlowBailoutIncompleteVar] vis-0.9/text-io.c:97:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] vis-0.9/text-io.c:124:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BLOCK_TYPE_MALLOC [valueFlowBailoutIncompleteVar] vis-0.9/text-io.c:182:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AT_FDCWD [valueFlowBailoutIncompleteVar] vis-0.9/text-io.c:190:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] vis-0.9/text-io.c:233:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AT_FDCWD [valueFlowBailoutIncompleteVar] vis-0.9/text-io.c:271:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] vis-0.9/text-io.c:355:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_DIRECTORY [valueFlowBailoutIncompleteVar] vis-0.9/text-io.c:375:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_CREAT [valueFlowBailoutIncompleteVar] vis-0.9/text-io.c:446:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] vis-0.9/text-io.c:481:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] vis-0.9/text-io.c:497:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AT_FDCWD [valueFlowBailoutIncompleteVar] vis-0.9/text-io.c:505:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AT_FDCWD [valueFlowBailoutIncompleteVar] vis-0.9/text-io.c:516:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable start [valueFlowBailoutIncompleteVar] vis-0.9/text-io.c:530:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable start [valueFlowBailoutIncompleteVar] vis-0.9/text-io.c:309:7: style: Condition '!preserve_acl(oldfd,ctx->fd)' is always false [knownConditionTrueFalse] vis-0.9/text-io.c:309:20: note: Calling function 'preserve_acl' returns 1 vis-0.9/text-io.c:309:7: note: Condition '!preserve_acl(oldfd,ctx->fd)' is always false vis-0.9/text-io.c:309:40: style: Condition '!preserve_selinux_context(oldfd,ctx->fd)' is always false [knownConditionTrueFalse] vis-0.9/text-io.c:309:65: note: Calling function 'preserve_selinux_context' returns 1 vis-0.9/text-io.c:309:40: note: Condition '!preserve_selinux_context(oldfd,ctx->fd)' is always false vis-0.9/text-io.c:132:28: style: Parameter 'blk' can be declared as pointer to const [constParameterPointer] vis-0.9/text-io.c:397:9: style: Variable 'data' can be declared as pointer to const [constVariablePointer] vis-0.9/text-io.c:525:41: style: Parameter 'ctx' can be declared as pointer to const [constParameterPointer] vis-0.9/text-iterator.c:131:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MB_LEN_MAX [valueFlowBailoutIncompleteVar] vis-0.9/text-iterator.c:157:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MB_LEN_MAX [valueFlowBailoutIncompleteVar] vis-0.9/text-motions.c:195:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MB_LEN_MAX [valueFlowBailoutIncompleteVar] vis-0.9/text-motions.c:233:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MB_LEN_MAX [valueFlowBailoutIncompleteVar] vis-0.9/text-motions.c:629:61: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable REG_NOTBOL [valueFlowBailoutIncompleteVar] vis-0.9/text-motions.c:644:77: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable REG_NOTEOL [valueFlowBailoutIncompleteVar] vis-0.9/text-motions.c:23:25: style: Parameter 'txt' can be declared as pointer to const [constParameterPointer] vis-0.9/text-motions.c:27:23: style: Parameter 'txt' can be declared as pointer to const [constParameterPointer] vis-0.9/text-motions.c:31:29: style: Parameter 'txt' can be declared as pointer to const [constParameterPointer] vis-0.9/text-motions.c:37:29: style: Parameter 'txt' can be declared as pointer to const [constParameterPointer] vis-0.9/text-motions.c:43:34: style: Parameter 'txt' can be declared as pointer to const [constParameterPointer] vis-0.9/text-motions.c:49:34: style: Parameter 'txt' can be declared as pointer to const [constParameterPointer] vis-0.9/text-motions.c:55:31: style: Parameter 'txt' can be declared as pointer to const [constParameterPointer] vis-0.9/text-motions.c:84:31: style: Parameter 'txt' can be declared as pointer to const [constParameterPointer] vis-0.9/text-motions.c:116:29: style: Parameter 'txt' can be declared as pointer to const [constParameterPointer] vis-0.9/text-motions.c:122:30: style: Parameter 'txt' can be declared as pointer to const [constParameterPointer] vis-0.9/text-motions.c:145:28: style: Parameter 'txt' can be declared as pointer to const [constParameterPointer] vis-0.9/text-motions.c:151:29: style: Parameter 'txt' can be declared as pointer to const [constParameterPointer] vis-0.9/text-motions.c:264:34: style: Parameter 'txt' can be declared as pointer to const [constParameterPointer] vis-0.9/text-motions.c:273:34: style: Parameter 'txt' can be declared as pointer to const [constParameterPointer] vis-0.9/text-motions.c:295:52: style: Parameter 'r' can be declared as pointer to const [constParameterPointer] vis-0.9/text-motions.c:313:51: style: Parameter 'r' can be declared as pointer to const [constParameterPointer] vis-0.9/text-motions.c:320:51: style: Parameter 'r' can be declared as pointer to const [constParameterPointer] vis-0.9/text-motions.c:327:41: style: Parameter 'txt' can be declared as pointer to const [constParameterPointer] vis-0.9/text-motions.c:340:41: style: Parameter 'txt' can be declared as pointer to const [constParameterPointer] vis-0.9/text-motions.c:351:39: style: Parameter 'txt' can be declared as pointer to const [constParameterPointer] vis-0.9/text-motions.c:362:39: style: Parameter 'txt' can be declared as pointer to const [constParameterPointer] vis-0.9/text-motions.c:407:33: style: Parameter 'txt' can be declared as pointer to const [constParameterPointer] vis-0.9/text-motions.c:429:33: style: Parameter 'txt' can be declared as pointer to const [constParameterPointer] vis-0.9/text-motions.c:467:35: style: Parameter 'txt' can be declared as pointer to const [constParameterPointer] vis-0.9/text-motions.c:477:35: style: Parameter 'txt' can be declared as pointer to const [constParameterPointer] vis-0.9/text-motions.c:487:35: style: Parameter 'txt' can be declared as pointer to const [constParameterPointer] vis-0.9/text-motions.c:499:35: style: Parameter 'txt' can be declared as pointer to const [constParameterPointer] vis-0.9/text-motions.c:534:34: style: Parameter 'txt' can be declared as pointer to const [constParameterPointer] vis-0.9/text-objects.c:14:36: style: Parameter 'txt' can be declared as pointer to const [constParameterPointer] vis-0.9/text-objects.c:369:53: style: Parameter 'rin' can be declared as pointer to const [constParameterPointer] vis-0.9/text-objects.c:377:51: style: Parameter 'r' can be declared as pointer to const [constParameterPointer] vis-0.9/text-objects.c:383:34: style: Parameter 'txt' can be declared as pointer to const [constParameterPointer] vis-0.9/text-objects.c:383:50: style: Parameter 'rin' can be declared as pointer to const [constParameterPointer] vis-0.9/text-regex-tre.c:26:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRE_WCHAR [valueFlowBailoutIncompleteVar] vis-0.9/text-regex-tre.c:108:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable get_next_char [valueFlowBailoutIncompleteVar] vis-0.9/text-regex-tre.c:143:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rm_so [valueFlowBailoutIncompleteVar] vis-0.9/text-regex-tre.c:151:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable REG_NOMATCH [valueFlowBailoutIncompleteVar] vis-0.9/text-regex-tre.c:123:50: style:inconclusive: Function 'text_regex_compile' argument 2 names different: declaration 'pattern' definition 'string'. [funcArgNamesDifferent] vis-0.9/text-regex.h:18:44: note: Function 'text_regex_compile' argument 2 names different: declaration 'pattern' definition 'string'. vis-0.9/text-regex-tre.c:123:50: note: Function 'text_regex_compile' argument 2 names different: declaration 'pattern' definition 'string'. vis-0.9/text-regex-tre.c:89:9: style: Variable 'r' can be declared as pointer to const [constVariablePointer] vis-0.9/text-regex.c:45:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable REG_NOMATCH [valueFlowBailoutIncompleteVar] vis-0.9/text-regex.c:73:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable REG_NOMATCH [valueFlowBailoutIncompleteVar] vis-0.9/text-regex.c:18:50: style:inconclusive: Function 'text_regex_compile' argument 2 names different: declaration 'pattern' definition 'string'. [funcArgNamesDifferent] vis-0.9/text-regex.h:18:44: note: Function 'text_regex_compile' argument 2 names different: declaration 'pattern' definition 'string'. vis-0.9/text-regex.c:18:50: note: Function 'text_regex_compile' argument 2 names different: declaration 'pattern' definition 'string'. vis-0.9/text-regex.c:38:29: style: Parameter 'r' can be declared as pointer to const [constParameterPointer] vis-0.9/text-regex.c:42:37: style: Parameter 'txt' can be declared as pointer to const [constParameterPointer] vis-0.9/text-regex.c:42:73: style: Parameter 'r' can be declared as pointer to const [constParameterPointer] vis-0.9/text-regex.c:46:20: style: Variable 'end' can be declared as pointer to const [constVariablePointer] vis-0.9/text-regex.c:70:38: style: Parameter 'txt' can be declared as pointer to const [constParameterPointer] vis-0.9/text-regex.c:70:74: style: Parameter 'r' can be declared as pointer to const [constParameterPointer] vis-0.9/text-regex.c:74:20: style: Variable 'end' can be declared as pointer to const [constVariablePointer] vis-0.9/text-util.c:16:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable start [valueFlowBailoutIncompleteVar] vis-0.9/text-util.c:25:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable start [valueFlowBailoutIncompleteVar] vis-0.9/text-util.c:38:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable start [valueFlowBailoutIncompleteVar] vis-0.9/text-util.c:65:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] vis-0.9/text-util.c:96:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] vis-0.9/text.c:279:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable c [valueFlowBailoutIncompleteVar] vis-0.9/text.c:331:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable piece [valueFlowBailoutIncompleteVar] vis-0.9/text.c:349:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable piece [valueFlowBailoutIncompleteVar] vis-0.9/text.c:599:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] vis-0.9/text.c:774:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable p [valueFlowBailoutIncompleteVar] vis-0.9/text.c:794:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BLOCK_TYPE_MMAP_ORIG [valueFlowBailoutIncompleteVar] vis-0.9/text.c:803:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pos [valueFlowBailoutIncompleteVar] vis-0.9/text.c:546:23: style: Condition 'rev->seqhistory->seq' is always true [knownConditionTrueFalse] vis-0.9/text.c:540:16: note: Assuming that condition 'rev->seq==txt->history->seq' is not redundant vis-0.9/text.c:546:23: note: Condition 'rev->seqhistory->seq' is always true vis-0.9/text.c:144:9: style: Variable 'blk' can be declared as pointer to const [constVariablePointer] vis-0.9/text.c:151:46: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] vis-0.9/text.c:152:9: style: Variable 'blk' can be declared as pointer to const [constVariablePointer] vis-0.9/text.c:158:9: style: Variable 'end' can be declared as pointer to const [constVariablePointer] vis-0.9/text.c:632:41: style: Parameter 'meta' can be declared as pointer to const [constParameterPointer] vis-0.9/text.c:793:10: style: Variable 'blk' can be declared as pointer to const [constVariablePointer] vis-0.9/text.c:856:33: style: Parameter 'txt' can be declared as pointer to const [constParameterPointer] vis-0.9/text.c:881:40: style: Parameter 'txt' can be declared as pointer to const [constParameterPointer] vis-0.9/ui-terminal-curses.c:83:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] vis-0.9/ui-terminal-curses.c:94:67: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable COLORS [valueFlowBailoutIncompleteVar] vis-0.9/ui-terminal-curses.c:172:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable COLORS [valueFlowBailoutIncompleteVar] vis-0.9/ui-terminal-curses.c:186:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable COLOR_WHITE [valueFlowBailoutIncompleteVar] vis-0.9/ui-terminal-curses.c:240:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdscr [valueFlowBailoutIncompleteVar] vis-0.9/ui-terminal-curses.c:250:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OK [valueFlowBailoutIncompleteVar] vis-0.9/ui-terminal-curses.c:266:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdscr [valueFlowBailoutIncompleteVar] vis-0.9/ui-terminal-curses.c:271:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable COLORS [valueFlowBailoutIncompleteVar] vis-0.9/ui-terminal-curses.c:292:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UiTerm [valueFlowBailoutIncompleteVar] vis-0.9/ui-terminal-curses.c:166:41: style: Parameter 'ui' can be declared as pointer to const [constParameterPointer] vis-0.9/ui-terminal-curses.c:226:47: style: Parameter 'style' can be declared as pointer to const [constParameterPointer] vis-0.9/ui-terminal-curses.c:230:36: style: Parameter 'tui' can be declared as pointer to const [constParameterPointer] vis-0.9/ui-terminal-curses.c:245:37: style: Parameter 'tui' can be declared as pointer to const [constParameterPointer] vis-0.9/ui-terminal-curses.c:254:36: style: Parameter 'tui' can be declared as pointer to const [constParameterPointer] vis-0.9/ui-terminal-curses.c:270:33: style: Parameter 'ui' can be declared as pointer to const [constParameterPointer] vis-0.9/ui-terminal-curses.c:295:38: style: Parameter 'term' can be declared as pointer to const [constParameterPointer] vis-0.9/ui-terminal-curses.c:297:39: style: Parameter 'term' can be declared as pointer to const [constParameterPointer] vis-0.9/ui-terminal-vt100.c:86:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable r [valueFlowBailoutIncompleteVar] vis-0.9/ui-terminal-vt100.c:90:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable r [valueFlowBailoutIncompleteVar] vis-0.9/ui-terminal-vt100.c:95:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] vis-0.9/ui-terminal-vt100.c:177:36: style: Parameter 'tui' can be declared as pointer to const [constParameterPointer] vis-0.9/ui-terminal-vt100.c:179:37: style: Parameter 'tui' can be declared as pointer to const [constParameterPointer] vis-0.9/ui-terminal-vt100.c:183:35: style: Parameter 'tui' can be declared as pointer to const [constParameterPointer] vis-0.9/ui-terminal-vt100.c:187:38: style: Parameter 'tui' can be declared as pointer to const [constParameterPointer] vis-0.9/ui-terminal.c:80:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] vis-0.9/ui-terminal.c:411:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TIOCGWINSZ [valueFlowBailoutIncompleteVar] vis-0.9/ui-terminal.c:551:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable style_set [valueFlowBailoutIncompleteVar] vis-0.9/ui-terminal.c:612:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TERMKEY_FLAG_UTF8 [valueFlowBailoutIncompleteVar] vis-0.9/ui-terminal.c:619:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] vis-0.9/ui-terminal.c:650:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TERMKEY_RES_EOF [valueFlowBailoutIncompleteVar] vis-0.9/ui-terminal.c:685:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_CTYPE [valueFlowBailoutIncompleteVar] vis-0.9/ui-terminal.c:734:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable init [valueFlowBailoutIncompleteVar] vis-0.9/ui-terminal.c:251:32: portability: %zd in format string (no. 1) requires 'ssize_t' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] vis-0.9/ui-terminal.c:88:2: style: Statements following noreturn function 'ui_die()' will never be executed. [unreachableCode] vis-0.9/ui-terminal.c:313:10: style: Variable 'tui' can be declared as pointer to const [constVariablePointer] vis-0.9/ui-terminal.c:618:39: style: Parameter 'ui' can be declared as pointer to const [constParameterPointer] vis-0.9/ui-terminal.c:631:10: style: Variable 'tui' can be declared as pointer to const [constVariablePointer] vis-0.9/ui-terminal.c:715:10: style: Variable 'tui' can be declared as pointer to const [constVariablePointer] vis-0.9/ui-terminal-vt100.c:122:15: style: Variable 'style' can be declared as pointer to const [constVariablePointer] vis-0.9/view.c:177:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable start [valueFlowBailoutIncompleteVar] vis-0.9/view.c:299:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable data [valueFlowBailoutIncompleteVar] vis-0.9/view.c:399:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] vis-0.9/view.c:564:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable width [valueFlowBailoutIncompleteVar] vis-0.9/view.c:1272:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable prev [valueFlowBailoutIncompleteVar] vis-0.9/view.c:1377:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] vis-0.9/view.c:971:17: style: Condition 'postext)' is less than zero. [unsignedLessThanZero] vis-0.9/vis-menu.c:325:30: style: Variable 'maxstr' can be declared as pointer to const [constVariablePointer] vis-0.9/vis-menu.c:353:17: style: Variable 'result' is assigned a value that is never used. [unreadVariable] vis-0.9/vis-modes.c:73:21: style: Parameter 'vis' can be declared as pointer to const [constParameterPointer] vis-0.9/vis-modes.c:96:33: style: Parameter 'vis' can be declared as pointer to const [constParameterPointer] vis-0.9/vis-modes.c:143:51: style: Parameter 'old' can be declared as pointer to const. However it seems that 'vis_mode_normal_enter' is a callback function, if 'old' is declared with const you might also need to cast function pointer(s). [constParameterCallback] vis-0.9/vis-modes.c:265:12: note: You might need to cast the function pointer here vis-0.9/vis-modes.c:143:51: note: Parameter 'old' can be declared as pointer to const vis-0.9/vis-modes.c:189:51: style: Parameter 'old' can be declared as pointer to const. However it seems that 'vis_mode_visual_enter' is a callback function, if 'old' is declared with const you might also need to cast function pointer(s). [constParameterCallback] vis-0.9/vis-modes.c:272:12: note: You might need to cast the function pointer here vis-0.9/vis-modes.c:189:51: note: Parameter 'old' can be declared as pointer to const vis-0.9/vis-modes.c:197:56: style: Parameter 'old' can be declared as pointer to const. However it seems that 'vis_mode_visual_line_enter' is a callback function, if 'old' is declared with const you might also need to cast function pointer(s). [constParameterCallback] vis-0.9/vis-modes.c:282:12: note: You might need to cast the function pointer here vis-0.9/vis-modes.c:197:56: note: Parameter 'old' can be declared as pointer to const vis-0.9/vis-modes.c:207:56: style: Parameter 'new' can be declared as pointer to const. However it seems that 'vis_mode_visual_line_leave' is a callback function, if 'new' is declared with const you might also need to cast function pointer(s). [constParameterCallback] vis-0.9/vis-modes.c:283:12: note: You might need to cast the function pointer here vis-0.9/vis-modes.c:207:56: note: Parameter 'new' can be declared as pointer to const vis-0.9/vis-modes.c:220:51: style: Parameter 'new' can be declared as pointer to const. However it seems that 'vis_mode_visual_leave' is a callback function, if 'new' is declared with const you might also need to cast function pointer(s). [constParameterCallback] vis-0.9/vis-modes.c:273:12: note: You might need to cast the function pointer here vis-0.9/vis-modes.c:220:51: note: Parameter 'new' can be declared as pointer to const vis-0.9/vis-motions.c:99:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INCLUSIVE [valueFlowBailoutIncompleteVar] vis-0.9/vis-motions.c:264:41: style:inconclusive: Function 'vis_motion_register' argument 2 names different: declaration 'context' definition 'data'. [funcArgNamesDifferent] vis-0.9/vis.h:573:37: note: Function 'vis_motion_register' argument 2 names different: declaration 'context' definition 'data'. vis-0.9/vis-motions.c:264:41: note: Function 'vis_motion_register' argument 2 names different: declaration 'context' definition 'data'. vis-0.9/vis-motions.c:115:29: style: Parameter 'vis' can be declared as pointer to const. However it seems that 'to_right' is a callback function, if 'vis' is declared with const you might also need to cast function pointer(s). [constParameterCallback] vis-0.9/vis-motions.c:565:10: note: You might need to cast the function pointer here vis-0.9/vis-motions.c:115:29: note: Parameter 'vis' can be declared as pointer to const vis-0.9/vis-motions.c:130:28: style: Parameter 'vis' can be declared as pointer to const. However it seems that 'to_left' is a callback function, if 'vis' is declared with const you might also need to cast function pointer(s). [constParameterCallback] vis-0.9/vis-motions.c:561:10: note: You might need to cast the function pointer here vis-0.9/vis-motions.c:130:28: note: Parameter 'vis' can be declared as pointer to const vis-0.9/vis-motions.c:141:34: style: Parameter 'vis' can be declared as pointer to const. However it seems that 'to_line_right' is a callback function, if 'vis' is declared with const you might also need to cast function pointer(s). [constParameterCallback] vis-0.9/vis-motions.c:573:10: note: You might need to cast the function pointer here vis-0.9/vis-motions.c:141:34: note: Parameter 'vis' can be declared as pointer to const vis-0.9/vis-motions.c:160:33: style: Parameter 'vis' can be declared as pointer to const. However it seems that 'to_line_left' is a callback function, if 'vis' is declared with const you might also need to cast function pointer(s). [constParameterCallback] vis-0.9/vis-motions.c:569:10: note: You might need to cast the function pointer here vis-0.9/vis-motions.c:160:33: note: Parameter 'vis' can be declared as pointer to const vis-0.9/vis-motions.c:205:31: style: Parameter 'vis' can be declared as pointer to const. However it seems that 'window_nop' is a callback function, if 'vis' is declared with const you might also need to cast function pointer(s). [constParameterCallback] vis-0.9/vis-motions.c:621:10: note: You might need to cast the function pointer here vis-0.9/vis-motions.c:205:31: note: Parameter 'vis' can be declared as pointer to const vis-0.9/vis-motions.c:205:41: style: Parameter 'win' can be declared as pointer to const. However it seems that 'window_nop' is a callback function, if 'win' is declared with const you might also need to cast function pointer(s). [constParameterCallback] vis-0.9/vis-motions.c:621:10: note: You might need to cast the function pointer here vis-0.9/vis-motions.c:205:41: note: Parameter 'win' can be declared as pointer to const vis-0.9/vis-motions.c:235:39: style: Parameter 'txt' can be declared as pointer to const. However it seems that 'percent' is a callback function, if 'txt' is declared with const you might also need to cast function pointer(s). [constParameterCallback] vis-0.9/vis-motions.c:625:10: note: You might need to cast the function pointer here vis-0.9/vis-motions.c:235:39: note: Parameter 'txt' can be declared as pointer to const vis-0.9/vis-motions.c:242:36: style: Parameter 'txt' can be declared as pointer to const. However it seems that 'byte' is a callback function, if 'txt' is declared with const you might also need to cast function pointer(s). [constParameterCallback] vis-0.9/vis-motions.c:629:10: note: You might need to cast the function pointer here vis-0.9/vis-motions.c:242:36: note: Parameter 'txt' can be declared as pointer to const vis-0.9/vis-motions.c:253:42: style: Parameter 'txt' can be declared as pointer to const. However it seems that 'byte_right' is a callback function, if 'txt' is declared with const you might also need to cast function pointer(s). [constParameterCallback] vis-0.9/vis-motions.c:637:10: note: You might need to cast the function pointer here vis-0.9/vis-motions.c:253:42: note: Parameter 'txt' can be declared as pointer to const vis-0.9/vis-operators.c:128:67: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] vis-0.9/vis-operators.c:210:34: style: Parameter 'vis' can be declared as pointer to const [constParameterPointer] vis-0.9/vis-operators.c:210:45: style: Parameter 'txt' can be declared as pointer to const [constParameterPointer] vis-0.9/vis-prompt.c:66:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable REG_EXTENDED [valueFlowBailoutIncompleteVar] vis-0.9/vis-prompt.c:177:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CONFIG_LUA [valueFlowBailoutIncompleteVar] vis-0.9/vis-prompt.c:54:7: style: Variable 'win' can be declared as pointer to const [constVariablePointer] vis-0.9/vis-registers.c:85:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable start [valueFlowBailoutIncompleteVar] vis-0.9/vis-registers.c:106:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable REGISTER_NORMAL [valueFlowBailoutIncompleteVar] vis-0.9/vis-registers.c:129:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIZE_MAX [valueFlowBailoutIncompleteVar] vis-0.9/vis-registers.c:152:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIZE_MAX [valueFlowBailoutIncompleteVar] vis-0.9/vis-registers.c:190:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable REGISTER_NUMBER [valueFlowBailoutIncompleteVar] vis-0.9/vis-registers.c:24:49: style: Parameter 'data' can be declared as pointer to const. However it seems that 'read_buffer' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] vis-0.9/vis-registers.c:170:30: note: You might need to cast the function pointer here vis-0.9/vis-registers.c:24:49: note: Parameter 'data' can be declared as pointer to const vis-0.9/vis-registers.c:121:74: style: Parameter 'txt' can be declared as pointer to const [constParameterPointer] vis-0.9/vis-registers.c:121:90: style: Parameter 'range' can be declared as pointer to const [constParameterPointer] vis-0.9/vis-registers.c:199:41: style: Parameter 'vis' can be declared as pointer to const [constParameterPointer] vis-0.9/vis-registers.c:216:27: style: Parameter 'vis' can be declared as pointer to const [constParameterPointer] vis-0.9/vis-registers.c:256:61: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] vis-0.9/vis-registers.c:265:15: style: Variable 'string' can be declared as pointer to const [constVariablePointer] vis-0.9/vis-single.c:38:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LZMA_TELL_UNSUPPORTED_CHECK [valueFlowBailoutIncompleteVar] vis-0.9/vis-single.c:59:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LZMA_FINISH [valueFlowBailoutIncompleteVar] vis-0.9/vis-single.c:77:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] vis-0.9/vis-single.c:143:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_IGN [valueFlowBailoutIncompleteVar] vis-0.9/vis-single.c:95:89: style: Parameter 'ftwbuf' can be declared as pointer to const. However it seems that 'unlink_cb' is a callback function, if 'ftwbuf' is declared with const you might also need to cast function pointer(s). [constParameterCallback] vis-0.9/vis-single.c:159:20: note: You might need to cast the function pointer here vis-0.9/vis-single.c:95:89: note: Parameter 'ftwbuf' can be declared as pointer to const vis-0.9/vis-single.c:103:8: style: Variable 'tmpdir' can be declared as pointer to const [constVariablePointer] vis-0.9/vis-single.c:115:8: style: Variable 'old_path' can be declared as pointer to const [constVariablePointer] vis-0.9/vis-subprocess.c:86:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] vis-0.9/vis-subprocess.c:196:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WNOHANG [valueFlowBailoutIncompleteVar] vis-0.9/vis-subprocess.c:71:39: warning: Function 'vis_process_communicate' argument order different: declaration ', command, name, invalidator' definition 'vis, name, command, invalidator' [funcArgOrderDifferent] vis-0.9/vis-subprocess.h:26:34: note: Function 'vis_process_communicate' argument order different: declaration ', command, name, invalidator' definition 'vis, name, command, invalidator' vis-0.9/vis-subprocess.c:71:39: note: Function 'vis_process_communicate' argument order different: declaration ', command, name, invalidator' definition 'vis, name, command, invalidator' vis-0.9/vis-subprocess.c:186:41: style: Parameter 'readfds' can be declared as pointer to const [constParameterPointer] vis-0.9/vis.c:195:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] vis-0.9/vis.c:677:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable REGISTER_BLACKHOLE [valueFlowBailoutIncompleteVar] vis-0.9/vis.c:851:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CHARWISE [valueFlowBailoutIncompleteVar] vis-0.9/vis.c:1076:80: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TERMKEY_FORMAT_VIM [valueFlowBailoutIncompleteVar] vis-0.9/vis.c:1108:71: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TERMKEY_FORMAT_VIM [valueFlowBailoutIncompleteVar] vis-0.9/vis.c:1311:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TERMKEY_TYPE_UNKNOWN_CSI [valueFlowBailoutIncompleteVar] vis-0.9/vis.c:1379:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable win [valueFlowBailoutIncompleteVar] vis-0.9/vis.c:1511:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] vis-0.9/vis.c:1594:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vis [valueFlowBailoutIncompleteVar] vis-0.9/vis.c:1602:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vis [valueFlowBailoutIncompleteVar] vis-0.9/vis.c:1706:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable REG_EXTENDED [valueFlowBailoutIncompleteVar] vis-0.9/vis.c:1753:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] vis-0.9/vis.c:1085:7: warning: Either the condition 'end-start-1<64' is redundant or the array 'key[64]' is accessed at index 64, which is out of bounds. [arrayIndexOutOfBoundsCond] vis-0.9/vis.c:1082:38: note: Assuming that condition 'end-start-1<64' is not redundant vis-0.9/vis.c:1085:7: note: Array index out of bounds vis-0.9/vis.c:702:35: portability: Non reentrant function 'getpwuid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwuid_r'. [prohibitedgetpwuidCalled] vis-0.9/vis.c:1066:2: style: Statements following noreturn function 'die()' will never be executed. [unreachableCode] vis-0.9/vis.c:158:33: style:inconclusive: Function 'absolute_path' argument 1 names different: declaration 'path' definition 'name'. [funcArgNamesDifferent] vis-0.9/vis-core.h:274:33: note: Function 'absolute_path' argument 1 names different: declaration 'path' definition 'name'. vis-0.9/vis.c:158:33: note: Function 'absolute_path' argument 1 names different: declaration 'path' definition 'name'. vis-0.9/vis.c:1269:42: style:inconclusive: Function 'vis_keys_feed' argument 2 names different: declaration 'keys' definition 'input'. [funcArgNamesDifferent] vis-0.9/vis.h:966:38: note: Function 'vis_keys_feed' argument 2 names different: declaration 'keys' definition 'input'. vis-0.9/vis.c:1269:42: note: Function 'vis_keys_feed' argument 2 names different: declaration 'keys' definition 'input'. vis-0.9/vis.c:1969:36: style:inconclusive: Function 'vis_cmd' argument 2 names different: declaration 'cmd' definition 'cmdline'. [funcArgNamesDifferent] vis-0.9/vis.h:829:32: note: Function 'vis_cmd' argument 2 names different: declaration 'cmd' definition 'cmdline'. vis-0.9/vis.c:1969:36: note: Function 'vis_cmd' argument 2 names different: declaration 'cmd' definition 'cmdline'. vis-0.9/vis.c:998:11: style: Local variable 'pos' shadows outer variable [shadowVariable] vis-0.9/vis.c:872:10: note: Shadowed declaration vis-0.9/vis.c:998:11: note: Shadow variable vis-0.9/vis.c:1083:9: style: Local variable 'key' shadows outer variable [shadowVariable] vis-0.9/vis.c:1072:13: note: Shadowed declaration vis-0.9/vis.c:1083:9: note: Shadow variable vis-0.9/vis.c:1242:10: style: Local variable 'tmp' shadows outer variable [shadowVariable] vis-0.9/vis.c:1181:8: note: Shadowed declaration vis-0.9/vis.c:1242:10: note: Shadow variable vis-0.9/vis.c:169:8: style: Variable 'dir' can be declared as pointer to const [constVariablePointer] vis-0.9/vis.c:170:8: style: Variable 'base' can be declared as pointer to const [constVariablePointer] vis-0.9/vis.c:454:33: style: Parameter 'win' can be declared as pointer to const [constParameterPointer] vis-0.9/vis.c:590:7: style: Variable 'win' can be declared as pointer to const [constVariablePointer] vis-0.9/vis.c:700:17: style: Variable 'pw' can be declared as pointer to const [constVariablePointer] vis-0.9/vis.c:701:8: style: Variable 'shell' can be declared as pointer to const [constVariablePointer] vis-0.9/vis.c:832:35: style: Parameter 'vis' can be declared as pointer to const [constParameterPointer] vis-0.9/vis.c:1170:48: style: Variable 'cur' can be declared as pointer to const [constVariablePointer] vis-0.9/vis.c:1187:11: style: Variable 'mode' can be declared as pointer to const [constVariablePointer] vis-0.9/vis.c:1498:31: style: Parameter 'vis' can be declared as pointer to const [constParameterPointer] vis-0.9/vis.c:1534:9: style: Variable 'macro' can be declared as pointer to const [constVariablePointer] vis-0.9/vis.c:1641:32: style: Parameter 'vis' can be declared as pointer to const [constParameterPointer] vis-0.9/vis.c:1722:8: style: Variable 'text' can be declared as pointer to const [constVariablePointer] vis-0.9/vis.c:1811:10: style: Variable 'name' can be declared as pointer to const [constVariablePointer] vis-0.9/vis.c:1945:49: style: Parameter 'data' can be declared as pointer to const. However it seems that 'read_buffer' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] vis-0.9/vis.c:1956:39: note: You might need to cast the function pointer here vis-0.9/vis.c:1945:49: note: Parameter 'data' can be declared as pointer to const vis-0.9/vis.c:1990:29: style: Parameter 'vis' can be declared as pointer to const [constParameterPointer] vis-0.9/vis.c:2005:22: style: Parameter 'vis' can be declared as pointer to const [constParameterPointer] vis-0.9/vis.c:1171:14: style: Variable 'prefix' is assigned a value that is never used. [unreadVariable] diff: 2.17.0 vis-0.9/test/core/ccan-config.c:374:14: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] vis-0.9/test/core/ccan-config.c:371:14: note: Assuming allocation function fails vis-0.9/test/core/ccan-config.c:371:14: note: Assignment 'ret=malloc(len)', assigned value is 0 vis-0.9/test/core/ccan-config.c:374:14: note: Null pointer addition head vis-0.9/test/core/ccan-config.c:374:14: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] vis-0.9/test/core/ccan-config.c:371:14: note: Assuming allocation function fails vis-0.9/test/core/ccan-config.c:371:14: note: Assignment 'ret=malloc(len)', assigned value is 0 vis-0.9/test/core/ccan-config.c:374:14: note: Null pointer addition head vis-0.9/vis-cmds.c:688:14: style: Variable 'cmd' can be declared as pointer to const [constVariablePointer] head vis-0.9/vis-menu.c:263:56: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] DONE