mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04: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
1 changed files with 2 additions and 5 deletions
|
|
@ -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