LineIdSeverityMessage
toys/posix/expand.c
36variableScopestyleThe scope of the variable 'len' can be reduced.
104invalidscanfportabilityscanf without field width limits can crash with huge input data on some versions of libc.
toys/posix/date.c
63invalidscanfportabilityscanf without field width limits can crash with huge input data on some versions of libc.
toys/pending/ftpget.c
132unusedVariablestyleUnused variable: ptr
toys/pending/fdisk.c
1330invalidPrintfArgType_uintwarning%lu in format string (no. 1) requires 'unsigned long' but the argument type is 'long'.
1349invalidPrintfArgType_uintwarning%lu in format string (no. 1) requires 'unsigned long' but the argument type is 'long'.
1367invalidPrintfArgType_uintwarning%lu in format string (no. 1) requires 'unsigned long' but the argument type is 'long'.
606selfAssignmentwarningRedundant assignment of 'new_start' to itself.
208variableScopestyleThe scope of the variable 'px' can be reduced.
567variableScopestyleThe scope of the variable 'q' can be reduced.
567variableScopestyleThe scope of the variable 'ext_p' can be reduced.
567variableScopestyleThe scope of the variable 'ext_q' can be reduced.
628variableScopestyleThe scope of the variable 'val' can be reduced.
722variableScopestyleThe scope of the variable 'use_default' can be reduced.
970variableScopestyleThe scope of the variable 'pe' can be reduced.
1165variableScopestyleThe scope of the variable 'pe' can be reduced.
1182variableScopestyleThe scope of the variable 'p' can be reduced.
1316variableScopestyleThe scope of the variable 'choice' can be reduced.
1456variableScopestyleThe scope of the variable 'choice' can be reduced.
1456variableScopestyleThe scope of the variable 'p' can be reduced.
1441invalidscanfportabilityscanf without field width limits can crash with huge input data on some versions of libc.
1441invalidscanfwarningscanf without field width limits can crash with huge input data.
toys/other/pmap.c
37variableScopestyleThe scope of the variable 'count' can be reduced.
64invalidscanfportabilityscanf without field width limits can crash with huge input data on some versions of libc.
64invalidscanfwarningscanf without field width limits can crash with huge input data.
78invalidscanfportabilityscanf without field width limits can crash with huge input data on some versions of libc.
79invalidscanfportabilityscanf without field width limits can crash with huge input data on some versions of libc.
80invalidscanfportabilityscanf without field width limits can crash with huge input data on some versions of libc.
toys/posix/wc.c
50variableScopestyleThe scope of the variable 'len' can be reduced.
toys/pending/useradd.c
223variableScopestyleThe scope of the variable 'pwd' can be reduced.
241unreadVariablestyleVariable 'pwd' is assigned a value that is never used.
toys/posix/ls.c
443variableScopestyleThe scope of the variable 'dt' can be reduced.
toys/pending/telnetd.c
166unreadVariablestyleVariable 'size' is assigned a value that is never used.
toys/other/taskset.c
39variableScopestyleThe scope of the variable 'k' can be reduced.
toys/other/ifconfig.c
63unusedStructMemberstylestruct or union member 'ifreq_inet6::ifrinet6_ifindex' is never used.
kconfig/confdata.c
1ConfigurationNotCheckedinformationSkipping configuration 'conf_defname' since the value of 'conf_defname' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.
81variableScopestyleThe scope of the variable 'fullname' can be reduced.
54variableScopestyleThe scope of the variable 'sym' can be reduced.
toys/other/acpi.c
62variableScopestyleThe scope of the variable 'curr' can be reduced.
62variableScopestyleThe scope of the variable 'max' can be reduced.
35invalidscanfportabilityscanf without field width limits can crash with huge input data on some versions of libc.
kconfig/lxdialog/util.c
463variableScopestyleThe scope of the variable 'c' can be reduced.
316variableScopestyleThe scope of the variable 'cur_x' can be reduced.
316variableScopestyleThe scope of the variable 'cur_y' can be reduced.
442variableScopestyleThe scope of the variable 'i' can be reduced.
316variableScopestyleThe scope of the variable 'newl' can be reduced.
317variableScopestyleThe scope of the variable 'room' can be reduced.
318variableScopestyleThe scope of the variable 'sp2' can be reduced.
317variableScopestyleThe scope of the variable 'wlen' can be reduced.
318variableScopestyleThe scope of the variable 'word' can be reduced.
scripts/config2help.c
347duplicateBreakstyleConsecutive return, break, continue, goto or throw statements are unnecessary.
232unreachableCodestyleStatements following return, break, continue, goto or throw will never be executed.
254unreachableCodestyleStatements following return, break, continue, goto or throw will never be executed.
79variableScopestyleThe scope of the variable 's' can be reduced.
195unusedVariablestyleUnused variable: file
kconfig/expr.c
238variableScopestyleThe scope of the variable 'tmp' can be reduced.
toys/pending/fsck.c
119variableScopestyleThe scope of the variable 'no' can be reduced.
164variableScopestyleThe scope of the variable 'i' can be reduced.
246variableScopestyleThe scope of the variable 'child_exited' can be reduced.
toys/pending/find.c
105variableScopestyleThe scope of the variable 'result' can be reduced.
278redundantConditionstyleRedundant condition: If o1 >= 4, the comparison o1 != 1 is always true.
toys/pending/mdev.c
62invalidScanfArgType_intwarning%u in format string (no. 1) requires 'unsigned int *' but the argument type is 'int *'.
62invalidScanfArgType_intwarning%u in format string (no. 2) requires 'unsigned int *' but the argument type is 'int *'.
62invalidscanfportabilityscanf without field width limits can crash with huge input data on some versions of libc.
toys/pending/test.c
44variableScopestyleThe scope of the variable 'id' can be reduced.
45variableScopestyleThe scope of the variable 's' can be reduced.
toys/pending/dhcp.c
530redundantAssignmentperformanceVariable 'ret' is reassigned a value before the old one has been used.
287variableScopestyleThe scope of the variable 'ip' can be reduced.
528variableScopestyleThe scope of the variable 'count' can be reduced.
1247variableScopestyleThe scope of the variable 'buffer' can be reduced.
toys/pending/mke2fs.c
484unreadVariablestyleVariable 'length' is assigned a value that is never used.
525unreadVariablestyleVariable 'dtiblk' is assigned a value that is never used.
525unreadVariablestyleVariable 'dtbblk' is assigned a value that is never used.
444invalidscanfportabilityscanf without field width limits can crash with huge input data on some versions of libc.
toys/posix/cat.c
24variableScopestyleThe scope of the variable 'len' can be reduced.
toys/pending/top.c
118invalidScanfArgType_intwarning%ld in format string (no. 7) requires 'long *' but the argument type is 'unsigned long *'.
289charBitOpwarningWhen using 'char' variables in bit operations, sign extension can generate unexpected results.
181variableScopestyleThe scope of the variable 'i' can be reduced.
355variableScopestyleThe scope of the variable 'count' can be reduced.
463variableScopestyleThe scope of the variable 'j' can be reduced.
463variableScopestyleThe scope of the variable 'k' can be reduced.
464variableScopestyleThe scope of the variable 'total' can be reduced.
552variableScopestyleThe scope of the variable 'j' can be reduced.
553variableScopestyleThe scope of the variable 'proc' can be reduced.
118invalidscanfportabilityscanf without field width limits can crash with huge input data on some versions of libc.
136invalidscanfportabilityscanf without field width limits can crash with huge input data on some versions of libc.
369invalidscanfportabilityscanf without field width limits can crash with huge input data on some versions of libc.
369invalidscanfwarningscanf without field width limits can crash with huge input data.
380invalidscanfportabilityscanf without field width limits can crash with huge input data on some versions of libc.
381invalidscanfportabilityscanf without field width limits can crash with huge input data on some versions of libc.
382invalidscanfportabilityscanf without field width limits can crash with huge input data on some versions of libc.
383invalidscanfportabilityscanf without field width limits can crash with huge input data on some versions of libc.
471invalidscanfportabilityscanf without field width limits can crash with huge input data on some versions of libc.
473invalidscanfportabilityscanf without field width limits can crash with huge input data on some versions of libc.
475invalidscanfportabilityscanf without field width limits can crash with huge input data on some versions of libc.
477invalidscanfportabilityscanf without field width limits can crash with huge input data on some versions of libc.
479invalidscanfportabilityscanf without field width limits can crash with huge input data on some versions of libc.
481invalidscanfportabilityscanf without field width limits can crash with huge input data on some versions of libc.
483invalidscanfportabilityscanf without field width limits can crash with huge input data on some versions of libc.
485invalidscanfportabilityscanf without field width limits can crash with huge input data on some versions of libc.
toys/posix/paste.c
33variableScopestyleThe scope of the variable 'j' can be reduced.
49variableScopestyleThe scope of the variable 'f' can be reduced.
toys/pending/xzcat.c
1530variableScopestyleThe scope of the variable 'copy_size' can be reduced.
2636variableScopestyleThe scope of the variable 'ret' can be reduced.
1ConfigurationNotCheckedinformationSkipping configuration 'get_unaligned_be32' since the value of 'get_unaligned_be32' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.
1ConfigurationNotCheckedinformationSkipping configuration 'get_unaligned_le32' since the value of 'get_unaligned_le32' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.
1ConfigurationNotCheckedinformationSkipping configuration 'put_unaligned_be32' since the value of 'put_unaligned_be32' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.
1ConfigurationNotCheckedinformationSkipping configuration 'put_unaligned_le32' since the value of 'put_unaligned_le32' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.
lib/lib.c
84arithOperationsOnVoidPointerportability'buf' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined.
691variableScopestyleThe scope of the variable 'bit' can be reduced.
690variableScopestyleThe scope of the variable 'd' can be reduced.
358variableScopestyleThe scope of the variable 'fd' can be reduced.
190variableScopestyleThe scope of the variable 'suffixes' can be reduced.
110unreadVariablestyleVariable 'or' is assigned a value that is never used.
515invalidscanfportabilityscanf without field width limits can crash with huge input data on some versions of libc.
517invalidscanfportabilityscanf without field width limits can crash with huge input data on some versions of libc.
toys/lsb/passwd.c
101variableScopestyleThe scope of the variable 'newp' can be reduced.
102variableScopestyleThe scope of the variable 'salt' can be reduced.
kconfig/mconf.c
868constStatementwarningRedundant code: Found a statement that begins with string constant.
869constStatementwarningRedundant code: Found a statement that begins with string constant.
328variableScopestyleThe scope of the variable 'j' can be reduced.
589variableScopestyleThe scope of the variable 'res' can be reduced.
toys/pending/telnet.c
266variableScopestyleThe scope of the variable 'curr' can be reduced.
lib/bunzip.c
134variableScopestyleThe scope of the variable 'base' can be reduced.
615variableScopestyleThe scope of the variable 'bunzip_errors' can be reduced.
292variableScopestyleThe scope of the variable 'jj' can be reduced.
292variableScopestyleThe scope of the variable 'nextSym' can be reduced.
135variableScopestyleThe scope of the variable 'uc' can be reduced.
kconfig/menu.c
410variableScopestyleThe scope of the variable 'type' can be reduced.
toys/pending/watch.c
33variableScopestyleThe scope of the variable 'retval' can be reduced.
toys/posix/tail.c
135variableScopestyleThe scope of the variable 'linepop' can be reduced.
toys/other/count.c
21variableScopestyleThe scope of the variable 'len' can be reduced.
toys/pending/brctl.c
179invalidscanfportabilityscanf without field width limits can crash with huge input data on some versions of libc.
238invalidscanfportabilityscanf without field width limits can crash with huge input data on some versions of libc.
1ConfigurationNotCheckedinformationSkipping configuration 'SIOCBRADDBR' since the value of 'SIOCBRADDBR' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.
1ConfigurationNotCheckedinformationSkipping configuration 'SIOCBRADDIF' since the value of 'SIOCBRADDIF' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.
1ConfigurationNotCheckedinformationSkipping configuration 'SIOCBRDELBR' since the value of 'SIOCBRDELBR' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.
1ConfigurationNotCheckedinformationSkipping configuration 'SIOCBRDELIF' since the value of 'SIOCBRDELIF' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.
kconfig/conf.c
174variableScopestyleThe scope of the variable 'def' can be reduced.
174variableScopestyleThe scope of the variable 'help' can be reduced.
191unreadVariablestyleVariable 'help' is assigned a value that is never used.
kconfig/lex.zconf.c_shipped
802memleakOnReallocerrorCommon realloc mistake: 'text' nulled but not freed upon failure
1ConfigurationNotCheckedinformationSkipping configuration 'YY_USER_INIT' since the value of 'YY_USER_INIT' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.
2263variableScopestyleThe scope of the variable 'env' can be reduced.
2263variableScopestyleThe scope of the variable 'fullname' can be reduced.
696unusedStructMemberstylestruct or union member 'yy_trans_info::yy_nxt' is never used.
695unusedStructMemberstylestruct or union member 'yy_trans_info::yy_verify' is never used.
toys/pending/route.c
389variableScopestyleThe scope of the variable 'sockfd' can be reduced.
396variableScopestyleThe scope of the variable 'plen' can be reduced.
125invalidscanfportabilityscanf without field width limits can crash with huge input data on some versions of libc.
456invalidscanfportabilityscanf without field width limits can crash with huge input data on some versions of libc.
scripts/install.c
28bufferAccessOutOfBoundserrorBuffer is accessed out of bounds: toy_list
35unreadVariablestyleVariable 'len' is assigned a value that is never used.
toys/pending/dd.c
131redundantAssignmentperformanceVariable 'seconds' is reassigned a value before the old one has been used.
107variableScopestyleThe scope of the variable 'i' can be reduced.
107variableScopestyleThe scope of the variable 'idx' can be reduced.
157variableScopestyleThe scope of the variable 'n' can be reduced.
203variableScopestyleThe scope of the variable 'nw' can be reduced.
221variableScopestyleThe scope of the variable 'n' can be reduced.
290variableScopestyleThe scope of the variable 'res' can be reduced.
150clarifyConditionstyleSuspicious condition (assignment + comparison); Clarify expression with parentheses.
toys/pending/pgrep.c
43invalidPrintfArgType_sintwarning%d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'.
143invalidscanfportabilityscanf without field width limits can crash with huge input data on some versions of libc.
toys/other/lsusb.c
33invalidScanfArgType_intwarning%u in format string (no. 1) requires 'unsigned int *' but the argument type is 'int *'.
34invalidScanfArgType_intwarning%u in format string (no. 1) requires 'unsigned int *' but the argument type is 'int *'.
33invalidscanfportabilityscanf without field width limits can crash with huge input data on some versions of libc.
34invalidscanfportabilityscanf without field width limits can crash with huge input data on some versions of libc.
35invalidscanfportabilityscanf without field width limits can crash with huge input data on some versions of libc.
toys/pending/nbd_client.c
49variableScopestyleThe scope of the variable 'flags' can be reduced.
toys/other/vmstat.c
46selfAssignmentwarningRedundant assignment of 'p' to itself.
46selfAssignmentwarningRedundant assignment of 'name' to itself.
46uninitvarerrorUninitialized variable: p
46uninitvarerrorUninitialized variable: name
toys/pending/dhcpd.c
1132redundantAssignmentperformanceVariable 'retval' is reassigned a value before the old one has been used.
245variableScopestyleThe scope of the variable 'ip' can be reduced.
754variableScopestyleThe scope of the variable 'len' can be reduced.
1002variableScopestyleThe scope of the variable 'tmp' can be reduced.
1080variableScopestyleThe scope of the variable 'retval' can be reduced.
876selfAssignmentwarningRedundant assignment of 'timestamp' to itself.
1058selfAssignmentwarningRedundant assignment of 'timestamp' to itself.
toys/pending/netstat.c
267invalidPrintfArgType_sintwarning%d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'.
287invalidScanfArgType_intwarning%d in format string (no. 1) requires 'int *' but the argument type is 'unsigned int *'.
287invalidScanfArgType_intwarning%d in format string (no. 9) requires 'int *' but the argument type is 'unsigned int *'.
287invalidScanfArgType_intwarning%ld in format string (no. 10) requires 'long *' but the argument type is 'unsigned long *'.
313invalidScanfArgType_intwarning%d in format string (no. 1) requires 'int *' but the argument type is 'unsigned int *'.
313invalidScanfArgType_intwarning%d in format string (no. 15) requires 'int *' but the argument type is 'unsigned int *'.
313invalidScanfArgType_intwarning%ld in format string (no. 16) requires 'long *' but the argument type is 'unsigned long *'.
282variableScopestyleThe scope of the variable 'lip' can be reduced.
282variableScopestyleThe scope of the variable 'rip' can be reduced.
309variableScopestyleThe scope of the variable 'lip' can be reduced.
309variableScopestyleThe scope of the variable 'rip' can be reduced.
287invalidscanfportabilityscanf without field width limits can crash with huge input data on some versions of libc.
313invalidscanfportabilityscanf without field width limits can crash with huge input data on some versions of libc.
341invalidscanfportabilityscanf without field width limits can crash with huge input data on some versions of libc.
546invalidscanfportabilityscanf without field width limits can crash with huge input data on some versions of libc.
main.c
144bufferAccessOutOfBoundserrorBuffer is accessed out of bounds: toy_list
27variableScopestyleThe scope of the variable 'middle' can be reduced.
toys/other/uptime.c
50invalidPrintfArgType_sintwarning%d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'.
toys/posix/sort.c
239variableScopestyleThe scope of the variable 'x' can be reduced.
239variableScopestyleThe scope of the variable 'y' can be reduced.
toys/pending/syslogd.c
90invalidPrintfArgType_uintwarning%u in format string (no. 1) requires 'unsigned int' but the argument type is 'int'.
158variableScopestyleThe scope of the variable 'len' can be reduced.
242variableScopestyleThe scope of the variable 'p' can be reduced.
242variableScopestyleThe scope of the variable 'tmpfile' can be reduced.
243variableScopestyleThe scope of the variable 'port' can be reduced.
314variableScopestyleThe scope of the variable 'lvlstr' can be reduced.
314variableScopestyleThe scope of the variable 'facstr' can be reduced.
scripts/mkflags.c
110invalidPrintfArgType_sintwarning%d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'.
118invalidPrintfArgType_sintwarning%d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'.
75unusedVariablestyleUnused variable: bit
toys/posix/head.c
31variableScopestyleThe scope of the variable 'len' can be reduced.
toys/pending/lspci.c
61variableScopestyleThe scope of the variable 'vtext' can be reduced.
61variableScopestyleThe scope of the variable 'dtext' can be reduced.
79variableScopestyleThe scope of the variable 'res' can be reduced.
toys/posix/env.c
47variableScopestyleThe scope of the variable 'ep' can be reduced.
toys/posix/uudecode.c
29selfAssignmentwarningRedundant assignment of 'm' to itself.
29uninitvarerrorUninitialized variable: m
toys/other/chvt.c
24selfAssignmentwarningRedundant assignment of 'fd' to itself.
24uninitvarerrorUninitialized variable: fd
toys/pending/klogd.c
41invalidPrintfArgType_uintwarning%u in format string (no. 1) requires 'unsigned int' but the argument type is 'int'.
toys/posix/du.c
67invalidPrintfArgType_intwarning%c in format string (no. 1) requires 'unsigned int' but the argument type is 'const char *'.
58variableScopestyleThe scope of the variable 'buf' can be reduced.
47unusedStructMemberstylestruct or union member 'node_size::size' is never used.
toys/lsb/umount.c
124variableScopestyleThe scope of the variable 'type' can be reduced.
toys/pending/ps.c
311invalidPrintfArgType_sintwarning%d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'.
314invalidPrintfArgType_sintwarning%d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'.
355invalidPrintfArgType_uintwarning%lu in format string (no. 2) requires 'unsigned long' but the argument type is 'long'.
84variableScopestyleThe scope of the variable 'i' can be reduced.
147invalidscanfportabilityscanf without field width limits can crash with huge input data on some versions of libc.
242invalidscanfportabilityscanf without field width limits can crash with huge input data on some versions of libc.
toys/posix/grep.c
185variableScopestyleThe scope of the variable 'len' can be reduced.
262variableScopestyleThe scope of the variable 'ss' can be reduced.
toys/posix/df.c
100variableScopestyleThe scope of the variable 'mt2' can be reduced.
lib/pending.c
36invalidPrintfArgType_intwarning%c in format string (no. 2) requires 'unsigned int' but the argument type is 'const char *'.
35invalidPrintfArgType_uintwarning%u in format string (no. 1) requires 'unsigned int' but the argument type is 'int'.
36sprintfOverlappingDataerrorUndefined behavior: Variable 'buf' is used as parameter and destination in s[n]printf().
toys/pending/sh.c
318duplicateExpressionstyleSame expression on both sides of '||'.
toys/other/chroot.c
20variableScopestyleThe scope of the variable 'binsh' can be reduced.
toys/pending/groupadd.c
73variableScopestyleThe scope of the variable 'entry' can be reduced.
106unreadVariablestyleVariable 'grp' is assigned a value that is never used.
toys/posix/od.c
66invalidPrintfArgType_intwarning%c in format string (no. 1) requires 'unsigned int' but the argument type is 'const char *'.
52unreachableCodestyleStatements following return, break, continue, goto or throw will never be executed.
114unreachableCodestyleStatements following return, break, continue, goto or throw will never be executed.
51variableScopestyleThe scope of the variable 'k' can be reduced.
128variableScopestyleThe scope of the variable 'abases' can be reduced.
225variableScopestyleThe scope of the variable 'type' can be reduced.
lib/password.c
42redundantAssignmentperformanceVariable 'bits' is reassigned a value before the old one has been used.
143redundantAssignmentperformanceVariable 'ret' is reassigned a value before the old one has been used.
toys/other/mountpoint.c
46strncatUsagewarningDangerous usage of strncat - 3rd parameter is the maximum number of characters to append.
toys/pending/arping.c
62variableScopestyleThe scope of the variable 'ip' can be reduced.
toys/pending/gzip.c
44variableHidingEnumstyleVariable 'FlateErr' hides enumerator with same name
44variableHidingEnumstyleVariable 'FlateErr' hides enumerator with same name
44variableHidingEnumstyleVariable 'FlateErr' hides enumerator with same name
44variableHidingEnumstyleVariable 'FlateErr' hides enumerator with same name
44variableHidingEnumstyleVariable 'FlateErr' hides enumerator with same name
44variableHidingEnumstyleVariable 'FlateErr' hides enumerator with same name
44variableHidingEnumstyleVariable 'FlateErr' hides enumerator with same name
44variableHidingEnumstyleVariable 'FlateErr' hides enumerator with same name
44variableHidingEnumstyleVariable 'FlateErr' hides enumerator with same name
44variableHidingEnumstyleVariable 'FlateErr' hides enumerator with same name
44variableHidingEnumstyleVariable 'FlateErr' hides enumerator with same name
44variableHidingEnumstyleVariable 'FlateErr' hides enumerator with same name
44variableHidingEnumstyleVariable 'FlateErr' hides enumerator with same name
57variableHidingEnumstyleVariable 'Nlitlen' hides enumerator with same name
57variableHidingEnumstyleVariable 'Nlitlen' hides enumerator with same name
64variableHidingEnumstyleVariable 'WinSize' hides enumerator with same name
653variableScopestyleThe scope of the variable 'c' can be reduced.
827variableScopestyleThe scope of the variable 'count' can be reduced.
852variableScopestyleThe scope of the variable 'p' can be reduced.
870variableScopestyleThe scope of the variable 'c' can be reduced.
973variableScopestyleThe scope of the variable 'c' can be reduced.
1138variableScopestyleThe scope of the variable 'k' can be reduced.
1196variableScopestyleThe scope of the variable 'hash' can be reduced.
1218variableScopestyleThe scope of the variable 'q' can be reduced.
1295variableScopestyleThe scope of the variable 'n' can be reduced.
1295variableScopestyleThe scope of the variable 'k' can be reduced.
1320variableScopestyleThe scope of the variable 'next' can be reduced.
1358variableScopestyleThe scope of the variable 'i' can be reduced.
1391variableScopestyleThe scope of the variable 'k' can be reduced.
toys/pending/cpio.c
85variableScopestyleThe scope of the variable 'out' can be reduced.
toys/pending/init.c
117variableScopestyleThe scope of the variable 'i' can be reduced.
117variableScopestyleThe scope of the variable 'line_number' can be reduced.
117variableScopestyleThe scope of the variable 'token_count' can be reduced.
118variableScopestyleThe scope of the variable 'q' can be reduced.
118variableScopestyleThe scope of the variable 'extracted_token' can be reduced.
118variableScopestyleThe scope of the variable 'tty_name' can be reduced.
118variableScopestyleThe scope of the variable 'command' can be reduced.
118variableScopestyleThe scope of the variable 'tmp' can be reduced.
215variableScopestyleThe scope of the variable 'fd' can be reduced.
toys/pending/traceroute.c
199variableScopestyleThe scope of the variable 'fexit' can be reduced.
217variableScopestyleThe scope of the variable 'res' can be reduced.
266variableScopestyleThe scope of the variable 'hudp' can be reduced.
267variableScopestyleThe scope of the variable 'hicmp' can be reduced.
480variableScopestyleThe scope of the variable 'opt_len' can be reduced.
502unreadVariablestyleVariable 'opt_len' is assigned a value that is never used.
1ConfigurationNotCheckedinformationSkipping configuration 'IPV6_RECVPKTINFO' since the value of 'IPV6_RECVPKTINFO' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.
1ConfigurationNotCheckedinformationSkipping configuration 'IP_DONTFRAG' since the value of 'IP_DONTFRAG' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.
toys/posix/cp.c
274variableScopestyleThe scope of the variable 'new' can be reduced.
121uninitvarerrorUninitialized variable: s
toys/other/switch_root.c
49selfAssignmentwarningRedundant assignment of 'console' to itself.
49uninitvarerrorUninitialized variable: console
toys/pending/dumpleases.c
49selfAssignmentwarningRedundant assignment of 'written_time' to itself.
kconfig/symbol.c
834variableScopestyleThe scope of the variable 'propp' can be reduced.
650variableScopestyleThe scope of the variable 'ptr' can be reduced.
512unreadVariablestyleVariable 'ch' is assigned a value that is never used.
toys/posix/touch.c
99invalidScanfArgType_intwarning%u in format string (no. 2) requires 'unsigned int *' but the argument type is 'int *'.
57variableScopestyleThe scope of the variable 'date' can be reduced.
58variableScopestyleThe scope of the variable 'fd' can be reduced.
82invalidscanfportabilityscanf without field width limits can crash with huge input data on some versions of libc.
99invalidscanfportabilityscanf without field width limits can crash with huge input data on some versions of libc.
toys/posix/patch.c
337variableScopestyleThe scope of the variable 'i' can be reduced.
166literalWithCharPtrComparewarningString literal compared with variable 'data'. Did you intend to use strcmp() instead?
toys/other/losetup.c
64selfAssignmentwarningRedundant assignment of 'ffd' to itself.
71variableScopestyleThe scope of the variable 'i' can be reduced.
151variableScopestyleThe scope of the variable 's' can be reduced.
64uninitvarerrorUninitialized variable: ffd
lib/xwrap.c
434variableScopestyleThe scope of the variable 'len' can be reduced.
509variableScopestyleThe scope of the variable 'len' can be reduced.
toys/posix/cut.c
192variableScopestyleThe scope of the variable 'cpos' can be reduced.
193variableScopestyleThe scope of the variable 'start' can be reduced.
193variableScopestyleThe scope of the variable 'ndelimiters' can be reduced.
194variableScopestyleThe scope of the variable 'nprinted_fields' can be reduced.
241variableScopestyleThe scope of the variable 'cpos' can be reduced.