diff options
author | tb <> | 2023-05-05 21:23:02 +0000 |
---|---|---|
committer | tb <> | 2023-05-05 21:23:02 +0000 |
commit | eaf8d142740bc12e53ffe150ed3d8e6223aa5ddc (patch) | |
tree | eb2a644afeeb550269f569b68c2440e0f580a00f /src | |
parent | 23ad392ed1bdbab23580b4ecbbc4d268cebff20b (diff) | |
download | openbsd-eaf8d142740bc12e53ffe150ed3d8e6223aa5ddc.tar.gz openbsd-eaf8d142740bc12e53ffe150ed3d8e6223aa5ddc.tar.bz2 openbsd-eaf8d142740bc12e53ffe150ed3d8e6223aa5ddc.zip |
Use -Wshadow with clang
ok jsing (a very long time ago)
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/libcrypto/Makefile | 4 | ||||
-rw-r--r-- | src/lib/libssl/Makefile | 4 | ||||
-rw-r--r-- | src/lib/libtls/Makefile | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/libcrypto/Makefile b/src/lib/libcrypto/Makefile index 738bab21d3..be167a93f2 100644 --- a/src/lib/libcrypto/Makefile +++ b/src/lib/libcrypto/Makefile | |||
@@ -1,4 +1,4 @@ | |||
1 | # $OpenBSD: Makefile,v 1.126 2023/05/05 12:20:03 tb Exp $ | 1 | # $OpenBSD: Makefile,v 1.127 2023/05/05 21:23:02 tb Exp $ |
2 | 2 | ||
3 | LIB= crypto | 3 | LIB= crypto |
4 | LIBREBUILD=y | 4 | LIBREBUILD=y |
@@ -16,7 +16,7 @@ LCRYPTO_SRC= ${.CURDIR} | |||
16 | 16 | ||
17 | CFLAGS+= -Wall -Wundef | 17 | CFLAGS+= -Wall -Wundef |
18 | .if ${COMPILER_VERSION:L} == "clang" | 18 | .if ${COMPILER_VERSION:L} == "clang" |
19 | CFLAGS+= -Werror | 19 | CFLAGS+= -Werror -Wshadow |
20 | .endif | 20 | .endif |
21 | CFLAGS+= -DLIBRESSL_INTERNAL -DLIBRESSL_CRYPTO_INTERNAL | 21 | CFLAGS+= -DLIBRESSL_INTERNAL -DLIBRESSL_CRYPTO_INTERNAL |
22 | .ifdef NAMESPACE | 22 | .ifdef NAMESPACE |
diff --git a/src/lib/libssl/Makefile b/src/lib/libssl/Makefile index a6ee26a667..b5b4ff4d31 100644 --- a/src/lib/libssl/Makefile +++ b/src/lib/libssl/Makefile | |||
@@ -1,4 +1,4 @@ | |||
1 | # $OpenBSD: Makefile,v 1.78 2022/11/11 11:25:18 beck Exp $ | 1 | # $OpenBSD: Makefile,v 1.79 2023/05/05 21:23:02 tb Exp $ |
2 | 2 | ||
3 | .include <bsd.own.mk> | 3 | .include <bsd.own.mk> |
4 | .ifndef NOMAN | 4 | .ifndef NOMAN |
@@ -13,7 +13,7 @@ LIB= ssl | |||
13 | 13 | ||
14 | CFLAGS+= -Wall -Wundef | 14 | CFLAGS+= -Wall -Wundef |
15 | .if ${COMPILER_VERSION:L} == "clang" | 15 | .if ${COMPILER_VERSION:L} == "clang" |
16 | CFLAGS+= -Werror | 16 | CFLAGS+= -Werror -Wshadow |
17 | .endif | 17 | .endif |
18 | CFLAGS+= -DLIBRESSL_INTERNAL | 18 | CFLAGS+= -DLIBRESSL_INTERNAL |
19 | .ifdef NAMESPACE | 19 | .ifdef NAMESPACE |
diff --git a/src/lib/libtls/Makefile b/src/lib/libtls/Makefile index 78ff99b585..8287fec8fd 100644 --- a/src/lib/libtls/Makefile +++ b/src/lib/libtls/Makefile | |||
@@ -1,4 +1,4 @@ | |||
1 | # $OpenBSD: Makefile,v 1.37 2022/01/25 21:51:24 eric Exp $ | 1 | # $OpenBSD: Makefile,v 1.38 2023/05/05 21:23:02 tb Exp $ |
2 | 2 | ||
3 | .include <bsd.own.mk> | 3 | .include <bsd.own.mk> |
4 | .ifndef NOMAN | 4 | .ifndef NOMAN |
@@ -7,7 +7,7 @@ SUBDIR= man | |||
7 | 7 | ||
8 | CFLAGS+= -Wall -Wimplicit -Wundef | 8 | CFLAGS+= -Wall -Wimplicit -Wundef |
9 | .if ${COMPILER_VERSION:L} == "clang" | 9 | .if ${COMPILER_VERSION:L} == "clang" |
10 | CFLAGS+= -Werror | 10 | CFLAGS+= -Werror -Wshadow |
11 | .endif | 11 | .endif |
12 | CFLAGS+= -DLIBRESSL_INTERNAL | 12 | CFLAGS+= -DLIBRESSL_INTERNAL |
13 | 13 | ||