Disable a few warning flags that were introduced and enabled by default
authorpatrick <patrick@openbsd.org>
Fri, 17 Dec 2021 14:59:21 +0000 (14:59 +0000)
committerpatrick <patrick@openbsd.org>
Fri, 17 Dec 2021 14:59:21 +0000 (14:59 +0000)
with LLVM 13.

gnu/usr.bin/binutils-2.17/Makefile.bsd-wrapper
sys/arch/amd64/conf/Makefile.amd64
sys/arch/arm64/conf/Makefile.arm64
sys/arch/armv7/conf/Makefile.armv7
sys/arch/i386/conf/Makefile.i386
sys/arch/loongson/conf/Makefile.loongson
sys/arch/macppc/conf/Makefile.macppc
sys/arch/octeon/conf/Makefile.octeon
sys/arch/powerpc64/conf/Makefile.powerpc64
sys/arch/riscv64/conf/Makefile.riscv64
sys/arch/sparc64/conf/Makefile.sparc64

index 486aa67..37c17f4 100644 (file)
@@ -1,4 +1,4 @@
-#      $OpenBSD: Makefile.bsd-wrapper,v 1.24 2021/11/23 10:30:08 robert Exp $
+#      $OpenBSD: Makefile.bsd-wrapper,v 1.25 2021/12/17 14:59:21 patrick Exp $
 
 .include <bsd.own.mk>
 
@@ -8,6 +8,9 @@ SUBDIRS=        opcodes bfd
 CONF_SUBDIRS=  opcodes bfd
 
 CFLAGS+=       ${PIE_DEFAULT}
+.if ${COMPILER_VERSION:Mclang}
+CFLAGS+=       -Wno-unused-but-set-variable -Wno-null-pointer-subtraction
+.endif
 XCFLAGS=       CC="${CC}" CFLAGS="${CFLAGS} ${COPTS}" LDFLAGS="${LDSTATIC}"
 # This allows moving the whole binutils installation around for 
 # testing purposes
index 5295aea..289e609 100644 (file)
@@ -1,4 +1,4 @@
-#      $OpenBSD: Makefile.amd64,v 1.122 2021/11/27 00:49:21 jsg Exp $
+#      $OpenBSD: Makefile.amd64,v 1.123 2021/12/17 14:59:22 patrick Exp $
 
 # For instructions on building kernels consult the config(8) and options(4)
 # manual pages.
@@ -70,7 +70,8 @@ CMACHFLAGS+=  -mno-retpoline
 .endif
 .if ${COMPILER_VERSION:Mclang}
 NO_INTEGR_AS=  -no-integrated-as
-CWARNFLAGS+=   -Wno-address-of-packed-member -Wno-constant-conversion
+CWARNFLAGS+=   -Wno-address-of-packed-member -Wno-constant-conversion \
+               -Wno-unused-but-set-variable -Wno-gnu-folding-constant
 .endif
 
 DEBUG?=                -g
index c25537d..3d81d8b 100644 (file)
@@ -1,4 +1,4 @@
-#      $OpenBSD: Makefile.arm64,v 1.40 2021/11/27 00:49:21 jsg Exp $
+#      $OpenBSD: Makefile.arm64,v 1.41 2021/12/17 14:59:22 patrick Exp $
 
 # For instructions on building kernels consult the config(8) and options(4)
 # manual pages.
@@ -48,6 +48,7 @@ CPPFLAGS=     ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL -D__${_mach}__ -MD -MP
 CWARNFLAGS=    -Werror -Wall -Wimplicit-function-declaration \
                -Wno-pointer-sign \
                -Wno-constant-conversion -Wno-address-of-packed-member \
+               -Wno-unused-but-set-variable -Wno-gnu-folding-constant \
                -Wframe-larger-than=2047
 
 CMACHFLAGS=    -march=armv8-a+nofp+nosimd \
index 248beb6..d8fc771 100644 (file)
@@ -1,4 +1,4 @@
-#      $OpenBSD: Makefile.armv7,v 1.51 2021/11/27 00:49:21 jsg Exp $
+#      $OpenBSD: Makefile.armv7,v 1.52 2021/12/17 14:59:22 patrick Exp $
 
 # For instructions on building kernels consult the config(8) and options(4)
 # manual pages.
@@ -26,6 +26,7 @@ CPPFLAGS=     ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL -D__${_mach}__ -MD -MP
 CWARNFLAGS=    -Werror -Wall -Wimplicit-function-declaration \
                -Wno-pointer-sign \
                -Wno-constant-conversion -Wno-address-of-packed-member \
+               -Wno-unused-but-set-variable -Wno-gnu-folding-constant \
                -Wframe-larger-than=2047
 
 CMACHFLAGS=    -msoft-float -march=armv7a
index 4903579..4dbf184 100644 (file)
@@ -1,4 +1,4 @@
-#      $OpenBSD: Makefile.i386,v 1.141 2021/11/27 00:49:21 jsg Exp $
+#      $OpenBSD: Makefile.i386,v 1.142 2021/12/17 14:59:22 patrick Exp $
 
 # For instructions on building kernels consult the config(8) and options(4)
 # manual pages.
@@ -44,7 +44,8 @@ CMACHFLAGS+=  -mretpoline
 .endif
 .if ${COMPILER_VERSION:Mclang}
 NO_INTEGR_AS=  -no-integrated-as
-CWARNFLAGS+=   -Wno-address-of-packed-member -Wno-constant-conversion
+CWARNFLAGS+=   -Wno-address-of-packed-member -Wno-constant-conversion \
+               -Wno-unused-but-set-variable -Wno-gnu-folding-constant
 .endif
 
 DEBUG?=                -g
