diff options
author | John Baldwin <jhb@FreeBSD.org> | 2022-09-02 21:52:19 +0000 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2022-09-02 21:52:55 +0000 |
commit | e120d3b2d48cc59b013b4e2fae292b738a294e21 (patch) | |
tree | 8d55305298a9a7f4c0f633ff18ecca50bed20b9b | |
parent | 1c4c92f91b41861b1c9c71297695b89033827871 (diff) | |
download | src-e120d3b2d48cc59b013b4e2fae292b738a294e21.tar.gz src-e120d3b2d48cc59b013b4e2fae292b738a294e21.zip |
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
-rw-r--r-- | sys/modules/qat/qat_api/Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
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 |