From cde37b72cb59adfc12216ed65e5ec3b132080ec2 Mon Sep 17 00:00:00 2001 From: doug <> Date: Sun, 13 Aug 2017 19:42:33 +0000 Subject: Switch to -Werror with clang for libressl. Discussed with beck@ and jsing@ ok beck@ --- src/lib/libcrypto/Makefile | 4 ++-- src/lib/libssl/Makefile | 4 ++-- src/lib/libtls/Makefile | 4 ++-- src/usr.bin/openssl/Makefile | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/lib/libcrypto/Makefile b/src/lib/libcrypto/Makefile index cb714c563a..77c0b06ffc 100644 --- a/src/lib/libcrypto/Makefile +++ b/src/lib/libcrypto/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.20 2017/07/10 21:30:37 espie Exp $ +# $OpenBSD: Makefile,v 1.21 2017/08/13 19:42:33 doug Exp $ LIB= crypto LIBREBUILD=y @@ -15,7 +15,7 @@ CLEANFILES=${PC_FILES} ${VERSION_SCRIPT} LCRYPTO_SRC= ${.CURDIR} CFLAGS+= -Wall -Wundef -.if ${COMPILER_VERSION:L} == "gcc4" +.if ${COMPILER_VERSION:L} == "clang" CFLAGS+= -Werror .endif CFLAGS+= -DLIBRESSL_INTERNAL diff --git a/src/lib/libssl/Makefile b/src/lib/libssl/Makefile index 6ae361c00c..66dae58874 100644 --- a/src/lib/libssl/Makefile +++ b/src/lib/libssl/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.37 2017/07/24 17:10:31 jsing Exp $ +# $OpenBSD: Makefile,v 1.38 2017/08/13 19:42:33 doug Exp $ .include .ifndef NOMAN @@ -12,7 +12,7 @@ CLEANFILES=${PC_FILES} ${VERSION_SCRIPT} LIB= ssl CFLAGS+= -Wall -Wundef -.if ${COMPILER_VERSION:L} == "gcc4" +.if ${COMPILER_VERSION:L} == "clang" CFLAGS+= -Werror .endif CFLAGS+= -DLIBRESSL_INTERNAL diff --git a/src/lib/libtls/Makefile b/src/lib/libtls/Makefile index 2b09517fbe..9e7b4fc7a6 100644 --- a/src/lib/libtls/Makefile +++ b/src/lib/libtls/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.31 2017/04/30 04:44:58 jsing Exp $ +# $OpenBSD: Makefile,v 1.32 2017/08/13 19:42:33 doug Exp $ .include .ifndef NOMAN @@ -6,7 +6,7 @@ SUBDIR= man .endif CFLAGS+= -Wall -Wimplicit -Wundef -.if ${COMPILER_VERSION:L} == "gcc4" +.if ${COMPILER_VERSION:L} == "clang" CFLAGS+= -Werror .endif CFLAGS+= -DLIBRESSL_INTERNAL diff --git a/src/usr.bin/openssl/Makefile b/src/usr.bin/openssl/Makefile index 11ecd1b96c..7efc759ceb 100644 --- a/src/usr.bin/openssl/Makefile +++ b/src/usr.bin/openssl/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.9 2017/07/09 21:23:19 espie Exp $ +# $OpenBSD: Makefile,v 1.10 2017/08/13 19:42:33 doug Exp $ .include @@ -15,7 +15,7 @@ CFLAGS+= -Wreturn-type CFLAGS+= -Wtrigraphs CFLAGS+= -Wuninitialized CFLAGS+= -Wunused -.if ${COMPILER_VERSION:L} == "gcc4" +.if ${COMPILER_VERSION:L} == "clang" CFLAGS+= -Werror .endif CFLAGS+= -DLIBRESSL_INTERNAL -- cgit v1.2.3-55-g6feb