2024-04-13 12:36 ftp://ftp.de.debian.org/debian/pool/main/t/tmate-ssh-server/tmate-ssh-server_2.3.0-68-gd7334ee4.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --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 -D__GNUC__ --platform=unix64 -j4 platform: Linux-6.1.0-18-amd64-x86_64-with-glibc2.36 python: 3.11.2 client-version: 1.3.56 compiler: g++ (Debian 12.2.0-14) 12.2.0 cppcheck: head 2.13.0 head-info: 26da798 (2024-04-13 11:33:47 +0200) count: 565 390 elapsed-time: 13.7 13.4 head-timing-info: old-timing-info: head results: cfg.c:66:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] cfg.c:95:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] cfg.c:87:9: style: Variable 'delim' can be declared as const array [constVariable] alerts.c:286:34: style: Parameter 's' can be declared as pointer to const [constParameterPointer] client.c:80:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_WRONLY [valueFlowBailoutIncompleteVar] client.c:109:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_UNIX [valueFlowBailoutIncompleteVar] client.c:226:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] client.c:456:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] client.c:473:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] client.c:519:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WNOHANG [valueFlowBailoutIncompleteVar] client.c:634:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] client.c:722:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SA_RESTART [valueFlowBailoutIncompleteVar] client.c:294:16: portability: Non reentrant function 'ttyname' called. For threadsafe applications it is recommended to use the reentrant replacement function 'ttyname_r'. [prohibitedttynameCalled] client.c:219:15: style: Variable 'cmd' can be declared as pointer to const [constVariablePointer] client.c:553:42: style: Parameter 'arg' can be declared as pointer to const. However it seems that 'client_dispatch' is a callback function, if 'arg' is declared with const you might also need to cast function pointer(s). [constParameterCallback] client.c:286:47: note: You might need to cast the function pointer here client.c:553:42: note: Parameter 'arg' can be declared as pointer to const client.c:572:10: style: Variable 'data' can be declared as pointer to const [constVariablePointer] client.c:675:10: style: Variable 'data' can be declared as pointer to const [constVariablePointer] client.c:239:11: style: Variable 'cmdflags' is assigned a value that is never used. [unreadVariable] client.c:242:12: style: Variable 'cmdflags' is assigned a value that is never used. [unreadVariable] client.c:245:12: style: Variable 'cmdflags' is assigned a value that is never used. [unreadVariable] client.c:259:12: style: Variable 'cmdflags' is assigned a value that is never used. [unreadVariable] client.c:262:14: style: Variable 'cmdflags' is assigned a value that is never used. [unreadVariable] arguments.c:69:2: error: Memory leak: args.argv [memleak] arguments.c:43:29: style: Parameter 'a1' can be declared as pointer to const. However it seems that 'args_cmp' is a callback function, if 'a1' is declared with const you might also need to cast function pointer(s). [constParameterCallback] arguments.c:39:1: note: You might need to cast the function pointer here arguments.c:43:29: note: Parameter 'a1' can be declared as pointer to const arguments.c:43:52: style: Parameter 'a2' can be declared as pointer to const. However it seems that 'args_cmp' is a callback function, if 'a2' is declared with const you might also need to cast function pointer(s). [constParameterCallback] arguments.c:39:1: note: You might need to cast the function pointer here arguments.c:43:52: note: Parameter 'a2' can be declared as pointer to const arguments.c:230:21: style: Variable 'entry' can be declared as pointer to const [constVariablePointer] arguments.c:244:21: style: Variable 'entry' can be declared as pointer to const [constVariablePointer] cmd-break-pane.c:48:33: style: Parameter 'self' can be declared as pointer to const [constParameterPointer] cmd-break-pane.c:48:53: style: Parameter 'cmdq' can be declared as pointer to const [constParameterPointer] cmd-choose-client.c:116:19: style: Variable 'c' can be declared as pointer to const [constVariablePointer] cmd-choose-client.c:54:17: style: struct member 'cmd_choose_client_data::client' is never used. [unusedStructMember] cmd-command-prompt.c:125:11: style: Variable 'input' can be declared as pointer to const [constVariablePointer] cmd-capture-pane.c:53:55: style: Parameter 'line' can be declared as pointer to const [constParameterPointer] cmd-detach-client.c:63:18: style: Variable 's' can be declared as pointer to const [constVariablePointer] cmd-if-shell.c:68:22: style: Variable 'cmd' can be declared as pointer to const [constVariablePointer] cmd-if-shell.c:139:19: style: Variable 'cmd' can be declared as pointer to const [constVariablePointer] cmd-find.c:315:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] cmd-find.c:350:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] cmd-find.c:405:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] cmd-find.c:466:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] cmd-find.c:507:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] cmd-find.c:653:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] cmd-find.c:663:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] cmd-find.c:700:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] cmd-find.c:732:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] cmd-find.c:885:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] cmd-find.c:901:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] cmd-find.c:917:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] cmd-find.c:929:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] cmd-find.c:960:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] cmd-find.c:1223:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] cmd-join-pane.c:70:23: style: Parameter 'self' can be declared as pointer to const [constParameterPointer] cmd-join-pane.c:70:43: style: Parameter 'cmdq' can be declared as pointer to const [constParameterPointer] cmd-kill-pane.c:45:32: style: Parameter 'self' can be declared as pointer to const [constParameterPointer] cmd-kill-pane.c:45:52: style: Parameter 'cmdq' can be declared as pointer to const [constParameterPointer] cmd-kill-server.c:55:34: style: Parameter 'self' can be declared as pointer to const [constParameterPointer] cmd-kill-server.c:55:63: style: Parameter 'cmdq' can be declared as pointer to const [constParameterPointer] cmd-list-keys.c:64:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BUFSIZ [valueFlowBailoutIncompleteVar] cmd-list-clients.c:56:19: style: Variable 's' can be declared as pointer to const [constVariablePointer] cmd-lock-server.c:67:34: style: Parameter 'self' can be declared as pointer to const [constParameterPointer] cmd-load-buffer.c:56:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] cmd-move-window.c:79:8: style: Variable 'kflag' is reassigned a value before the old one has been used. [redundantAssignment] cmd-move-window.c:69:8: note: kflag is assigned cmd-move-window.c:79:8: note: kflag is overwritten cmd-move-window.c:80:8: style: Variable 'dflag' is reassigned a value before the old one has been used. [redundantAssignment] cmd-move-window.c:70:8: note: dflag is assigned cmd-move-window.c:80:8: note: dflag is overwritten cmd-load-buffer.c:78:16: warning: Either the condition 'c!=NULL' is redundant or there is possible null pointer dereference: c. [nullPointerRedundantCheck] cmd-load-buffer.c:76:8: note: Assuming that condition 'c!=NULL' is not redundant cmd-load-buffer.c:78:16: note: Null pointer dereference cmd-list.c:103:33: style: Parameter 'cmdlist' can be declared as pointer to const [constParameterPointer] cmd-load-buffer.c:53:19: style: Variable 's' can be declared as pointer to const [constVariablePointer] cmd-paste-buffer.c:50:35: style: Parameter 'self' can be declared as pointer to const [constParameterPointer] cmd-paste-buffer.c:50:55: style: Parameter 'cmdq' can be declared as pointer to const [constParameterPointer] cmd-pipe-pane.c:53:32: style: Parameter 'self' can be declared as pointer to const [constParameterPointer] cmd-pipe-pane.c:53:52: style: Parameter 'cmdq' can be declared as pointer to const [constParameterPointer] cmd-new-window.c:63:24: style: Variable 'envent' can be declared as pointer to const [constVariablePointer] cmd-queue.c:84:4: warning: Return value of function vasprintf() is not used. [ignoredReturnValue] cmd-queue.c:170:79: style: Parameter 'm' can be declared as pointer to const [constParameterPointer] cmd-find.c:96:6: warning: %d in format string (no. 3) requires 'int *' but the argument type is 'unsigned int *'. [invalidScanfArgType_int] cmd-find.c:269:10: warning: Either the condition 'wp!=NULL' is redundant or there is possible null pointer dereference: wp. [nullPointerRedundantCheck] cmd-find.c:271:10: note: Assuming that condition 'wp!=NULL' is not redundant cmd-find.c:269:10: note: Null pointer dereference cmd-rename-window.c:47:15: style: Variable 'args' can be declared as pointer to const [constVariablePointer] cmd-new-session.c:82:24: style: Variable 'envent' can be declared as pointer to const [constVariablePointer] cmd-resize-pane.c:48:34: style: Parameter 'self' can be declared as pointer to const [constParameterPointer] cmd-resize-pane.c:48:54: style: Parameter 'cmdq' can be declared as pointer to const [constParameterPointer] cmd-respawn-pane.c:47:35: style: Parameter 'self' can be declared as pointer to const [constParameterPointer] cmd-respawn-pane.c:47:55: style: Parameter 'cmdq' can be declared as pointer to const [constParameterPointer] cmd-respawn-window.c:46:37: style: Parameter 'self' can be declared as pointer to const [constParameterPointer] cmd-respawn-window.c:46:57: style: Parameter 'cmdq' can be declared as pointer to const [constParameterPointer] cmd-rotate-window.c:43:36: style: Parameter 'self' can be declared as pointer to const [constParameterPointer] cmd-rotate-window.c:43:56: style: Parameter 'cmdq' can be declared as pointer to const [constParameterPointer] cmd-save-buffer.c:67:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] cmd-select-layout.c:71:36: style: Parameter 'self' can be declared as pointer to const [constParameterPointer] cmd-select-layout.c:71:56: style: Parameter 'cmdq' can be declared as pointer to const [constParameterPointer] cmd-run-shell.c:120:18: style: Variable 'cmdq' can be declared as pointer to const [constVariablePointer] cmd-run-shell.c:146:8: style: Variable 'lines' is assigned a value that is never used. [unreadVariable] cmd-save-buffer.c:102:16: warning: Either the condition 'c!=NULL' is redundant or there is possible null pointer dereference: c. [nullPointerRedundantCheck] cmd-save-buffer.c:100:8: note: Assuming that condition 'c!=NULL' is not redundant cmd-save-buffer.c:102:16: note: Null pointer dereference cmd-send-keys.c:59:32: style: Parameter 'self' can be declared as pointer to const [constParameterPointer] cmd-send-keys.c:59:52: style: Parameter 'cmdq' can be declared as pointer to const [constParameterPointer] cmd-save-buffer.c:63:27: style: Variable 's' can be declared as pointer to const [constVariablePointer] cmd-select-window.c:86:18: style: Variable 'wl' can be declared as pointer to const [constVariablePointer] cmd-show-environment.c:50:51: style: Parameter 'envent' can be declared as pointer to const [constParameterPointer] cmd-show-messages.c:104:18: style: Variable 'c' can be declared as pointer to const [constVariablePointer] cmd-source-file.c:47:15: style: Variable 'args' can be declared as pointer to const [constVariablePointer] cmd-split-window.c:52:35: style: Parameter 'self' can be declared as pointer to const [constParameterPointer] cmd-split-window.c:52:55: style: Parameter 'cmdq' can be declared as pointer to const [constParameterPointer] cmd-swap-pane.c:46:32: style: Parameter 'self' can be declared as pointer to const [constParameterPointer] cmd-swap-pane.c:46:52: style: Parameter 'cmdq' can be declared as pointer to const [constParameterPointer] cmd-string.c:47:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] cmd-string.c:103:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] cmd-string.c:233:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIZE_MAX [valueFlowBailoutIncompleteVar] cmd-string.c:265:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] cmd-string.c:328:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] cmd-set-option.c:314:24: style: Variable 'o' can be declared as pointer to const [constVariablePointer] cmd-set-option.c:100:20: style: Unused variable: w [unusedVariable] cmd-swap-window.c:49:24: style: Variable 'sg_src' can be declared as pointer to const [constVariablePointer] cmd-swap-window.c:49:33: style: Variable 'sg_dst' can be declared as pointer to const [constVariablePointer] cmd-string.c:332:18: portability: Non reentrant function 'getpwuid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwuid_r'. [prohibitedgetpwuidCalled] cmd-string.c:346:13: portability: Non reentrant function 'getpwnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwnam_r'. [prohibitedgetpwnamCalled] cmd-string.c:254:26: style: Variable 'envent' can be declared as pointer to const [constVariablePointer] cmd-string.c:320:18: style: Variable 'pw' can be declared as pointer to const [constVariablePointer] cmd.c:316:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BUFSIZ [valueFlowBailoutIncompleteVar] cmd.c:452:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] colour.c:314:55: style: Variable 'found' can be declared as pointer to const [constVariablePointer] compat/cfmakeraw.c:25:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IGNBRK [valueFlowBailoutIncompleteVar] compat/fgetln.c:37:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] compat/forkpty-aix.c:38:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] compat/forkpty-hpux.c:34:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] compat/forkpty-aix.c:41:14: portability: Non reentrant function 'ttyname' called. For threadsafe applications it is recommended to use the reentrant replacement function 'ttyname_r'. [prohibitedttynameCalled] compat/forkpty-aix.c:29:57: style: Parameter 'tio' can be declared as pointer to const [constParameterPointer] compat/forkpty-hpux.c:28:50: style: Parameter 'tio' can be declared as pointer to const [constParameterPointer] compat/forkpty-sunos.c:35:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] compat/forkpty-sunos.c:29:50: style: Parameter 'tio' can be declared as pointer to const [constParameterPointer] compat/getopt.c:86:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] cmd.c:367:2: error: Memory leak: cmd.file [memleak] compat/getopt.c:68:13: warning: Identical inner 'if' condition is always true. [identicalInnerCondition] compat/getopt.c:67:12: note: outer condition: place[1] compat/getopt.c:68:13: note: identical inner condition: place[1] cmd.c:580:34: style: Parameter 'wp' can be declared as pointer to const [constParameterPointer] cmd.c:580:58: style: Parameter 'm' can be declared as pointer to const [constParameterPointer] cmd.c:610:38: style: Parameter 'm' can be declared as pointer to const [constParameterPointer] compat/imsg-buffer.c:77:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] compat/imsg-buffer.c:147:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IOV_MAX [valueFlowBailoutIncompleteVar] compat/imsg-buffer.c:202:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entry [valueFlowBailoutIncompleteVar] compat/imsg-buffer.c:225:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IOV_MAX [valueFlowBailoutIncompleteVar] compat/imsg-buffer.c:293:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entry [valueFlowBailoutIncompleteVar] compat/imsg-buffer.c:300:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entry [valueFlowBailoutIncompleteVar] compat/imsg.c:54:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] compat/imsg.c:110:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] compat/imsg.c:172:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] compat/imsg.c:226:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable iov_len [valueFlowBailoutIncompleteVar] compat/imsg.c:252:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] compat/imsg.c:313:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entry [valueFlowBailoutIncompleteVar] compat/imsg-buffer.c:117:24: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] compat/imsg-buffer.c:127:24: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] compat/imsg-buffer.c:133:24: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] compat/imsg-buffer.c:156:26: error: Uninitialized variable: buf->buf [uninitvar] compat/imsg-buffer.c:154:9: note: Assuming condition is false compat/imsg-buffer.c:156:26: note: Uninitialized variable: buf->buf compat/imsg-buffer.c:242:26: error: Uninitialized variable: buf->buf [uninitvar] compat/imsg-buffer.c:240:9: note: Assuming condition is false compat/imsg-buffer.c:242:26: note: Uninitialized variable: buf->buf compat/openat.c:31:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_CREAT [valueFlowBailoutIncompleteVar] compat/reallocarray.c:35:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIZE_MAX [valueFlowBailoutIncompleteVar] compat/setenv.c:39:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable environ [valueFlowBailoutIncompleteVar] compat/imsg.c:53:15: style: Variable 'fds[i]' is reassigned a value before the old one has been used. [redundantAssignment] compat/imsg.c:52:10: note: fds[i] is assigned compat/imsg.c:53:15: note: fds[i] is overwritten compat/imsg.c:244:29: style: Parameter 'ibuf' can be declared as pointer to const [constParameterPointer] compat/fparseln.c:70:3: style: 'continue' is redundant since it is the last statement in a loop. [redundantContinue] compat/strtonum.c:42:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] compat/unvis.c:56:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UNVIS_END [valueFlowBailoutIncompleteVar] compat/unvis.c:235:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UNVIS_END [valueFlowBailoutIncompleteVar] compat/unvis.c:272:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UNVIS_END [valueFlowBailoutIncompleteVar] cmd-wait-for.c:62:39: style: Parameter 'wc1' can be declared as pointer to const. However it seems that 'wait_channel_cmp' is a callback function, if 'wc1' is declared with const you might also need to cast function pointer(s). [constParameterCallback] cmd-wait-for.c:59:1: note: You might need to cast the function pointer here cmd-wait-for.c:62:39: note: Parameter 'wc1' can be declared as pointer to const cmd-wait-for.c:62:65: style: Parameter 'wc2' can be declared as pointer to const. However it seems that 'wait_channel_cmp' is a callback function, if 'wc2' is declared with const you might also need to cast function pointer(s). [constParameterCallback] cmd-wait-for.c:59:1: note: You might need to cast the function pointer here cmd-wait-for.c:62:65: note: Parameter 'wc2' can be declared as pointer to const compat/unvis.c:215:8: style: Variable 'start' can be declared as pointer to const [constVariablePointer] compat/unvis.c:245:8: style: Variable 'start' can be declared as pointer to const [constVariablePointer] compat/vis.c:59:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VIS_ALL [valueFlowBailoutIncompleteVar] compat/vis.c:175:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VIS_ALL [valueFlowBailoutIncompleteVar] compat/vis.c:219:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] grid-view.c:76:5: style: Redundant assignment of 'px' to itself. [selfAssignment] grid-view.c:177:5: style: Redundant assignment of 'px' to itself. [selfAssignment] grid-view.c:194:5: style: Redundant assignment of 'px' to itself. [selfAssignment] grid-view.c:207:5: style: Redundant assignment of 'px' to itself. [selfAssignment] grid-view.c:52:20: style: Variable 'gl' can be declared as pointer to const [constVariablePointer] environ.c:36:35: style: Parameter 'envent1' can be declared as pointer to const. However it seems that 'environ_cmp' is a callback function, if 'envent1' is declared with const you might also need to cast function pointer(s). [constParameterCallback] environ.c:33:1: note: You might need to cast the function pointer here environ.c:36:35: note: Parameter 'envent1' can be declared as pointer to const environ.c:36:66: style: Parameter 'envent2' can be declared as pointer to const. However it seems that 'environ_cmp' is a callback function, if 'envent2' is declared with const you might also need to cast function pointer(s). [constParameterCallback] environ.c:33:1: note: You might need to cast the function pointer here environ.c:36:66: note: Parameter 'envent2' can be declared as pointer to const environ.c:182:21: style: Variable 'var' can be declared as pointer to const [constVariablePointer] compat/vis.c:158:8: style: Variable 'start' can be declared as pointer to const [constVariablePointer] compat/vis.c:169:16: style: Variable 'end' can be declared as pointer to const [constVariablePointer] compat/vis.c:232:8: style: Variable 'start' can be declared as pointer to const [constVariablePointer] format.c:225:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] format.c:276:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] format.c:725:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] input.c:871:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] input.c:1083:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] input.c:1138:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] input.c:1215:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] input.c:1433:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] input.c:1489:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] input.c:1510:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] input.c:1572:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] input.c:1620:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] input.c:1828:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] input.c:1844:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] input.c:1861:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] input.c:1893:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] input.c:1904:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] input.c:1914:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] input.c:1927:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] input.c:1944:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] input.c:1958:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] input.c:1978:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] grid.c:742:72: style:inconclusive: Function 'grid_reflow_copy' argument 3 names different: declaration 'l' definition 'src_gl'. [funcArgNamesDifferent] grid.c:48:68: note: Function 'grid_reflow_copy' argument 3 names different: declaration 'l' definition 'src_gl'. grid.c:742:72: note: Function 'grid_reflow_copy' argument 3 names different: declaration 'l' definition 'src_gl'. grid.c:68:27: style: Parameter 'gd' can be declared as pointer to const [constParameterPointer] grid.c:119:20: style: Variable 'gla' can be declared as pointer to const [constVariablePointer] grid.c:119:26: style: Variable 'glb' can be declared as pointer to const [constVariablePointer] grid.c:705:27: style: Variable 'srcl' can be declared as pointer to const [constVariablePointer] grid.c:742:72: style: Parameter 'src_gl' can be declared as pointer to const [constParameterPointer] input.c:918:15: style: Variable 'out' can be declared as pointer to const [constVariablePointer] input.c:962:31: style: Parameter 'ictx' can be declared as pointer to const [constParameterPointer] input.c:1134:28: style: Variable 'entry' can be declared as pointer to const [constVariablePointer] input.c:1207:34: style: Variable 'entry' can be declared as pointer to const [constVariablePointer] job.c:90:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] job.c:165:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SHUT_WR [valueFlowBailoutIncompleteVar] job.c:179:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable JOB_DEAD [valueFlowBailoutIncompleteVar] job.c:197:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable JOB_CLOSED [valueFlowBailoutIncompleteVar] job.c:93:12: warning: Either the condition 'nullfd<0' is redundant or dup2() argument nr 1 can have invalid value. The value is -1 but the valid values are '0:'. [invalidFunctionArg] job.c:91:14: note: Assuming that condition 'nullfd<0' is not redundant job.c:93:12: note: Invalid argument hooks.c:212:24: warning: Either the condition 'cmdq!=NULL' is redundant or there is possible null pointer dereference: cmdq. [nullPointerRedundantCheck] hooks.c:222:11: note: Assuming that condition 'cmdq!=NULL' is not redundant hooks.c:212:24: note: Null pointer dereference job.c:56:2: style:inconclusive: Statements following 'return' will never be executed. [unreachableCode] hooks.c:40:24: style: Parameter 'hook1' can be declared as pointer to const. However it seems that 'hooks_cmp' is a callback function, if 'hook1' is declared with const you might also need to cast function pointer(s). [constParameterCallback] hooks.c:33:1: note: You might need to cast the function pointer here hooks.c:40:24: note: Parameter 'hook1' can be declared as pointer to const hooks.c:40:44: style: Parameter 'hook2' can be declared as pointer to const. However it seems that 'hooks_cmp' is a callback function, if 'hook2' is declared with const you might also need to cast function pointer(s). [constParameterCallback] hooks.c:33:1: note: You might need to cast the function pointer here hooks.c:40:44: note: Parameter 'hook2' can be declared as pointer to const key-string.c:204:67: warning: Either the condition 'key<0x100000000000ULL' is redundant or strchr() argument nr 2 can have invalid value. The value is 1.759218604e+13 but the valid values are '0:255'. [invalidFunctionArg] key-string.c:204:10: note: Assuming that condition 'key<0x100000000000ULL' is not redundant key-string.c:204:67: note: Invalid argument key-string.c:291:17: style: Condition 'key>=32' is always true [knownConditionTrueFalse] key-string.c:286:10: note: Assuming that condition 'key<=32' is not redundant key-string.c:291:17: note: Condition 'key>=32' is always true log.c:124:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] log.c:59:23: style:inconclusive: Function 'init_logging' argument 1 names different: declaration 'log_level' definition '_log_level'. [funcArgNamesDifferent] tmux.h:2397:23: note: Function 'init_logging' argument 1 names different: declaration 'log_level' definition '_log_level'. log.c:59:23: note: Function 'init_logging' argument 1 names different: declaration 'log_level' definition '_log_level'. log.c:71:27: style: Parameter '_log_prefix' can be declared as pointer to const [constParameterPointer] log.c:83:18: style: Unused variable: tv [unusedVariable] log.c:129:1: error: va_list 'ap' was opened but not closed by va_end(). [va_end_missing] log.c:145:1: error: va_list 'ap' was opened but not closed by va_end(). [va_end_missing] names.c:31:36: style: Parameter 'w' can be declared as pointer to const [constParameterPointer] names.c:37:34: style: Parameter 'w' can be declared as pointer to const [constParameterPointer] options-table.c:923:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BUFSIZ [valueFlowBailoutIncompleteVar] format.c:656:4: style: Obsolescent function 'ctime_r' called. It is recommended to use 'strftime' instead. [prohibitedctime_rCalled] format.c:882:7: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] format.c:95:35: style: Parameter 'fj1' can be declared as pointer to const. However it seems that 'format_job_cmp' is a callback function, if 'fj1' is declared with const you might also need to cast function pointer(s). [constParameterCallback] format.c:91:1: note: You might need to cast the function pointer here format.c:95:35: note: Parameter 'fj1' can be declared as pointer to const format.c:95:59: style: Parameter 'fj2' can be declared as pointer to const. However it seems that 'format_job_cmp' is a callback function, if 'fj2' is declared with const you might also need to cast function pointer(s). [constParameterCallback] format.c:91:1: note: You might need to cast the function pointer here format.c:95:59: note: Parameter 'fj2' can be declared as pointer to const format.c:131:39: style: Parameter 'fe1' can be declared as pointer to const. However it seems that 'format_entry_cmp' is a callback function, if 'fe1' is declared with const you might also need to cast function pointer(s). [constParameterCallback] format.c:127:1: note: You might need to cast the function pointer here format.c:131:39: note: Parameter 'fe1' can be declared as pointer to const format.c:131:65: style: Parameter 'fe2' can be declared as pointer to const. However it seems that 'format_entry_cmp' is a callback function, if 'fe2' is declared with const you might also need to cast function pointer(s). [constParameterCallback] format.c:127:1: note: You might need to cast the function pointer here format.c:131:65: note: Parameter 'fe2' can be declared as pointer to const format.c:359:17: style: Variable 'w' can be declared as pointer to const [constVariablePointer] format.c:378:17: style: Variable 'w' can be declared as pointer to const [constVariablePointer] format.c:448:20: style: Variable 'gl' can be declared as pointer to const [constVariablePointer] format.c:471:22: style: Variable 'wp' can be declared as pointer to const [constVariablePointer] format.c:565:72: style: Parameter 'tv' can be declared as pointer to const [constParameterPointer] format.c:617:24: style: Variable 'envent' can be declared as pointer to const [constVariablePointer] format.c:877:13: style: Variable 'tm' can be declared as pointer to const [constVariablePointer] format.c:1169:10: style: Unused variable: status [unusedVariable] mode-key.c:526:39: style: Parameter 'mbind1' can be declared as pointer to const. However it seems that 'mode_key_cmp' is a callback function, if 'mbind1' is declared with const you might also need to cast function pointer(s). [constParameterCallback] mode-key.c:523:1: note: You might need to cast the function pointer here mode-key.c:526:39: note: Parameter 'mbind1' can be declared as pointer to const mode-key.c:526:72: style: Parameter 'mbind2' can be declared as pointer to const. However it seems that 'mode_key_cmp' is a callback function, if 'mbind2' is declared with const you might also need to cast function pointer(s). [constParameterCallback] mode-key.c:523:1: note: You might need to cast the function pointer here mode-key.c:526:72: note: Parameter 'mbind2' can be declared as pointer to const key-bindings.c:32:33: style: Parameter 'e1' can be declared as pointer to const. However it seems that 'key_table_cmp' is a callback function, if 'e1' is declared with const you might also need to cast function pointer(s). [constParameterCallback] key-bindings.c:28:1: note: You might need to cast the function pointer here key-bindings.c:32:33: note: Parameter 'e1' can be declared as pointer to const key-bindings.c:32:55: style: Parameter 'e2' can be declared as pointer to const. However it seems that 'key_table_cmp' is a callback function, if 'e2' is declared with const you might also need to cast function pointer(s). [constParameterCallback] key-bindings.c:28:1: note: You might need to cast the function pointer here key-bindings.c:32:55: note: Parameter 'e2' can be declared as pointer to const key-bindings.c:38:38: style: Parameter 'bd1' can be declared as pointer to const. However it seems that 'key_bindings_cmp' is a callback function, if 'bd1' is declared with const you might also need to cast function pointer(s). [constParameterCallback] key-bindings.c:27:1: note: You might need to cast the function pointer here key-bindings.c:38:38: note: Parameter 'bd1' can be declared as pointer to const key-bindings.c:38:63: style: Parameter 'bd2' can be declared as pointer to const. However it seems that 'key_bindings_cmp' is a callback function, if 'bd2' is declared with const you might also need to cast function pointer(s). [constParameterCallback] key-bindings.c:27:1: note: You might need to cast the function pointer here key-bindings.c:38:63: note: Parameter 'bd2' can be declared as pointer to const key-bindings.c:258:14: style: Variable 'cmd' can be declared as pointer to const [constVariablePointer] osdep-darwin.c:45:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PROC_PIDTBSDINFO [valueFlowBailoutIncompleteVar] osdep-darwin.c:55:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] options.c:65:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OPTIONS_STRING [valueFlowBailoutIncompleteVar] options.c:137:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OPTIONS_STRING [valueFlowBailoutIncompleteVar] options.c:154:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OPTIONS_STRING [valueFlowBailoutIncompleteVar] options.c:169:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OPTIONS_STRING [valueFlowBailoutIncompleteVar] options.c:184:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OPTIONS_NUMBER [valueFlowBailoutIncompleteVar] options.c:209:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OPTIONS_STRING [valueFlowBailoutIncompleteVar] options.c:224:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OPTIONS_STYLE [valueFlowBailoutIncompleteVar] osdep-dragonfly.c:49:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SACTIVE [valueFlowBailoutIncompleteVar] osdep-dragonfly.c:96:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] osdep-cygwin.c:50:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] osdep-cygwin.c:66:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAXPATHLEN [valueFlowBailoutIncompleteVar] osdep-aix.c:37:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] osdep-aix.c:62:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAXPATHLEN [valueFlowBailoutIncompleteVar] osdep-aix.c:29:39: style: Parameter 'tty' can be declared as pointer to const [constParameterPointer] osdep-freebsd.c:51:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SRUN [valueFlowBailoutIncompleteVar] osdep-freebsd.c:108:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] osdep-freebsd.c:138:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] osdep-linux.c:51:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] osdep-linux.c:67:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAXPATHLEN [valueFlowBailoutIncompleteVar] osdep-hpux.c:26:48: style: Parameter 'tty' can be declared as pointer to const [constParameterPointer] osdep-netbsd.c:43:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LSRUN [valueFlowBailoutIncompleteVar] osdep-netbsd.c:84:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CTL_KERN [valueFlowBailoutIncompleteVar] osdep-openbsd.c:48:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SRUN [valueFlowBailoutIncompleteVar] osdep-openbsd.c:87:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable kinfo_proc [valueFlowBailoutIncompleteVar] osdep-openbsd.c:143:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAXPATHLEN [valueFlowBailoutIncompleteVar] osdep-sunos.c:41:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] osdep-sunos.c:70:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAXPATHLEN [valueFlowBailoutIncompleteVar] osdep-sunos.c:32:30: style: Parameter 'tty' can be declared as pointer to const [constParameterPointer] osdep-unknown.c:26:48: style: Parameter 'tty' can be declared as pointer to const [constParameterPointer] options.c:154:6: warning: Either the condition '(o=options_find(oo,name))==NULL' is redundant or there is possible null pointer dereference: o. [nullPointerRedundantCheck] options.c:152:35: note: Assuming that condition '(o=options_find(oo,name))==NULL' is not redundant options.c:154:6: note: Null pointer dereference options.c:184:6: warning: Either the condition '(o=options_find(oo,name))==NULL' is redundant or there is possible null pointer dereference: o. [nullPointerRedundantCheck] options.c:182:35: note: Assuming that condition '(o=options_find(oo,name))==NULL' is not redundant options.c:184:6: note: Null pointer dereference options.c:224:6: warning: Either the condition '(o=options_find(oo,name))==NULL' is redundant or there is possible null pointer dereference: o. [nullPointerRedundantCheck] options.c:222:35: note: Assuming that condition '(o=options_find(oo,name))==NULL' is not redundant options.c:224:6: note: Null pointer dereference options.c:44:35: style: Parameter 'o1' can be declared as pointer to const. However it seems that 'options_cmp' is a callback function, if 'o1' is declared with const you might also need to cast function pointer(s). [constParameterCallback] options.c:39:1: note: You might need to cast the function pointer here options.c:44:35: note: Parameter 'o1' can be declared as pointer to const options.c:44:61: style: Parameter 'o2' can be declared as pointer to const. However it seems that 'options_cmp' is a callback function, if 'o2' is declared with const you might also need to cast function pointer(s). [constParameterCallback] options.c:39:1: note: You might need to cast the function pointer here options.c:44:61: note: Parameter 'o2' can be declared as pointer to const options.c:150:24: style: Variable 'o' can be declared as pointer to const [constVariablePointer] options.c:180:24: style: Variable 'o' can be declared as pointer to const [constVariablePointer] proc.c:61:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EV_READ [valueFlowBailoutIncompleteVar] proc.c:137:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EV_READ [valueFlowBailoutIncompleteVar] proc.c:228:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EVLOOP_ONCE [valueFlowBailoutIncompleteVar] proc.c:220:2: error: Memory leak: tp.name [memleak] proc.c:150:9: style: Variable 'vp' can be declared as pointer to const [constVariablePointer] proc.c:35:10: style: struct member 'tmuxproc::signalcb' is never used. [unusedStructMember] resize.c:171:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tqh_last [valueFlowBailoutIncompleteVar] resize.c:93:3: style:inconclusive: Statements following 'return' will never be executed. [unreachableCode] resize.c:52:22: style: Variable 'wp' can be declared as pointer to const [constVariablePointer] screen.c:264:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LINE_SEL_NONE [valueFlowBailoutIncompleteVar] screen.c:245:59: style: Parameter 'gc' can be declared as pointer to const [constParameterPointer] screen.c:271:21: style: Variable 'sel' can be declared as pointer to const [constVariablePointer] screen-write.c:45:53: style: Parameter 'ctx' can be declared as pointer to const [constParameterPointer] screen-write.c:307:18: style: Variable 's' can be declared as pointer to const [constVariablePointer] screen-redraw.c:56:48: style: Parameter 'wp' can be declared as pointer to const [constParameterPointer] screen-write.c:309:20: style: Variable 'gl' can be declared as pointer to const [constVariablePointer] screen-redraw.c:87:18: style: Variable 'w' can be declared as pointer to const [constVariablePointer] screen-write.c:487:20: style: Variable 'gl' can be declared as pointer to const [constVariablePointer] screen-redraw.c:107:18: style: Variable 'w' can be declared as pointer to const [constVariablePointer] screen-redraw.c:363:18: style: Variable 'w' can be declared as pointer to const [constVariablePointer] server.c:111:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_UNIX [valueFlowBailoutIncompleteVar] server.c:305:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IRUSR [valueFlowBailoutIncompleteVar] server.c:326:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EV_READ [valueFlowBailoutIncompleteVar] server.c:407:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WNOHANG [valueFlowBailoutIncompleteVar] server-client.c:1436:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] server-client.c:1485:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] server.c:124:3: error: Resource leak: fd [resourceLeak] server.c:128:3: error: Resource leak: fd [resourceLeak] server.c:83:34: style: Parameter 's' can be declared as pointer to const [constParameterPointer] server.c:83:53: style: Parameter 'wl' can be declared as pointer to const [constParameterPointer] server.c:83:77: style: Parameter 'wp' can be declared as pointer to const [constParameterPointer] server.c:211:17: style: Variable 'c' can be declared as pointer to const [constVariablePointer] server.c:453:22: style: Variable 'wp' can be declared as pointer to const [constVariablePointer] server.c:374:6: style: Unused variable: fd [unusedVariable] server-fn.c:33:37: style: Parameter 's' can be declared as pointer to const [constParameterPointer] server-fn.c:63:39: style: Parameter 's' can be declared as pointer to const [constParameterPointer] server-fn.c:76:24: style: Variable 'sg' can be declared as pointer to const [constVariablePointer] server-fn.c:87:39: style: Parameter 's' can be declared as pointer to const [constParameterPointer] server-fn.c:100:24: style: Variable 'sg' can be declared as pointer to const [constVariablePointer] server-fn.c:123:45: style: Parameter 'w' can be declared as pointer to const [constParameterPointer] server-fn.c:162:37: style: Parameter 's' can be declared as pointer to const [constParameterPointer] server-fn.c:200:24: style: Variable 'sg' can be declared as pointer to const [constVariablePointer] server-fn.c:236:24: style: Variable 'srcsg' can be declared as pointer to const [constVariablePointer] server-fn.c:236:32: style: Variable 'dstsg' can be declared as pointer to const [constVariablePointer] server-fn.c:350:24: style: Variable 'sg' can be declared as pointer to const [constVariablePointer] server-fn.c:364:37: style: Parameter 's' can be declared as pointer to const [constParameterPointer] paste.c:76:40: style: Parameter 'pb' can be declared as pointer to const [constParameterPointer] paste.c:83:40: style: Parameter 'pb' can be declared as pointer to const [constParameterPointer] paste.c:185:28: style: Variable 'pb_new' can be declared as pointer to const [constVariablePointer] paste.c:277:40: style: Parameter 'pb' can be declared as pointer to const [constParameterPointer] status.c:93:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] status.c:133:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] style.c:121:34: style: Parameter 'gc' can be declared as pointer to const [constParameterPointer] style.c:189:74: style: Parameter 'gc' can be declared as pointer to const [constParameterPointer] style.c:218:20: style: Variable 'gcp' can be declared as pointer to const [constVariablePointer] style.c:237:20: style: Variable 'gcp' can be declared as pointer to const [constVariablePointer] tmate-auth-keys.c:15:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ssh_key [valueFlowBailoutIncompleteVar] tmate-auth-keys.c:36:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SSH_KEYTYPE_UNKNOWN [valueFlowBailoutIncompleteVar] tmate-auth-keys.c:70:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ssh_key [valueFlowBailoutIncompleteVar] tmate-auth-keys.c:118:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SSH_KEY_CMP_PUBLIC [valueFlowBailoutIncompleteVar] tmate-auth-keys.c:177:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_UNIX [valueFlowBailoutIncompleteVar] tmate-auth-keys.c:133:11: style: Checking if unsigned expression 'ret' is less than zero. [unsignedLessThanZero] tmate-auth-keys.c:144:11: style: Checking if unsigned expression 'ret' is less than zero. [unsignedLessThanZero] tmate-auth-keys.c:77:29: style: Parameter 'key' can be declared as pointer to const [constParameterPointer] tmate-auth-keys.c:77:40: style: Parameter 'value' can be declared as pointer to const [constParameterPointer] tmate-daemon-decoder.c:528:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MSGPACK_OBJECT_NIL [valueFlowBailoutIncompleteVar] tmate-daemon-decoder.c:179:3: warning: Either the condition '!wl' is redundant or there is possible null pointer dereference: wl. [nullPointerRedundantCheck] tmate-daemon-decoder.c:175:8: note: Assuming that condition '!wl' is not redundant tmate-daemon-decoder.c:179:3: note: Null pointer dereference tmate-daemon-decoder.c:180:7: warning: Either the condition '!wl' is redundant or there is possible null pointer dereference: wl. [nullPointerRedundantCheck] tmate-daemon-decoder.c:175:8: note: Assuming that condition '!wl' is not redundant tmate-daemon-decoder.c:180:7: note: Null pointer dereference tmate-daemon-decoder.c:201:23: warning: Either the condition '!wl' is redundant or there is possible null pointer dereference: wl. [nullPointerRedundantCheck] tmate-daemon-decoder.c:197:6: note: Assuming that condition '!wl' is not redundant tmate-daemon-decoder.c:201:23: note: Null pointer dereference tmate-daemon-decoder.c:221:2: warning: Either the condition '!s' is redundant or there is possible null pointer dereference: s. [nullPointerRedundantCheck] tmate-daemon-decoder.c:217:7: note: Assuming that condition '!s' is not redundant tmate-daemon-decoder.c:221:2: note: Null pointer dereference tmate-daemon-decoder.c:222:2: warning: Either the condition '!s' is redundant or there is possible null pointer dereference: s. [nullPointerRedundantCheck] tmate-daemon-decoder.c:217:7: note: Assuming that condition '!s' is not redundant tmate-daemon-decoder.c:222:2: note: Null pointer dereference tmate-daemon-decoder.c:242:15: warning: Either the condition '!wp' is redundant or there is possible null pointer dereference: wp. [nullPointerRedundantCheck] tmate-daemon-decoder.c:239:6: note: Assuming that condition '!wp' is not redundant tmate-daemon-decoder.c:242:15: note: Null pointer dereference tmate-daemon-decoder.c:245:2: warning: Either the condition '!wp' is redundant or there is possible null pointer dereference: wp. [nullPointerRedundantCheck] tmate-daemon-decoder.c:239:6: note: Assuming that condition '!wp' is not redundant tmate-daemon-decoder.c:245:2: note: Null pointer dereference tmate-daemon-decoder.c:513:2: warning: Either the condition '!wp' is redundant or there is possible null pointer dereference: wp. [nullPointerRedundantCheck] tmate-daemon-decoder.c:509:6: note: Assuming that condition '!wp' is not redundant tmate-daemon-decoder.c:513:2: note: Null pointer dereference tmate-daemon-decoder.c:523:6: warning: Either the condition '!wp' is redundant or there is possible null pointer dereference: wp. [nullPointerRedundantCheck] tmate-daemon-decoder.c:509:6: note: Assuming that condition '!wp' is not redundant tmate-daemon-decoder.c:523:6: note: Null pointer dereference tmate-daemon-decoder.c:351:56: style: Parameter 'session' can be declared as pointer to const [constParameterPointer] tmate-daemon-decoder.c:460:60: style: Parameter 'session' can be declared as pointer to const [constParameterPointer] tmate-daemon-decoder.c:461:40: style: Parameter 'uk' can be declared as pointer to const [constParameterPointer] tmate-daemon-encoder.c:28:8: style: Variable 'msg' can be declared as pointer to const [constVariablePointer] status.c:529:18: style: Variable 's' can be declared as pointer to const [constVariablePointer] status.c:216:14: style: Unused variable: template [unusedVariable] status.c:242:14: style: Unused variable: template [unusedVariable] session.c:44:29: style: Parameter 's1' can be declared as pointer to const. However it seems that 'session_cmp' is a callback function, if 's1' is declared with const you might also need to cast function pointer(s). [constParameterCallback] session.c:41:1: note: You might need to cast the function pointer here session.c:44:29: note: Parameter 's1' can be declared as pointer to const session.c:44:49: style: Parameter 's2' can be declared as pointer to const. However it seems that 'session_cmp' is a callback function, if 's2' is declared with const you might also need to cast function pointer(s). [constParameterCallback] session.c:41:1: note: You might need to cast the function pointer here session.c:44:49: note: Parameter 's2' can be declared as pointer to const session.c:54:31: style: Parameter 's' can be declared as pointer to const [constParameterPointer] session.c:107:59: style: Parameter 'tio' can be declared as pointer to const [constParameterPointer] session.c:111:18: style: Variable 'wl' can be declared as pointer to const [constVariablePointer] session.c:259:60: style: Parameter 'from' can be declared as pointer to const [constParameterPointer] session.c:407:47: style: Parameter 'w' can be declared as pointer to const [constParameterPointer] session.c:423:53: style: Parameter 'w' can be declared as pointer to const [constParameterPointer] session.c:538:36: style: Parameter 'target' can be declared as pointer to const [constParameterPointer] session.c:541:19: style: Variable 's' can be declared as pointer to const [constVariablePointer] session.c:554:43: style: Parameter 'sg' can be declared as pointer to const [constParameterPointer] session.c:556:26: style: Variable 'sg2' can be declared as pointer to const [constVariablePointer] session.c:607:43: style: Parameter 'sg' can be declared as pointer to const [constParameterPointer] session.c:609:18: style: Variable 's' can be declared as pointer to const [constVariablePointer] session.c:622:24: style: Variable 'sg' can be declared as pointer to const [constVariablePointer] session.c:640:24: style: Variable 'sg' can be declared as pointer to const [constVariablePointer] server-client.c:54:24: style: Variable 'envent' can be declared as pointer to const [constVariablePointer] server-client.c:305:18: style: Variable 's' can be declared as pointer to const [constVariablePointer] server-client.c:320:20: style: Variable 'w' can be declared as pointer to const [constVariablePointer] tmate-main.c:53:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] tmate-main.c:68:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_UNSPEC [valueFlowBailoutIncompleteVar] tmate-main.c:89:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_CTYPE [valueFlowBailoutIncompleteVar] tmate-main.c:176:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] tmate-main.c:310:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OK [valueFlowBailoutIncompleteVar] tmate-rand.c:8:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] tmate-msgpack.c:21:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EV_READ [valueFlowBailoutIncompleteVar] tmate-msgpack.c:166:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EV_READ [valueFlowBailoutIncompleteVar] tmate-msgpack.c:181:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MSGPACK_OBJECT_ARRAY [valueFlowBailoutIncompleteVar] tmate-msgpack.c:195:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] tmate-msgpack.c:214:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] tmate-msgpack.c:230:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] tmate-msgpack.c:271:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] tmate-main.c:254:7: portability: Non reentrant function 'getpwnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwnam_r'. [prohibitedgetpwnamCalled] tmate-main.c:74:3: error: Memory leak: info [memleak] tmate-main.c:259:8: warning: Either the condition '!pw' is redundant or there is possible null pointer dereference: pw. [nullPointerRedundantCheck] tmate-main.c:255:6: note: Assuming that condition '!pw' is not redundant tmate-main.c:259:8: note: Null pointer dereference tmate-main.c:260:8: warning: Either the condition '!pw' is redundant or there is possible null pointer dereference: pw. [nullPointerRedundantCheck] tmate-main.c:255:6: note: Assuming that condition '!pw' is not redundant tmate-main.c:260:8: note: Null pointer dereference tmate-main.c:233:28: style: Parameter 'fd_to_preserve' can be declared as pointer to const [constParameterPointer] tmate-main.c:250:17: style: Variable 'pw' can be declared as pointer to const [constVariablePointer] tmate-msgpack.c:117:28: style: Variable 'oend' can be declared as pointer to const [constVariablePointer] tmate-msgpack.c:135:31: style: Variable 'kvend' can be declared as pointer to const [constVariablePointer] tmate-ssh-client-pty.c:41:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SSH_REQUEST_CHANNEL [valueFlowBailoutIncompleteVar] tmate-ssh-client-pty.c:64:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] tmate-ssh-client-pty.c:97:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TIOCSWINSZ [valueFlowBailoutIncompleteVar] tmate-ssh-client-pty.c:13:24: style: Variable 'session' can be declared as pointer to const [constVariablePointer] tmate-ssh-latency.c:41:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SSH_ERROR [valueFlowBailoutIncompleteVar] tmate-ssh-server.c:143:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SSH_OK [valueFlowBailoutIncompleteVar] tmate-ssh-server.c:170:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SSH_AUTH_DENIED [valueFlowBailoutIncompleteVar] tmate-ssh-server.c:202:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EV_READ [valueFlowBailoutIncompleteVar] tmate-ssh-server.c:245:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SSH_OPTIONS_TIMEOUT [valueFlowBailoutIncompleteVar] tmate-ssh-server.c:288:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] tmate-ssh-server.c:383:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] tmate-ssh-server.c:402:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SSH_LOG_WARNING [valueFlowBailoutIncompleteVar] tmate-ssh-server.c:438:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WNOHANG [valueFlowBailoutIncompleteVar] tmux.c:161:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable F_GETFL [valueFlowBailoutIncompleteVar] tmate-websocket.c:281:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CONTROL_PROTOCOL_VERSION [valueFlowBailoutIncompleteVar] tmate-websocket.c:338:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BEV_EVENT_EOF [valueFlowBailoutIncompleteVar] tmate-websocket.c:371:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BEV_OPT_CLOSE_ON_FREE [valueFlowBailoutIncompleteVar] tty-acs.c:81:24: style: Variable 'entry' can be declared as pointer to const [constVariablePointer] tmate-ssh-server.c:348:19: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] tmate-websocket.c:395:9: style: Obsolescent function 'gethostbyname' called. It is recommended to use 'getaddrinfo' instead. [prohibitedgethostbynameCalled] tmate-websocket.c:400:24: warning: Either the condition '!host' is redundant or there is possible null pointer dereference: host. [nullPointerRedundantCheck] tmate-websocket.c:396:6: note: Assuming that condition '!host' is not redundant tmate-websocket.c:400:24: note: Null pointer dereference tmate-websocket.c:401:29: warning: Either the condition '!host' is redundant or there is possible null pointer dereference: host. [nullPointerRedundantCheck] tmate-websocket.c:396:6: note: Assuming that condition '!host' is not redundant tmate-websocket.c:401:29: note: Null pointer dereference tmate-websocket.c:219:62: style:inconclusive: Function 'tmate_notify_client_join' argument 1 names different: declaration 's' definition 'session'. [funcArgNamesDifferent] tmate.h:278:60: note: Function 'tmate_notify_client_join' argument 1 names different: declaration 's' definition 'session'. tmate-websocket.c:219:62: note: Function 'tmate_notify_client_join' argument 1 names different: declaration 's' definition 'session'. tmate-websocket.c:237:62: style:inconclusive: Function 'tmate_notify_client_left' argument 1 names different: declaration 's' definition 'session'. [funcArgNamesDifferent] tmate.h:279:60: note: Function 'tmate_notify_client_left' argument 1 names different: declaration 's' definition 'session'. tmate-websocket.c:237:62: note: Function 'tmate_notify_client_left' argument 1 names different: declaration 's' definition 'session'. tmate-websocket.c:102:17: style: Variable 'w' can be declared as pointer to const [constVariablePointer] tmate-websocket.c:206:27: style: Variable 'client' can be declared as pointer to const [constVariablePointer] tmate-websocket.c:336:71: style: Parameter 'session' can be declared as pointer to const. However it seems that 'on_websocket_event_default' is a callback function, if 'session' is declared with const you might also need to cast function pointer(s). [constParameterCallback] tmate-websocket.c:375:54: note: You might need to cast the function pointer here tmate-websocket.c:336:71: note: Parameter 'session' can be declared as pointer to const tmate-websocket.c:389:18: style: Variable 'host' can be declared as pointer to const [constVariablePointer] tty-term.c:274:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BUFSIZ [valueFlowBailoutIncompleteVar] tty-term.c:473:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cur_term [valueFlowBailoutIncompleteVar] tty-keys.c:574:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VERASE [valueFlowBailoutIncompleteVar] utf8.c:142:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MB_LEN_MAX [valueFlowBailoutIncompleteVar] tty-term.c:391:12: style: Variable 's' can be declared as pointer to const [constVariablePointer] tty-term.c:538:32: style: Parameter 'term' can be declared as pointer to const [constParameterPointer] tty-term.c:390:15: style: Unused variable: error [unusedVariable] tty.c:147:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_WRONLY [valueFlowBailoutIncompleteVar] tty.c:191:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TIOCGWINSZ [valueFlowBailoutIncompleteVar] tty.c:280:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EV_READ [valueFlowBailoutIncompleteVar] tty.c:346:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EV_READ [valueFlowBailoutIncompleteVar] tty.c:436:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] tty-keys.c:545:5: style: Suspicious condition (assignment + comparison); Clarify expression with parentheses. [clarifyCondition] tty-keys.c:366:15: style: Condition '*s>tk->ch' is always true [knownConditionTrueFalse] tty-keys.c:351:9: note: Assuming that condition '*s==tk->ch' is not redundant tty-keys.c:366:15: note: Condition '*s>tk->ch' is always true tty-keys.c:455:17: style: Condition '*buf>tk->ch' is always true [knownConditionTrueFalse] tty-keys.c:441:13: note: Assuming that condition 'tk->ch==*buf' is not redundant tty-keys.c:455:17: note: Condition '*buf>tk->ch' is always true tty-keys.c:470:19: style: Variable 'tk' can be declared as pointer to const [constVariablePointer] window-choose.c:101:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIZE_MAX [valueFlowBailoutIncompleteVar] window-choose.c:144:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIZE_MAX [valueFlowBailoutIncompleteVar] window-choose.c:360:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIZE_MAX [valueFlowBailoutIncompleteVar] window-choose.c:389:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable start_session [valueFlowBailoutIncompleteVar] window-choose.c:477:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIZE_MAX [valueFlowBailoutIncompleteVar] window-clock.c:214:7: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] window-clock.c:216:39: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] window-clock.c:205:15: style: Variable 'tm' can be declared as pointer to const [constVariablePointer] window-copy.c:492:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LINE_SEL_NONE [valueFlowBailoutIncompleteVar] window-copy.c:1235:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LINE_SEL_NONE [valueFlowBailoutIncompleteVar] window-copy.c:1289:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LINE_SEL_NONE [valueFlowBailoutIncompleteVar] window-copy.c:1605:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LINE_SEL_NONE [valueFlowBailoutIncompleteVar] window-copy.c:1653:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LINE_SEL_NONE [valueFlowBailoutIncompleteVar] window-copy.c:1679:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LINE_SEL_NONE [valueFlowBailoutIncompleteVar] window-copy.c:1795:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LINE_SEL_LEFT_RIGHT [valueFlowBailoutIncompleteVar] window-copy.c:1837:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LINE_SEL_LEFT_RIGHT [valueFlowBailoutIncompleteVar] window-choose.c:116:19: style: Variable 's' can be declared as pointer to const [constVariablePointer] window-choose.c:334:64: style: Parameter 's' can be declared as pointer to const [constParameterPointer] window-choose.c:338:29: style: Variable 'wcd' can be declared as pointer to const [constVariablePointer] window-choose.c:384:34: style: Variable 'item' can be declared as pointer to const [constVariablePointer] window-choose.c:385:19: style: Variable 'scr' can be declared as pointer to const [constVariablePointer] window-choose.c:386:24: style: Variable 'chosen' can be declared as pointer to const [constVariablePointer] window-choose.c:412:19: style: Variable 'scr' can be declared as pointer to const [constVariablePointer] window-choose.c:432:62: style: Parameter 's' can be declared as pointer to const [constParameterPointer] window-choose.c:436:29: style: Variable 'wcd' can be declared as pointer to const [constVariablePointer] window-choose.c:848:19: style: Variable 's' can be declared as pointer to const [constVariablePointer] window-choose.c:881:19: style: Variable 's' can be declared as pointer to const [constVariablePointer] window-choose.c:755:24: style: Variable 'xoff' is assigned a value that is never used. [unreadVariable] xmalloc.c:36:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] xmalloc.c:50:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] xmalloc.c:70:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] xmalloc.c:80:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] xmalloc.c:106:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] window.c:422:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tqh_last [valueFlowBailoutIncompleteVar] window.c:590:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tqh_last [valueFlowBailoutIncompleteVar] window.c:640:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tqh_last [valueFlowBailoutIncompleteVar] tty.c:438:3: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] tty.c:153:59: style: Parameter 'term' can be declared as pointer to const [constParameterPointer] tty.c:264:49: style: Parameter 'bufev' can be declared as pointer to const. However it seems that 'tty_error_callback' is a callback function, if 'bufev' is declared with const you might also need to cast function pointer(s). [constParameterCallback] tty.c:245:6: note: You might need to cast the function pointer here tty.c:264:49: note: Parameter 'bufev' can be declared as pointer to const tty.c:265:20: style: Parameter 'data' can be declared as pointer to const. However it seems that 'tty_error_callback' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] tty.c:245:6: note: You might need to cast the function pointer here tty.c:265:20: note: Parameter 'data' can be declared as pointer to const tty.c:423:21: style: Parameter 'tty' can be declared as pointer to const [constParameterPointer] tty.c:570:59: style: Parameter 's' can be declared as pointer to const [constParameterPointer] tty.c:665:39: style: Parameter 'tty' can be declared as pointer to const [constParameterPointer] tty.c:698:18: style: Variable 's' can be declared as pointer to const [constVariablePointer] tty.c:731:20: style: Variable 'gl' can be declared as pointer to const [constVariablePointer] tty.c:785:33: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] tty.c:785:56: style: Parameter 'wp' can be declared as pointer to const [constParameterPointer] tty.c:830:22: style: Variable 'wp' can be declared as pointer to const [constVariablePointer] tty.c:851:22: style: Variable 'wp' can be declared as pointer to const [constVariablePointer] tty.c:926:18: style: Variable 's' can be declared as pointer to const [constVariablePointer] tty.c:943:18: style: Variable 's' can be declared as pointer to const [constVariablePointer] tty.c:1029:18: style: Variable 's' can be declared as pointer to const [constVariablePointer] tty.c:1063:18: style: Variable 's' can be declared as pointer to const [constVariablePointer] tty.c:1091:18: style: Variable 's' can be declared as pointer to const [constVariablePointer] tty.c:1120:18: style: Variable 's' can be declared as pointer to const [constVariablePointer] tty.c:1175:22: style: Variable 'wp' can be declared as pointer to const [constVariablePointer] tty.c:1206:10: style: Variable 'str' can be declared as pointer to const [constVariablePointer] tty.c:1566:24: style: Variable 'rgb' can be declared as pointer to const [constVariablePointer] tty.c:1611:24: style: Variable 'rgb' can be declared as pointer to const [constVariablePointer] tty.c:155:8: style: Unused variable: path [unusedVariable] window-copy.c:1415:2: style:inconclusive: Statements following 'return' will never be executed. [unreachableCode] window-copy.c:735:19: style: Variable 's' can be declared as pointer to const [constVariablePointer] window-copy.c:832:19: style: Variable 's' can be declared as pointer to const [constVariablePointer] window-copy.c:850:17: style: Variable 'gd' can be declared as pointer to const [constVariablePointer] window-copy.c:1156:32: style: Variable 'data' can be declared as pointer to const [constVariablePointer] window-copy.c:1173:32: style: Variable 'data' can be declared as pointer to const [constVariablePointer] window-copy.c:1187:32: style: Variable 'data' can be declared as pointer to const [constVariablePointer] window-copy.c:1196:19: style: Variable 's' can be declared as pointer to const [constVariablePointer] window-copy.c:1486:21: style: Variable 'gl' can be declared as pointer to const [constVariablePointer] window-copy.c:1601:19: style: Variable 's' can be declared as pointer to const [constVariablePointer] window-copy.c:1602:17: style: Variable 'gd' can be declared as pointer to const [constVariablePointer] window-copy.c:1646:19: style: Variable 's' can be declared as pointer to const [constVariablePointer] window-copy.c:1647:17: style: Variable 'gd' can be declared as pointer to const [constVariablePointer] window-copy.c:1755:19: style: Variable 's' can be declared as pointer to const [constVariablePointer] window-copy.c:1805:19: style: Variable 's' can be declared as pointer to const [constVariablePointer] window-copy.c:2090:19: style: Variable 's' can be declared as pointer to const [constVariablePointer] window-copy.c:2120:19: style: Variable 's' can be declared as pointer to const [constVariablePointer] window-copy.c:2149:32: style: Variable 'data' can be declared as pointer to const [constVariablePointer] window-copy.c:2198:32: style: Variable 'data' can be declared as pointer to const [constVariablePointer] window.c:335:13: style: Condition 'window_pane_spawn(wp,argc,argv,path,shell,cwd,env,tio,cause)!=0' is always false [knownConditionTrueFalse] window.c:334:23: note: Calling function 'window_pane_spawn' returns 0 window.c:335:13: note: Condition 'window_pane_spawn(wp,argc,argv,path,shell,cwd,env,tio,cause)!=0' is always false window.c:71:27: style: Parameter 'w1' can be declared as pointer to const. However it seems that 'window_cmp' is a callback function, if 'w1' is declared with const you might also need to cast function pointer(s). [constParameterCallback] window.c:68:1: note: You might need to cast the function pointer here window.c:71:27: note: Parameter 'w1' can be declared as pointer to const window.c:71:46: style: Parameter 'w2' can be declared as pointer to const. However it seems that 'window_cmp' is a callback function, if 'w2' is declared with const you might also need to cast function pointer(s). [constParameterCallback] window.c:68:1: note: You might need to cast the function pointer here window.c:71:46: note: Parameter 'w2' can be declared as pointer to const window.c:79:29: style: Parameter 'wl1' can be declared as pointer to const. However it seems that 'winlink_cmp' is a callback function, if 'wl1' is declared with const you might also need to cast function pointer(s). [constParameterCallback] window.c:76:1: note: You might need to cast the function pointer here window.c:79:29: note: Parameter 'wl1' can be declared as pointer to const window.c:79:50: style: Parameter 'wl2' can be declared as pointer to const. However it seems that 'winlink_cmp' is a callback function, if 'wl2' is declared with const you might also need to cast function pointer(s). [constParameterCallback] window.c:76:1: note: You might need to cast the function pointer here window.c:79:50: note: Parameter 'wl2' can be declared as pointer to const window.c:87:37: style: Parameter 'wp1' can be declared as pointer to const. However it seems that 'window_pane_cmp' is a callback function, if 'wp1' is declared with const you might also need to cast function pointer(s). [constParameterCallback] window.c:84:1: note: You might need to cast the function pointer here window.c:87:37: note: Parameter 'wp1' can be declared as pointer to const window.c:87:62: style: Parameter 'wp2' can be declared as pointer to const. However it seems that 'window_pane_cmp' is a callback function, if 'wp2' is declared with const you might also need to cast function pointer(s). [constParameterCallback] window.c:84:1: note: You might need to cast the function pointer here window.c:87:62: note: Parameter 'wp2' can be declared as pointer to const window.c:93:61: style: Parameter 'w' can be declared as pointer to const [constParameterPointer] window.c:403:32: style: Parameter 'w' can be declared as pointer to const [constParameterPointer] window.c:403:55: style: Parameter 'wp' can be declared as pointer to const [constParameterPointer] window.c:405:22: style: Variable 'wp1' can be declared as pointer to const [constVariablePointer] window.c:458:37: style: Parameter 'w' can be declared as pointer to const [constParameterPointer] window.c:650:22: style: Variable 'wq' can be declared as pointer to const [constVariablePointer] window.c:665:35: style: Parameter 'w' can be declared as pointer to const [constParameterPointer] window.c:667:22: style: Variable 'wp' can be declared as pointer to const [constVariablePointer] window.c:690:40: style: Parameter 's' can be declared as pointer to const [constParameterPointer] window.c:690:59: style: Parameter 'wl' can be declared as pointer to const [constParameterPointer] window.c:833:39: style: Parameter 'wp' can be declared as pointer to const [constParameterPointer] window.c:834:75: style: Parameter 'env' can be declared as pointer to const [constParameterPointer] window.c:835:21: style: Parameter 'tio' can be declared as pointer to const [constParameterPointer] window.c:1045:68: style: Parameter 'gc' can be declared as pointer to const [constParameterPointer] window.c:1154:37: style: Parameter 'wp' can be declared as pointer to const [constParameterPointer] window.c:1154:56: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] window.c:1154:75: style: Parameter 's' can be declared as pointer to const [constParameterPointer] window.c:1155:39: style: Parameter 'm' can be declared as pointer to const [constParameterPointer] window.c:1200:17: style: Variable 'w' can be declared as pointer to const [constVariablePointer] window.c:1447:37: style: Parameter 'wl' can be declared as pointer to const [constParameterPointer] window.c:512:22: style: Unused variable: wp1 [unusedVariable] window.c:544:22: style: Unused variable: wp [unusedVariable] diff: head cfg.c:95:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head client.c:109:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_UNIX [valueFlowBailoutIncompleteVar] head client.c:226:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] head client.c:456:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head client.c:473:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head client.c:519:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WNOHANG [valueFlowBailoutIncompleteVar] head client.c:634:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head client.c:722:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SA_RESTART [valueFlowBailoutIncompleteVar] head cmd-break-pane.c:48:33: style: Parameter 'self' can be declared as pointer to const [constParameterPointer] head cmd-break-pane.c:48:53: style: Parameter 'cmdq' can be declared as pointer to const [constParameterPointer] head cmd-find.c:1223:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] head cmd-find.c:269:10: warning: Either the condition 'wp!=NULL' is redundant or there is possible null pointer dereference: wp. [nullPointerRedundantCheck] cmd-find.c:271:10: note: Assuming that condition 'wp!=NULL' is not redundant cmd-find.c:269:10: note: Null pointer dereference 2.13.0 cmd-find.c:271:10: style: Condition 'wp!=NULL' is always true [knownConditionTrueFalse] cmd-find.c:265:9: note: Assuming condition 'wp==NULL' is false cmd-find.c:271:10: note: Condition 'wp!=NULL' is always true head cmd-find.c:350:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] head cmd-find.c:405:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] head cmd-find.c:466:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] head cmd-find.c:507:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] head cmd-find.c:653:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] head cmd-find.c:663:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] head cmd-find.c:700:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] head cmd-find.c:732:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] head cmd-find.c:885:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] head cmd-find.c:901:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] head cmd-find.c:917:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] head cmd-find.c:929:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] head cmd-find.c:960:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] head cmd-join-pane.c:70:23: style: Parameter 'self' can be declared as pointer to const [constParameterPointer] head cmd-join-pane.c:70:43: style: Parameter 'cmdq' can be declared as pointer to const [constParameterPointer] head cmd-kill-pane.c:45:32: style: Parameter 'self' can be declared as pointer to const [constParameterPointer] head cmd-kill-pane.c:45:52: style: Parameter 'cmdq' can be declared as pointer to const [constParameterPointer] head cmd-kill-server.c:55:63: style: Parameter 'cmdq' can be declared as pointer to const [constParameterPointer] head cmd-paste-buffer.c:50:35: style: Parameter 'self' can be declared as pointer to const [constParameterPointer] head cmd-paste-buffer.c:50:55: style: Parameter 'cmdq' can be declared as pointer to const [constParameterPointer] head cmd-pipe-pane.c:53:32: style: Parameter 'self' can be declared as pointer to const [constParameterPointer] head cmd-pipe-pane.c:53:52: style: Parameter 'cmdq' can be declared as pointer to const [constParameterPointer] head cmd-resize-pane.c:48:34: style: Parameter 'self' can be declared as pointer to const [constParameterPointer] head cmd-resize-pane.c:48:54: style: Parameter 'cmdq' can be declared as pointer to const [constParameterPointer] head cmd-respawn-pane.c:47:35: style: Parameter 'self' can be declared as pointer to const [constParameterPointer] head cmd-respawn-pane.c:47:55: style: Parameter 'cmdq' can be declared as pointer to const [constParameterPointer] head cmd-respawn-window.c:46:37: style: Parameter 'self' can be declared as pointer to const [constParameterPointer] head cmd-respawn-window.c:46:57: style: Parameter 'cmdq' can be declared as pointer to const [constParameterPointer] head cmd-rotate-window.c:43:36: style: Parameter 'self' can be declared as pointer to const [constParameterPointer] head cmd-rotate-window.c:43:56: style: Parameter 'cmdq' can be declared as pointer to const [constParameterPointer] head cmd-select-layout.c:71:36: style: Parameter 'self' can be declared as pointer to const [constParameterPointer] head cmd-select-layout.c:71:56: style: Parameter 'cmdq' can be declared as pointer to const [constParameterPointer] head cmd-send-keys.c:59:32: style: Parameter 'self' can be declared as pointer to const [constParameterPointer] head cmd-send-keys.c:59:52: style: Parameter 'cmdq' can be declared as pointer to const [constParameterPointer] head cmd-split-window.c:52:35: style: Parameter 'self' can be declared as pointer to const [constParameterPointer] head cmd-split-window.c:52:55: style: Parameter 'cmdq' can be declared as pointer to const [constParameterPointer] head cmd-string.c:103:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] head cmd-string.c:233:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIZE_MAX [valueFlowBailoutIncompleteVar] head cmd-string.c:265:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] head cmd-string.c:328:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] head cmd-swap-pane.c:46:32: style: Parameter 'self' can be declared as pointer to const [constParameterPointer] head cmd-swap-pane.c:46:52: style: Parameter 'cmdq' can be declared as pointer to const [constParameterPointer] head cmd.c:452:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] head cmd.c:580:58: style: Parameter 'm' can be declared as pointer to const [constParameterPointer] 2.13.0 compat/fparseln.c:122:12: style: Condition 'nl' is always true [knownConditionTrueFalse] compat/fparseln.c:102:8: note: Assignment 'nl='\n'', assigned value is 10 compat/fparseln.c:110:30: note: Assuming condition is false compat/fparseln.c:122:12: note: Condition 'nl' is always true head compat/imsg-buffer.c:147:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IOV_MAX [valueFlowBailoutIncompleteVar] head compat/imsg-buffer.c:202:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entry [valueFlowBailoutIncompleteVar] head compat/imsg-buffer.c:225:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IOV_MAX [valueFlowBailoutIncompleteVar] head compat/imsg-buffer.c:293:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entry [valueFlowBailoutIncompleteVar] head compat/imsg-buffer.c:300:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entry [valueFlowBailoutIncompleteVar] head compat/imsg.c:110:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head compat/imsg.c:172:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head compat/imsg.c:226:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable iov_len [valueFlowBailoutIncompleteVar] head compat/imsg.c:252:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head compat/imsg.c:313:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entry [valueFlowBailoutIncompleteVar] head compat/unvis.c:235:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UNVIS_END [valueFlowBailoutIncompleteVar] head compat/unvis.c:272:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UNVIS_END [valueFlowBailoutIncompleteVar] head compat/vis.c:175:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VIS_ALL [valueFlowBailoutIncompleteVar] head compat/vis.c:219:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] 2.13.0 format.c:127:1: style: Parameter 'head' can be declared as pointer to const [constParameterPointer] head format.c:276:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] head format.c:725:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head grid-view.c:177:5: style: Redundant assignment of 'px' to itself. [selfAssignment] 2.13.0 grid-view.c:177:5: warning: Redundant assignment of 'px' to itself. [selfAssignment] head grid-view.c:194:5: style: Redundant assignment of 'px' to itself. [selfAssignment] 2.13.0 grid-view.c:194:5: warning: Redundant assignment of 'px' to itself. [selfAssignment] head grid-view.c:207:5: style: Redundant assignment of 'px' to itself. [selfAssignment] 2.13.0 grid-view.c:207:5: warning: Redundant assignment of 'px' to itself. [selfAssignment] head grid-view.c:76:5: style: Redundant assignment of 'px' to itself. [selfAssignment] 2.13.0 grid-view.c:76:5: warning: Redundant assignment of 'px' to itself. [selfAssignment] 2.13.0 hooks.c:33:1: style: Parameter 'head' can be declared as pointer to const [constParameterPointer] head input.c:1083:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] head input.c:1138:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] head input.c:1215:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] head input.c:1433:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] head input.c:1489:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] head input.c:1510:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] head input.c:1572:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] head input.c:1620:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] head input.c:1828:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] head input.c:1844:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] head input.c:1861:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] head input.c:1893:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] head input.c:1904:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] head input.c:1914:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] head input.c:1927:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] head input.c:1944:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] head input.c:1958:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] head input.c:1978:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] head input.c:962:31: style: Parameter 'ictx' can be declared as pointer to const [constParameterPointer] head job.c:165:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SHUT_WR [valueFlowBailoutIncompleteVar] head job.c:179:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable JOB_DEAD [valueFlowBailoutIncompleteVar] head job.c:197:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable JOB_CLOSED [valueFlowBailoutIncompleteVar] head names.c:31:36: style: Parameter 'w' can be declared as pointer to const [constParameterPointer] head names.c:37:34: style: Parameter 'w' can be declared as pointer to const [constParameterPointer] head options.c:137:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OPTIONS_STRING [valueFlowBailoutIncompleteVar] head options.c:154:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OPTIONS_STRING [valueFlowBailoutIncompleteVar] head options.c:169:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OPTIONS_STRING [valueFlowBailoutIncompleteVar] head options.c:184:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OPTIONS_NUMBER [valueFlowBailoutIncompleteVar] head options.c:209:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OPTIONS_STRING [valueFlowBailoutIncompleteVar] head options.c:224:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OPTIONS_STYLE [valueFlowBailoutIncompleteVar] 2.13.0 options.c:39:1: style: Parameter 'head' can be declared as pointer to const [constParameterPointer] head osdep-aix.c:62:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAXPATHLEN [valueFlowBailoutIncompleteVar] head osdep-cygwin.c:66:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAXPATHLEN [valueFlowBailoutIncompleteVar] head osdep-darwin.c:55:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] head osdep-dragonfly.c:96:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head osdep-freebsd.c:108:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head osdep-freebsd.c:138:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] head osdep-hpux.c:26:48: style: Parameter 'tty' can be declared as pointer to const [constParameterPointer] head osdep-linux.c:67:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAXPATHLEN [valueFlowBailoutIncompleteVar] head osdep-netbsd.c:84:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CTL_KERN [valueFlowBailoutIncompleteVar] head osdep-openbsd.c:143:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAXPATHLEN [valueFlowBailoutIncompleteVar] head osdep-openbsd.c:87:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable kinfo_proc [valueFlowBailoutIncompleteVar] head osdep-sunos.c:70:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAXPATHLEN [valueFlowBailoutIncompleteVar] head osdep-unknown.c:26:48: style: Parameter 'tty' can be declared as pointer to const [constParameterPointer] 2.13.0 paste.c:52:1: style: Parameter 'elm' can be declared as pointer to const [constParameterPointer] 2.13.0 paste.c:56:1: style: Parameter 'elm' can be declared as pointer to const [constParameterPointer] head proc.c:137:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EV_READ [valueFlowBailoutIncompleteVar] head proc.c:228:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EVLOOP_ONCE [valueFlowBailoutIncompleteVar] head screen-write.c:45:53: style: Parameter 'ctx' can be declared as pointer to const [constParameterPointer] head server-client.c:1436:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] head server-client.c:1485:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] 2.13.0 server-client.c:322:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] head server.c:305:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IRUSR [valueFlowBailoutIncompleteVar] head server.c:326:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EV_READ [valueFlowBailoutIncompleteVar] head server.c:407:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WNOHANG [valueFlowBailoutIncompleteVar] head status.c:133:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head tmate-auth-keys.c:118:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SSH_KEY_CMP_PUBLIC [valueFlowBailoutIncompleteVar] head tmate-auth-keys.c:177:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_UNIX [valueFlowBailoutIncompleteVar] head tmate-auth-keys.c:36:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SSH_KEYTYPE_UNKNOWN [valueFlowBailoutIncompleteVar] head tmate-auth-keys.c:70:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ssh_key [valueFlowBailoutIncompleteVar] head tmate-daemon-decoder.c:460:60: style: Parameter 'session' can be declared as pointer to const [constParameterPointer] head tmate-daemon-decoder.c:461:40: style: Parameter 'uk' can be declared as pointer to const [constParameterPointer] head tmate-main.c:176:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head tmate-main.c:310:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OK [valueFlowBailoutIncompleteVar] head tmate-main.c:68:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_UNSPEC [valueFlowBailoutIncompleteVar] head tmate-main.c:89:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_CTYPE [valueFlowBailoutIncompleteVar] head tmate-msgpack.c:166:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EV_READ [valueFlowBailoutIncompleteVar] head tmate-msgpack.c:181:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MSGPACK_OBJECT_ARRAY [valueFlowBailoutIncompleteVar] head tmate-msgpack.c:195:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] head tmate-msgpack.c:214:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] head tmate-msgpack.c:230:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] head tmate-msgpack.c:271:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] head tmate-ssh-client-pty.c:64:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head tmate-ssh-client-pty.c:97:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TIOCSWINSZ [valueFlowBailoutIncompleteVar] head tmate-ssh-server.c:170:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SSH_AUTH_DENIED [valueFlowBailoutIncompleteVar] head tmate-ssh-server.c:202:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EV_READ [valueFlowBailoutIncompleteVar] head tmate-ssh-server.c:245:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SSH_OPTIONS_TIMEOUT [valueFlowBailoutIncompleteVar] head tmate-ssh-server.c:288:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] head tmate-ssh-server.c:383:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] head tmate-ssh-server.c:402:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SSH_LOG_WARNING [valueFlowBailoutIncompleteVar] head tmate-ssh-server.c:438:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WNOHANG [valueFlowBailoutIncompleteVar] head tmate-websocket.c:338:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BEV_EVENT_EOF [valueFlowBailoutIncompleteVar] head tmate-websocket.c:371:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BEV_OPT_CLOSE_ON_FREE [valueFlowBailoutIncompleteVar] head tty-term.c:473:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cur_term [valueFlowBailoutIncompleteVar] head tty-term.c:538:32: style: Parameter 'term' can be declared as pointer to const [constParameterPointer] head tty.c:191:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TIOCGWINSZ [valueFlowBailoutIncompleteVar] head tty.c:264:49: style: Parameter 'bufev' can be declared as pointer to const. However it seems that 'tty_error_callback' is a callback function, if 'bufev' is declared with const you might also need to cast function pointer(s). [constParameterCallback] tty.c:245:6: note: You might need to cast the function pointer here tty.c:264:49: note: Parameter 'bufev' can be declared as pointer to const head tty.c:265:20: style: Parameter 'data' can be declared as pointer to const. However it seems that 'tty_error_callback' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] tty.c:245:6: note: You might need to cast the function pointer here tty.c:265:20: note: Parameter 'data' can be declared as pointer to const head tty.c:280:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EV_READ [valueFlowBailoutIncompleteVar] head tty.c:346:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EV_READ [valueFlowBailoutIncompleteVar] head tty.c:436:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head tty.c:665:39: style: Parameter 'tty' can be declared as pointer to const [constParameterPointer] head window-choose.c:144:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIZE_MAX [valueFlowBailoutIncompleteVar] head window-choose.c:360:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIZE_MAX [valueFlowBailoutIncompleteVar] head window-choose.c:389:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable start_session [valueFlowBailoutIncompleteVar] head window-choose.c:477:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIZE_MAX [valueFlowBailoutIncompleteVar] 2.13.0 window-clock.c:265:28: warning: Uninitialized variable: idx [uninitvar] head window-copy.c:1235:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LINE_SEL_NONE [valueFlowBailoutIncompleteVar] head window-copy.c:1289:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LINE_SEL_NONE [valueFlowBailoutIncompleteVar] head window-copy.c:1605:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LINE_SEL_NONE [valueFlowBailoutIncompleteVar] head window-copy.c:1653:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LINE_SEL_NONE [valueFlowBailoutIncompleteVar] head window-copy.c:1679:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LINE_SEL_NONE [valueFlowBailoutIncompleteVar] head window-copy.c:1795:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LINE_SEL_LEFT_RIGHT [valueFlowBailoutIncompleteVar] head window-copy.c:1837:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LINE_SEL_LEFT_RIGHT [valueFlowBailoutIncompleteVar] head window.c:1154:37: style: Parameter 'wp' can be declared as pointer to const [constParameterPointer] head window.c:1154:56: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] head window.c:1154:75: style: Parameter 's' can be declared as pointer to const [constParameterPointer] head window.c:1155:39: style: Parameter 'm' can be declared as pointer to const [constParameterPointer] head window.c:590:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tqh_last [valueFlowBailoutIncompleteVar] head window.c:640:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tqh_last [valueFlowBailoutIncompleteVar] head window.c:833:39: style: Parameter 'wp' can be declared as pointer to const [constParameterPointer] head window.c:834:75: style: Parameter 'env' can be declared as pointer to const [constParameterPointer] head window.c:835:21: style: Parameter 'tio' can be declared as pointer to const [constParameterPointer] head xmalloc.c:106:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head xmalloc.c:50:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head xmalloc.c:70:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head xmalloc.c:80:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] DONE