libefivar: Add note about extra compiler flags

Add a note about why we need these extra compiler flags to suppress
warnings. EDK2 upstream code is being used verbatim and as of the last
update these issuse persist, but are benign.

Sponsored by:		Netflix
Reviewed by:		asomers
Differential Revision:	https://reviews.freebsd.org/D38613
This commit is contained in:
Warner Losh 2023-02-15 16:02:56 -07:00
parent 04a5e6d7ca
commit 942815c548

View file

@ -64,9 +64,10 @@ WARNS?= 9
.include <bsd.lib.mk>
# We use UEFI parsing and formatting code from upstream EDK2 project.
# They still have issues that require us to susppress some warnings.
CWARNFLAGS+= -Wno-cast-align
CWARNFLAGS+= -Wno-unused-parameter
.if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 130000
CWARNFLAGS+= -Wno-unused-but-set-variable
.endif