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: