stop building kernels with -Wno-uninitialized on clang archs
authorjsg <jsg@openbsd.org>
Sat, 27 Nov 2021 00:49:21 +0000 (00:49 +0000)
committerjsg <jsg@openbsd.org>
Sat, 27 Nov 2021 00:49:21 +0000 (00:49 +0000)
this hides real problems that could be found at build time

ok kettenis@ visa@, ok sashan@ on amd64/i386

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

index d36bae3..5295aea 100644 (file)
@@ -1,4 +1,4 @@
-#      $OpenBSD: Makefile.amd64,v 1.121 2021/07/12 06:07:33 jsg Exp $
+#      $OpenBSD: Makefile.amd64,v 1.122 2021/11/27 00:49:21 jsg Exp $
 
 # For instructions on building kernels consult the config(8) and options(4)
 # manual pages.
@@ -48,7 +48,7 @@ INCLUDES=     -nostdinc -I$S -I${.OBJDIR} -I$S/arch \
 CPPFLAGS=      ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL -MD -MP \
                -DCONFIG_DRM_AMD_DC_DCN3_0
 CWARNFLAGS=    -Werror -Wall -Wimplicit-function-declaration \
-               -Wno-uninitialized -Wno-pointer-sign \
+               -Wno-pointer-sign \
                -Wframe-larger-than=2047
 
 CMACHFLAGS=    -mcmodel=kernel -mno-red-zone -mno-sse2 -mno-sse -mno-3dnow \
index 0eb8e2e..c25537d 100644 (file)
@@ -1,4 +1,4 @@
-#      $OpenBSD: Makefile.arm64,v 1.39 2021/07/07 02:38:21 jsg Exp $
+#      $OpenBSD: Makefile.arm64,v 1.40 2021/11/27 00:49:21 jsg Exp $
 
 # For instructions on building kernels consult the config(8) and options(4)
 # manual pages.
@@ -46,7 +46,7 @@ INCLUDES=     -nostdinc -I$S -I${.OBJDIR} -I$S/arch \
                -I$S/dev/pci/drm/amd/display/dmub/inc
 CPPFLAGS=      ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL -D__${_mach}__ -MD -MP
 CWARNFLAGS=    -Werror -Wall -Wimplicit-function-declaration \
-               -Wno-uninitialized -Wno-pointer-sign \
+               -Wno-pointer-sign \
                -Wno-constant-conversion -Wno-address-of-packed-member \
                -Wframe-larger-than=2047
 
index bba9438..248beb6 100644 (file)
@@ -1,4 +1,4 @@
-#      $OpenBSD: Makefile.armv7,v 1.50 2021/05/16 02:01:33 jsg Exp $
+#      $OpenBSD: Makefile.armv7,v 1.51 2021/11/27 00:49:21 jsg Exp $
 
 # For instructions on building kernels consult the config(8) and options(4)
 # manual pages.
@@ -24,7 +24,7 @@ _archdir?=    $S/arch/${_arch}
 INCLUDES=      -nostdinc -I$S -I. -I$S/arch
 CPPFLAGS=      ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL -D__${_mach}__ -MD -MP
 CWARNFLAGS=    -Werror -Wall -Wimplicit-function-declaration \
-               -Wno-uninitialized -Wno-pointer-sign \
+               -Wno-pointer-sign \
                -Wno-constant-conversion -Wno-address-of-packed-member \
                -Wframe-larger-than=2047
 
index d8ab48f..4903579 100644 (file)
@@ -1,4 +1,4 @@
-#      $OpenBSD: Makefile.i386,v 1.140 2021/01/28 17:39:03 deraadt Exp $
+#      $OpenBSD: Makefile.i386,v 1.141 2021/11/27 00:49:21 jsg Exp $
 
 # For instructions on building kernels consult the config(8) and options(4)
 # manual pages.
@@ -27,7 +27,7 @@ INCLUDES=     -nostdinc -I$S -I${.OBJDIR} -I$S/arch \
                -I$S/dev/pci/drm/i915
 CPPFLAGS=      ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL -MD -MP
 CWARNFLAGS=    -Werror -Wall -Wimplicit-function-declaration \
-               -Wno-uninitialized -Wno-pointer-sign \
+               -Wno-pointer-sign \
                -Wframe-larger-than=2047
 
 CMACHFLAGS=
index ef0c4a6..c890376 100644 (file)
@@ -1,4 +1,4 @@
-#      $OpenBSD: Makefile.loongson,v 1.80 2021/01/28 17:39:03 deraadt Exp $
+#      $OpenBSD: Makefile.loongson,v 1.81 2021/11/27 00:49:21 jsg Exp $
 
 # For instructions on building kernels consult the config(8) and options(4)
 # manual pages.
