From: tb Date: Fri, 5 May 2023 21:23:02 +0000 (+0000) Subject: Use -Wshadow with clang X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=90edf538b0aa19362f9fc79de7e982bb58b15ff3;p=openbsd Use -Wshadow with clang ok jsing (a very long time ago) --- 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