From 2145114fc4f04a6a75134ef92bc551a976292150 Mon Sep 17 00:00:00 2001 From: jsg <> Date: Sun, 7 May 2017 04:18:47 +0000 Subject: Limit -Werror to gcc4 as was done in libcrypto/libssl/libtls to avoid failed builds with different compilers. ok jsing@ --- src/usr.sbin/ocspcheck/Makefile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/usr.sbin/ocspcheck') diff --git a/src/usr.sbin/ocspcheck/Makefile b/src/usr.sbin/ocspcheck/Makefile index 79f9d5880b..e055c779ab 100644 --- a/src/usr.sbin/ocspcheck/Makefile +++ b/src/usr.sbin/ocspcheck/Makefile @@ -1,4 +1,6 @@ -# $OpenBSD: Makefile,v 1.2 2017/01/24 09:25:27 deraadt Exp $ +# $OpenBSD: Makefile,v 1.3 2017/05/07 04:18:47 jsg Exp $ + +.include PROG= ocspcheck MAN= ocspcheck.8 @@ -6,7 +8,7 @@ MAN= ocspcheck.8 LDADD= -ltls -lssl -lcrypto DPADD= ${LIBTLS} ${LIBSSL} ${LIBCRYPTO} -CFLAGS+= -Wall -Werror +CFLAGS+= -Wall CFLAGS+= -Wformat CFLAGS+= -Wformat-security CFLAGS+= -Wimplicit @@ -15,7 +17,9 @@ CFLAGS+= -Wshadow CFLAGS+= -Wtrigraphs CFLAGS+= -Wuninitialized CFLAGS+= -Wunused - + .if ${COMPILER_VERSION:L} == "gcc4" +CFLAGS+= -Werror +.endif CFLAGS+= -DLIBRESSL_INTERNAL SRCS= ocspcheck.c http.c -- cgit v1.2.3-55-g6feb