Fix build: ignore a GCC 7.2.0 warning which says that third argument of

memset(3) should contain the number of elements multiplied by the element
size.

Sponsored by:	DARPA, AFRL
This commit is contained in:
br 2018-06-04 16:20:22 +00:00
parent 17d14fe5ae
commit 578540897a

View File

@ -67,6 +67,9 @@ CWARNEXTRA+= -Wno-error=misleading-indentation \
-Wno-error=shift-overflow \
-Wno-error=tautological-compare
.endif
.if ${COMPILER_VERSION} >= 70200
CWARNEXTRA+= -Wno-error=memset-elt-size
.endif
.if ${COMPILER_VERSION} >= 80000
CWARNEXTRA+= -Wno-error=packed-not-aligned
.endif