mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 21:05:08 +00:00
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:
parent
95708dbcae
commit
2dbeaed483
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=326671
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue