From 34fb0eb43aaada8d10335fd06bd825285f3dcb27 Mon Sep 17 00:00:00 2001 From: Sascha Wildner Date: Sun, 12 Apr 2009 21:41:51 +0200 Subject: [PATCH] pciconf(8): Raise WARNS to 6 and fix warning. --- usr.sbin/pciconf/Makefile | 2 +- usr.sbin/pciconf/pciconf.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/pciconf/Makefile b/usr.sbin/pciconf/Makefile index 2023eb7c64..19045bf13c 100644 --- a/usr.sbin/pciconf/Makefile +++ b/usr.sbin/pciconf/Makefile @@ -5,6 +5,6 @@ PROG= pciconf MAN= pciconf.8 CFLAGS+= -I${.CURDIR}/../../sys -WARNS?= 4 +WARNS?= 6 .include diff --git a/usr.sbin/pciconf/pciconf.c b/usr.sbin/pciconf/pciconf.c index 32a4f7117e..c9ce58e4d5 100644 --- a/usr.sbin/pciconf/pciconf.c +++ b/usr.sbin/pciconf/pciconf.c @@ -450,7 +450,7 @@ static struct pcisel getsel(const char *str) { char *parse_buf, *ep; - struct pcisel sel; + struct pcisel sel = { .pc_func = 0}; parse_buf = strdup(str); ep = parse_buf; -- 2.41.0