From 90edf538b0aa19362f9fc79de7e982bb58b15ff3 Mon Sep 17 00:00:00 2001 From: tb Date: Fri, 5 May 2023 21:23:02 +0000 Subject: [PATCH] Use -Wshadow with clang ok jsing (a very long time ago) --- lib/libcrypto/Makefile | 4 ++-- lib/libssl/Makefile | 4 ++-- lib/libtls/Makefile | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/libcrypto/Makefile b/lib/libcrypto/Makefile index 738bab21d3f..be167a93f2c 100644 --- a/lib/libcrypto/Makefile +++ b/lib/libcrypto/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.126 2023/05/05 12:20:03 tb Exp $ +# $OpenBSD: Makefile,v 1.127 2023/05/05 21:23:02 tb Exp $ LIB= crypto LIBREBUILD=y @@ -16,7 +16,7 @@ LCRYPTO_SRC= ${.CURDIR} CFLAGS+= -Wall -Wundef .if ${COMPILER_VERSION:L} == "clang" -CFLAGS+= -Werror +CFLAGS+= -Werror -Wshadow .endif CFLAGS+= -DLIBRESSL_INTERNAL -DLIBRESSL_CRYPTO_INTERNAL .ifdef NAMESPACE diff --git a/lib/libssl/Makefile b/lib/libssl/Makefile index a6ee26a6676..b5b4ff4d318 100644 --- a/lib/libssl/Makefile +++ b/lib/libssl/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.78 2022/11/11 11:25:18 beck Exp $ +# $OpenBSD: Makefile,v 1.79 2023/05/05 21:23:02 tb Exp $ .include .ifndef NOMAN @@ -13,7 +13,7 @@ LIB= ssl CFLAGS+= -Wall -Wundef .if ${COMPILER_VERSION:L} == "clang" -CFLAGS+= -Werror +CFLAGS+= -Werror -Wshadow .endif CFLAGS+= -DLIBRESSL_INTERNAL .ifdef NAMESPACE diff --git a/lib/libtls/Makefile b/lib/libtls/Makefile index 78ff99b5857..8287fec8fd0 100644 --- a/lib/libtls/Makefile +++ b/lib/libtls/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.37 2022/01/25 21:51:24 eric Exp $ +# $OpenBSD: Makefile,v 1.38 2023/05/05 21:23:02 tb Exp $ .include .ifndef NOMAN @@ -7,7 +7,7 @@ SUBDIR= man CFLAGS+= -Wall -Wimplicit -Wundef .if ${COMPILER_VERSION:L} == "clang" -CFLAGS+= -Werror +CFLAGS+= -Werror -Wshadow .endif CFLAGS+= -DLIBRESSL_INTERNAL -- 2.20.1