git: e120d3b2d48c - main - qat: Move CWARNFLAGS down so it works.

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Fri, 02 Sep 2022 21:53:10 UTC
The branch main has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=e120d3b2d48cc59b013b4e2fae292b738a294e21

commit e120d3b2d48cc59b013b4e2fae292b738a294e21
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-09-02 21:52:19 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-09-02 21:52:55 +0000

    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 5dd4bc25285b..20f3acd4ecdd 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 <bsd.kmod.mk>
+
+CWARNFLAGS+= -Wno-cast-qual