Cleanup compiler warning flags in lib/libefivar/Makefile
There is no need to set -Wno-unused-parameter twice, and instead of appending to CFLAGS, append to CWARNFLAGS instead. While here, add -Wno-unused-but-set-variable for the sake of clang 13.0.0. MFC after: 3 days
This commit is contained in:
parent
f1e2cc1c66
commit
f643997a17
@ -43,8 +43,7 @@ MAN= efivar.3
|
|||||||
|
|
||||||
CFLAGS+= -I${EFIBOOT}/include
|
CFLAGS+= -I${EFIBOOT}/include
|
||||||
CFLAGS+= -I${.CURDIR} -I${EDK2INC}
|
CFLAGS+= -I${.CURDIR} -I${EDK2INC}
|
||||||
|
CFLAGS+= -fno-strict-aliasing
|
||||||
CFLAGS.efivar-dp-format.c=-Wno-unused-parameter
|
|
||||||
|
|
||||||
MLINKS+=efivar.3 efi_set_variables_supported.3 \
|
MLINKS+=efivar.3 efi_set_variables_supported.3 \
|
||||||
efivar.3 efi_del_variable.3 \
|
efivar.3 efi_del_variable.3 \
|
||||||
@ -65,4 +64,9 @@ WARNS?= 9
|
|||||||
|
|
||||||
.include <bsd.lib.mk>
|
.include <bsd.lib.mk>
|
||||||
|
|
||||||
CFLAGS+= -fno-strict-aliasing -Wno-cast-align -Wno-unused-parameter
|
CWARNFLAGS+= -Wno-cast-align
|
||||||
|
CWARNFLAGS+= -Wno-unused-parameter
|
||||||
|
|
||||||
|
.if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 130000
|
||||||
|
CWARNFLAGS+= -Wno-unused-but-set-variable
|
||||||
|
.endif
|
||||||
|
Loading…
Reference in New Issue
Block a user