From e120d3b2d48cc59b013b4e2fae292b738a294e21 Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Fri, 2 Sep 2022 14:52:19 -0700 Subject: [PATCH] qat: Move CWARNFLAGS down so it works. CWARNFLAGS must be added to after including kern.mk, otherwise all the warnings set in kern.mk are ignored. This is why the -Wmissing-prototypes warnings were not seen previously. While here, drop -Wno-pointer-sign as it is doesn't seem to be needed, but add -Wno-cast-qual to silence warnings for various casts of const pointers to non-const pointers. Reviewed by: MichalX.Gulbicki_intel.com, markj Sponsored by: DARPA Differential Revision: https://reviews.freebsd.org/D36332 --- sys/modules/qat/qat_api/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/modules/qat/qat_api/Makefile b/sys/modules/qat/qat_api/Makefile index 5dd4bc25285..20f3acd4ecd 100644 --- a/sys/modules/qat/qat_api/Makefile +++ b/sys/modules/qat/qat_api/Makefile @@ -71,5 +71,6 @@ CFLAGS+= -I${SRCTOP}/sys/dev/qat/qat_api/firmware/include CFLAGS+= -I${SRCTOP}/sys/dev/qat/include/common CFLAGS+= -I${SYSDIR}/compat/linuxkpi/common/include -CWARNFLAGS += -Wno-pointer-sign .include + +CWARNFLAGS+= -Wno-cast-qual