Use -Wshadow with clang
authortb <tb@openbsd.org>
Fri, 5 May 2023 21:23:02 +0000 (21:23 +0000)
committertb <tb@openbsd.org>
Fri, 5 May 2023 21:23:02 +0000 (21:23 +0000)
ok jsing (a very long time ago)

lib/libcrypto/Makefile
lib/libssl/Makefile
lib/libtls/Makefile

index 738bab2..be167a9 100644 (file)
@@ -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
index a6ee26a..b5b4ff4 100644 (file)
@@ -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 <bsd.own.mk>
 .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
index 78ff99b..8287fec 100644 (file)
@@ -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 <bsd.own.mk>
 .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