summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Bluhm <bluhm@cvs.openbsd.org>2014-10-31 12:50:32 +0000
committerAlexander Bluhm <bluhm@cvs.openbsd.org>2014-10-31 12:50:32 +0000
commit0c40c5af2245d7baf1a5f807f011d981195b59db (patch)
tree0222428d7079a32288faddba26a2dda235042504
parentef3ccf0f04bf21507bcd6680d0f0de00189b9c3e (diff)
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/Makefile21
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 \