From 94d2d4eb042c76b832fca62e150b21429ffceb47 Mon Sep 17 00:00:00 2001 From: Brooks Davis Date: Wed, 19 Oct 2005 21:21:22 +0000 Subject: [PATCH] Make devd WARNS=4 clean and bump WARNS accordingly. This will insure that future variable shadowing bugs don't compile. Reviewed by: imp Compiled on: alpha i386 sparc64 --- sbin/devd/Makefile | 2 +- sbin/devd/devd.cc | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sbin/devd/Makefile b/sbin/devd/Makefile index 469e1e247b97..3514b1bb95d7 100644 --- a/sbin/devd/Makefile +++ b/sbin/devd/Makefile @@ -3,7 +3,7 @@ PROG_CXX=devd SRCS= devd.cc token.l parse.y y.tab.h MAN= devd.8 devd.conf.5 -WARNS?= 1 +WARNS?= 4 NO_SHARED?=YES diff --git a/sbin/devd/devd.cc b/sbin/devd/devd.cc index c9f6a8673bdb..f0578b45c8a6 100644 --- a/sbin/devd/devd.cc +++ b/sbin/devd/devd.cc @@ -194,7 +194,7 @@ match::do_match(config &c) #include #include -media::media(config &c, const char *var, const char *type) +media::media(config &, const char *var, const char *type) : _var(var), _type(-1) { static struct ifmedia_description media_types[] = { @@ -585,7 +585,7 @@ config::find_and_execute(char type) { vector *l; vector::const_iterator i; - char *s; + const char *s; switch (type) { default: