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
|
MAN= pstat.8
|
||||||
MLINKS= pstat.8 swapinfo.8
|
MLINKS= pstat.8 swapinfo.8
|
||||||
|
|
||||||
WARNS?= 2
|
WARNS?= 3
|
||||||
|
|
||||||
DPADD= ${LIBKVM} ${LIBUTIL}
|
DPADD= ${LIBKVM} ${LIBUTIL}
|
||||||
LDADD= -lkvm -lutil
|
LDADD= -lkvm -lutil
|
||||||
|
@ -81,11 +81,11 @@ enum {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static struct nlist nl[] = {
|
static struct nlist nl[] = {
|
||||||
{ "_constty", 0 },
|
{ .n_name = "_constty" },
|
||||||
{ "_maxfiles", 0 },
|
{ .n_name = "_maxfiles" },
|
||||||
{ "_nfiles", 0 },
|
{ .n_name = "_nfiles" },
|
||||||
{ "_tty_list", 0 },
|
{ .n_name = "_tty_list" },
|
||||||
{ "" }
|
{ .n_name = "" }
|
||||||
};
|
};
|
||||||
|
|
||||||
static int humanflag;
|
static int humanflag;
|
||||||
|
Loading…
Reference in New Issue
Block a user