index c890376..c34f616 100644 (file)
@@ -1,4 +1,4 @@
-#      $OpenBSD: Makefile.loongson,v 1.81 2021/11/27 00:49:21 jsg Exp $
+#      $OpenBSD: Makefile.loongson,v 1.82 2021/12/17 14:59:22 patrick Exp $
 
 # For instructions on building kernels consult the config(8) and options(4)
 # manual pages.
@@ -49,7 +49,8 @@ COPTIMIZE?=   -Oz
 .if ${COMPILER_VERSION:Mclang}
 NO_INTEGR_AS=  -no-integrated-as
 CMACHFLAGS+=   -fomit-frame-pointer
-CWARNFLAGS+=   -Wno-address-of-packed-member -Wno-constant-conversion
+CWARNFLAGS+=   -Wno-address-of-packed-member -Wno-constant-conversion \
+               -Wno-unused-but-set-variable -Wno-gnu-folding-constant
 .endif
 
 DEBUG?=                -g
index cc6aad6..bd233e2 100644 (file)
@@ -1,4 +1,4 @@
-#      $OpenBSD: Makefile.macppc,v 1.103 2021/11/27 00:49:21 jsg Exp $
+#      $OpenBSD: Makefile.macppc,v 1.104 2021/12/17 14:59:22 patrick Exp $
 
 # For instructions on building kernels consult the config(8) and options(4)
 # manual pages.
@@ -44,7 +44,8 @@ COPTIMIZE?=   -Oz
 .endif
 .if ${COMPILER_VERSION:Mclang}
 NO_INTEGR_AS=  -no-integrated-as
-CWARNFLAGS+=   -Wno-address-of-packed-member -Wno-constant-conversion
+CWARNFLAGS+=   -Wno-address-of-packed-member -Wno-constant-conversion \
+               -Wno-unused-but-set-variable -Wno-gnu-folding-constant
 .endif
 
 DEBUG?=                -g
index f4c6d21..18833f6 100644 (file)
@@ -1,4 +1,4 @@
-#      $OpenBSD: Makefile.octeon,v 1.59 2021/11/27 00:49:22 jsg Exp $
+#      $OpenBSD: Makefile.octeon,v 1.60 2021/12/17 14:59:22 patrick Exp $
 
 # For instructions on building kernels consult the config(8) and options(4)
 # manual pages.
@@ -47,7 +47,8 @@ COPTIMIZE?=   -Oz
 .if ${COMPILER_VERSION:Mclang}
 NO_INTEGR_AS=  -no-integrated-as
 CMACHFLAGS+=   -fomit-frame-pointer
-CWARNFLAGS+=   -Wno-address-of-packed-member -Wno-constant-conversion
+CWARNFLAGS+=   -Wno-address-of-packed-member -Wno-constant-conversion \
+               -Wno-unused-but-set-variable -Wno-gnu-folding-constant
 .endif
 
 DEBUG?=                -g
index a58ec38..af763b3 100644 (file)
@@ -1,4 +1,4 @@
-#      $OpenBSD: Makefile.powerpc64,v 1.11 2021/11/27 00:49:22 jsg Exp $
+#      $OpenBSD: Makefile.powerpc64,v 1.12 2021/12/17 14:59:22 patrick Exp $
 
 # For instructions on building kernels consult the config(8) and options(4)
 # manual pages.
@@ -48,6 +48,7 @@ CPPFLAGS=     ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL -MD -MP
 CWARNFLAGS=    -Werror -Wall -Wimplicit-function-declaration \
                -Wno-pointer-sign \
                -Wno-constant-conversion -Wno-address-of-packed-member \
+               -Wno-unused-but-set-variable -Wno-gnu-folding-constant \
                -Wframe-larger-than=2047
 
 CMACHFLAGS=    -mabi=elfv2 -msoft-float -mno-altivec -mno-vsx
index 5c9b5e0..0972911 100644 (file)
@@ -1,4 +1,4 @@
-#      $OpenBSD: Makefile.riscv64,v 1.13 2021/11/27 00:49:22 jsg Exp $
+#      $OpenBSD: Makefile.riscv64,v 1.14 2021/12/17 14:59:22 patrick Exp $
 
 # For instructions on building kernels consult the config(8) and options(4)
 # manual pages.
@@ -28,6 +28,7 @@ CPPFLAGS=     ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL -D__${_mach}__ -MD -MP
 CWARNFLAGS=    -Werror -Wall -Wimplicit-function-declaration \
                -Wno-pointer-sign \
                -Wno-constant-conversion -Wno-address-of-packed-member \
+               -Wno-unused-but-set-variable -Wno-gnu-folding-constant \
                -Wframe-larger-than=2047
 
 CMACHFLAGS=    -march=rv64gc -mcmodel=medany -mno-relax \
index 7f2fdac..90913ac 100644 (file)
@@ -1,4 +1,4 @@
-#      $OpenBSD: Makefile.sparc64,v 1.103 2021/01/28 17:39:03 deraadt Exp $
+#      $OpenBSD: Makefile.sparc64,v 1.104 2021/12/17 14:59:22 patrick Exp $
 
 # For instructions on building kernels consult the config(8) and options(4)
 # manual pages.
@@ -45,7 +45,8 @@ COPTIMIZE?=   -Oz
 .endif
 .if ${COMPILER_VERSION:Mclang}
 CWARNFLAGS+=   -Wno-unused-command-line-argument
-CWARNFLAGS+=   -Wno-address-of-packed-member -Wno-constant-conversion
+CWARNFLAGS+=   -Wno-address-of-packed-member -Wno-constant-conversion \
+               -Wno-unused-but-set-variable -Wno-gnu-folding-constant
 .endif
 
 DEBUG?=                -g