@@ -33,7 +33,7 @@ INCLUDES=     -nostdinc -I$S -I${.OBJDIR} -I$S/arch \
                -I$S/dev/pci/drm/include/uapi
 CPPFLAGS=      ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL -D__${_mach}__ -MD -MP
 CWARNFLAGS=    -Werror -Wall -Wimplicit-function-declaration \
-               -Wno-uninitialized -Wno-pointer-sign \
+               -Wno-pointer-sign \
                -Wframe-larger-than=2047
 
 CMACHFLAGS=    -mno-abicalls ${ABI} -msoft-float -Wa,-mfix-loongson2f-btb -G 0
index 96c49bc..cc6aad6 100644 (file)
@@ -1,4 +1,4 @@
-#      $OpenBSD: Makefile.macppc,v 1.102 2021/05/10 17:29:41 gkoehler Exp $
+#      $OpenBSD: Makefile.macppc,v 1.103 2021/11/27 00:49:21 jsg Exp $
 
 # For instructions on building kernels consult the config(8) and options(4)
 # manual pages.
@@ -26,7 +26,7 @@ INCLUDES=     -nostdinc -I$S -I${.OBJDIR} -I$S/arch \
                -I$S/dev/pci/drm/include/uapi
 CPPFLAGS=      ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL -D__${_mach}__ -MD -MP
 CWARNFLAGS=    -Werror -Wall -Wimplicit-function-declaration \
-               -Wno-main -Wno-uninitialized -Wno-pointer-sign \
+               -Wno-main -Wno-pointer-sign \
                -Wframe-larger-than=2047
 
 CMACHFLAGS=    -msoft-float
index 42ccce9..f4c6d21 100644 (file)
@@ -1,4 +1,4 @@
-#      $OpenBSD: Makefile.octeon,v 1.58 2021/02/06 09:31:47 visa Exp $
+#      $OpenBSD: Makefile.octeon,v 1.59 2021/11/27 00:49:22 jsg Exp $
 
 # For instructions on building kernels consult the config(8) and options(4)
 # manual pages.
@@ -31,7 +31,7 @@ _archdir?=    $S/arch/${_arch}
 INCLUDES=      -nostdinc -I$S -I${.OBJDIR} -I$S/arch
 CPPFLAGS=      ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL -D__${_mach}__ -MD -MP
 CWARNFLAGS=    -Werror -Wall -Wimplicit-function-declaration \
-               -Wno-uninitialized -Wno-pointer-sign \
+               -Wno-pointer-sign \
                -Wframe-larger-than=2047
 
 CMACHFLAGS=    -mno-abicalls ${ABI} -msoft-float -G 0
index d8489d8..a58ec38 100644 (file)
@@ -1,4 +1,4 @@
-#      $OpenBSD: Makefile.powerpc64,v 1.10 2021/07/07 02:38:21 jsg Exp $
+#      $OpenBSD: Makefile.powerpc64,v 1.11 2021/11/27 00:49:22 jsg Exp $
 
 # For instructions on building kernels consult the config(8) and options(4)
 # manual pages.
@@ -46,7 +46,7 @@ INCLUDES=     -nostdinc -I$S -I${.OBJDIR} -I$S/arch \
                -I$S/dev/pci/drm/amd/display/dmub/inc
 CPPFLAGS=      ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL -MD -MP
 CWARNFLAGS=    -Werror -Wall -Wimplicit-function-declaration \
-               -Wno-uninitialized -Wno-pointer-sign \
+               -Wno-pointer-sign \
                -Wno-constant-conversion -Wno-address-of-packed-member \
                -Wframe-larger-than=2047
 
index 9a95110..5c9b5e0 100644 (file)
@@ -1,4 +1,4 @@
-#      $OpenBSD: Makefile.riscv64,v 1.12 2021/06/29 18:45:41 deraadt Exp $
+#      $OpenBSD: Makefile.riscv64,v 1.13 2021/11/27 00:49:22 jsg Exp $
 
 # For instructions on building kernels consult the config(8) and options(4)
 # manual pages.
@@ -26,7 +26,7 @@ INCLUDES=     -nostdinc -I$S -I${.OBJDIR} -I$S/arch \
                -I$S/dev/pci/drm/include/uapi
 CPPFLAGS=      ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL -D__${_mach}__ -MD -MP
 CWARNFLAGS=    -Werror -Wall -Wimplicit-function-declaration \
-               -Wno-uninitialized -Wno-pointer-sign \
+               -Wno-pointer-sign \
                -Wno-constant-conversion -Wno-address-of-packed-member \
                -Wframe-larger-than=2047