Date: Sun, 29 Aug 2021 10:30:12 GMT From: Dimitry Andric <dim@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: ab18f56db464 - stable/13 - Cleanup compiler warning flags in lib/libefivar/Makefile Message-ID: <202108291030.17TAUC2Q024158@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=ab18f56db464707c8e1c4136e960edddb56cb925 commit ab18f56db464707c8e1c4136e960edddb56cb925 Author: Dimitry Andric <dim@FreeBSD.org> AuthorDate: 2021-08-26 18:53:18 +0000 Commit: Dimitry Andric <dim@FreeBSD.org> CommitDate: 2021-08-29 10:29:26 +0000 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. (cherry picked from commit f643997a1761689ef9108d69b86d42881ea0ab1c) --- lib/libefivar/Makefile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/lib/libefivar/Makefile b/lib/libefivar/Makefile index 3c6b17333407..c1503f4e5b62 100644 --- a/lib/libefivar/Makefile +++ b/lib/libefivar/Makefile @@ -43,8 +43,7 @@ MAN= efivar.3 CFLAGS+= -I${EFIBOOT}/include CFLAGS+= -I${.CURDIR} -I${EDK2INC} - -CFLAGS.efivar-dp-format.c=-Wno-unused-parameter +CFLAGS+= -fno-strict-aliasing MLINKS+=efivar.3 efi_set_variables_supported.3 \ efivar.3 efi_del_variable.3 \ @@ -65,4 +64,9 @@ WARNS?= 9 .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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202108291030.17TAUC2Q024158>