From 1020003cc65111ee9bfeca71e458cc7da16772b5 Mon Sep 17 00:00:00 2001 From: Enji Cooper Date: Tue, 28 Mar 2017 20:30:33 +0000 Subject: [PATCH] Use `NO_WCAST_ALIGN` instead of spelling it out as -Wno-cast-align in CFLAGS MFC after: 3 days Sponsored by: Dell EMC Isilon --- sys/boot/i386/gptzfsboot/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/boot/i386/gptzfsboot/Makefile b/sys/boot/i386/gptzfsboot/Makefile index f46bf303793..dc2058d450b 100644 --- a/sys/boot/i386/gptzfsboot/Makefile +++ b/sys/boot/i386/gptzfsboot/Makefile @@ -33,11 +33,13 @@ CFLAGS= -DBOOTPROG=\"gptzfsboot\" \ -I${.CURDIR}/../btx/lib -I. \ -I${.CURDIR}/../boot2 \ -I${.CURDIR}/../../.. \ - -Wall -Waggregate-return -Wbad-function-cast -Wno-cast-align \ + -Wall -Waggregate-return -Wbad-function-cast \ -Wmissing-declarations -Wmissing-prototypes -Wnested-externs \ -Wpointer-arith -Wshadow -Wstrict-prototypes -Wwrite-strings \ -Winline -Wno-pointer-sign +NO_WCAST_ALIGN= + .if ${COMPILER_TYPE} == "clang" || \ (${COMPILER_TYPE} == "gcc" && ${COMPILER_VERSION} > 40201) CFLAGS+= -Wno-tentative-definition-incomplete-type