mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-11 14:10:34 +00:00
Use a designator for initializing only one member of the nlist
structs, making pstat WARNS=3 clean on i386, sparc64 and amd64. Bump WARNS level to 3. Approved by: sam, pjd
This commit is contained in:
parent
f56e71275a
commit
00191f86e0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=143936
@ -6,7 +6,7 @@ LINKS= ${BINDIR}/pstat ${BINDIR}/swapinfo
|
||||
MAN= pstat.8
|
||||
MLINKS= pstat.8 swapinfo.8
|
||||
|
||||
WARNS?= 2
|
||||
WARNS?= 3
|
||||
|
||||
DPADD= ${LIBKVM} ${LIBUTIL}
|
||||
LDADD= -lkvm -lutil
|
||||
|
@ -81,11 +81,11 @@ enum {
|
||||
};
|
||||
|
||||
static struct nlist nl[] = {
|
||||
{ "_constty", 0 },
|
||||
{ "_maxfiles", 0 },
|
||||
{ "_nfiles", 0 },
|
||||
{ "_tty_list", 0 },
|
||||
{ "" }
|
||||
{ .n_name = "_constty" },
|
||||
{ .n_name = "_maxfiles" },
|
||||
{ .n_name = "_nfiles" },
|
||||
{ .n_name = "_tty_list" },
|
||||
{ .n_name = "" }
|
||||
};
|
||||
|
||||
static int humanflag;
|
||||
|
Loading…
Reference in New Issue
Block a user