mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-14 22:32:30 +01:00
Disable -Woverflow errors for i386 for GCC 9.
GCC 9 warns about floating point constants overflowing for i386. Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D26201
This commit is contained in:
parent
3b5f95d7bd
commit
93d6fa53c9
@ -196,6 +196,13 @@ CWARNFLAGS+= -Wno-error=aggressive-loop-optimizations \
|
||||
-Wno-error=stringop-truncation
|
||||
.endif
|
||||
|
||||
# GCC 9.2.0
|
||||
.if ${COMPILER_VERSION} >= 90200
|
||||
.if ${MACHINE_ARCH} == "i386"
|
||||
CWARNFLAGS+= -Wno-error=overflow
|
||||
.endif
|
||||
.endif
|
||||
|
||||
# GCC's own arm_neon.h triggers various warnings
|
||||
.if ${MACHINE_CPUARCH} == "aarch64"
|
||||
CWARNFLAGS+= -Wno-system-headers
|
||||
|
Loading…
Reference in New Issue
Block a user