diff options
author | 2014-10-31 12:50:31 +0000 | |
---|---|---|
committer | 2014-10-31 12:50:31 +0000 | |
commit | c700f0783c008d73e74657df2f7c63d97a45559b (patch) | |
tree | 0a42139273474af4fbad188180401237bd689cb3 | |
parent | Use understandable messages when the per-xfer poison value is incorrect. (diff) | |
download | wireguard-openbsd-c700f0783c008d73e74657df2f7c63d97a45559b.tar.xz wireguard-openbsd-c700f0783c008d73e74657df2f7c63d97a45559b.zip |
Use CDIAGFLAGS from bsd.own.mk and append additional warning flags.
All warnings have been fixed in libevent.
OK nicm@
-rw-r--r-- | lib/libevent/Makefile | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/lib/libevent/Makefile b/lib/libevent/Makefile index 0562489e859..d29913df384 100644 --- a/lib/libevent/Makefile +++ b/lib/libevent/Makefile @@ -1,4 +1,6 @@ -# $OpenBSD: Makefile,v 1.38 2014/10/18 16:48:28 bluhm Exp $ +# $OpenBSD: Makefile,v 1.39 2014/10/31 12:50:31 bluhm Exp $ + +.include <bsd.own.mk> LIB= event SRCS= buffer.c evbuffer.c event.c event_tagging.c evutil.c kqueue.c \ @@ -60,17 +62,14 @@ MLINKS= event.3 bufferevent_base_set.3 \ CFLAGS+= -I${.CURDIR} -DNDEBUG -CDIAGFLAGS= -Wall -#CDIAGFLAGS+= -Werror -CDIAGFLAGS+= -Wstrict-prototypes -CDIAGFLAGS+= -Wmissing-prototypes -CDIAGFLAGS+= -Wmissing-declarations -CDIAGFLAGS+= -Wshadow -CDIAGFLAGS+= -Wpointer-arith -CDIAGFLAGS+= -Wcast-qual -CDIAGFLAGS+= -Wsign-compare -CDIAGFLAGS+= -Wcast-align +# use more warnings than defined in bsd.own.mk CDIAGFLAGS+= -Wbad-function-cast +CDIAGFLAGS+= -Wcast-align +CDIAGFLAGS+= -Wcast-qual +CDIAGFLAGS+= -Wextra +CDIAGFLAGS+= -Wmissing-declarations +CDIAGFLAGS+= -Wuninitialized +CDIAGFLAGS+= -Wno-unused-parameter includes: @cd ${.CURDIR}; for i in ${HDRS}; do \ |