Avoid setting -Wno-tentative-definition-incomplete-type with gcc.

No version of gcc that I've tried accepts this flag.

Reviewed by:	imp
Differential Revision:	https://reviews.freebsd.org/D13415
This commit is contained in:
Mark Johnston 2017-12-07 22:11:23 +00:00
parent 95708dbcae
commit 2dbeaed483

View File

@ -39,12 +39,9 @@ CFLAGS+=-DBOOTPROG=\"gptzfsboot\" \
-Wpointer-arith -Wshadow -Wstrict-prototypes -Wwrite-strings \
-Winline -Wno-pointer-sign
NO_WCAST_ALIGN=
CFLAGS.clang+= -Wno-tentative-definition-incomplete-type
.if ${COMPILER_TYPE} == "clang" || \
(${COMPILER_TYPE} == "gcc" && ${COMPILER_VERSION} > 40201)
CFLAGS+= -Wno-tentative-definition-incomplete-type
.endif
NO_WCAST_ALIGN=
.if ${MACHINE} == "amd64"
LIBZFSBOOT=${BOOTOBJ}/zfs32/libzfsboot.a