diff options
author | doug <> | 2017-08-13 19:42:33 +0000 |
---|---|---|
committer | doug <> | 2017-08-13 19:42:33 +0000 |
commit | cde37b72cb59adfc12216ed65e5ec3b132080ec2 (patch) | |
tree | 575f2d1cfe5ad2a346588e8230ac59c1772c17c8 | |
parent | 5dcdc958812ab0f9a065863fd2678d86c850feb9 (diff) | |
download | openbsd-cde37b72cb59adfc12216ed65e5ec3b132080ec2.tar.gz openbsd-cde37b72cb59adfc12216ed65e5ec3b132080ec2.tar.bz2 openbsd-cde37b72cb59adfc12216ed65e5ec3b132080ec2.zip |
Switch to -Werror with clang for libressl.
Discussed with beck@ and jsing@
ok beck@
-rw-r--r-- | src/lib/libcrypto/Makefile | 4 | ||||
-rw-r--r-- | src/lib/libssl/Makefile | 4 | ||||
-rw-r--r-- | src/lib/libtls/Makefile | 4 | ||||
-rw-r--r-- | 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 @@ | |||
1 | # $OpenBSD: Makefile,v 1.20 2017/07/10 21:30:37 espie Exp $ | 1 | # $OpenBSD: Makefile,v 1.21 2017/08/13 19:42:33 doug Exp $ |
2 | 2 | ||
3 | LIB= crypto | 3 | LIB= crypto |
4 | LIBREBUILD=y | 4 | LIBREBUILD=y |
@@ -15,7 +15,7 @@ CLEANFILES=${PC_FILES} ${VERSION_SCRIPT} | |||
15 | LCRYPTO_SRC= ${.CURDIR} | 15 | LCRYPTO_SRC= ${.CURDIR} |
16 | 16 | ||
17 | CFLAGS+= -Wall -Wundef | 17 | CFLAGS+= -Wall -Wundef |
18 | .if ${COMPILER_VERSION:L} == "gcc4" | 18 | .if ${COMPILER_VERSION:L} == "clang" |
19 | CFLAGS+= -Werror | 19 | CFLAGS+= -Werror |
20 | .endif | 20 | .endif |
21 | CFLAGS+= -DLIBRESSL_INTERNAL | 21 | 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 @@ | |||
1 | # $OpenBSD: Makefile,v 1.37 2017/07/24 17:10:31 jsing Exp $ | 1 | # $OpenBSD: Makefile,v 1.38 2017/08/13 19:42:33 doug Exp $ |
2 | 2 | ||
3 | .include <bsd.own.mk> | 3 | .include <bsd.own.mk> |
4 | .ifndef NOMAN | 4 | .ifndef NOMAN |
@@ -12,7 +12,7 @@ CLEANFILES=${PC_FILES} ${VERSION_SCRIPT} | |||
12 | LIB= ssl | 12 | LIB= ssl |
13 | 13 | ||
14 | CFLAGS+= -Wall -Wundef | 14 | CFLAGS+= -Wall -Wundef |
15 | .if ${COMPILER_VERSION:L} == "gcc4" | 15 | .if ${COMPILER_VERSION:L} == "clang" |
16 | CFLAGS+= -Werror | 16 | CFLAGS+= -Werror |
17 | .endif | 17 | .endif |
18 | CFLAGS+= -DLIBRESSL_INTERNAL | 18 | 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 @@ | |||
1 | # $OpenBSD: Makefile,v 1.31 2017/04/30 04:44:58 jsing Exp $ | 1 | # $OpenBSD: Makefile,v 1.32 2017/08/13 19:42:33 doug Exp $ |
2 | 2 | ||
3 | .include <bsd.own.mk> | 3 | .include <bsd.own.mk> |
4 | .ifndef NOMAN | 4 | .ifndef NOMAN |
@@ -6,7 +6,7 @@ SUBDIR= man | |||
6 | .endif | 6 | .endif |
7 | 7 | ||
8 | CFLAGS+= -Wall -Wimplicit -Wundef | 8 | CFLAGS+= -Wall -Wimplicit -Wundef |
9 | .if ${COMPILER_VERSION:L} == "gcc4" | 9 | .if ${COMPILER_VERSION:L} == "clang" |
10 | CFLAGS+= -Werror | 10 | CFLAGS+= -Werror |
11 | .endif | 11 | .endif |
12 | CFLAGS+= -DLIBRESSL_INTERNAL | 12 | 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 @@ | |||
1 | # $OpenBSD: Makefile,v 1.9 2017/07/09 21:23:19 espie Exp $ | 1 | # $OpenBSD: Makefile,v 1.10 2017/08/13 19:42:33 doug Exp $ |
2 | 2 | ||
3 | .include <bsd.own.mk> | 3 | .include <bsd.own.mk> |
4 | 4 | ||
@@ -15,7 +15,7 @@ CFLAGS+= -Wreturn-type | |||
15 | CFLAGS+= -Wtrigraphs | 15 | CFLAGS+= -Wtrigraphs |
16 | CFLAGS+= -Wuninitialized | 16 | CFLAGS+= -Wuninitialized |
17 | CFLAGS+= -Wunused | 17 | CFLAGS+= -Wunused |
18 | .if ${COMPILER_VERSION:L} == "gcc4" | 18 | .if ${COMPILER_VERSION:L} == "clang" |
19 | CFLAGS+= -Werror | 19 | CFLAGS+= -Werror |
20 | .endif | 20 | .endif |
21 | CFLAGS+= -DLIBRESSL_INTERNAL | 21 | CFLAGS+= -DLIBRESSL_INTERNAL |