qat: Move CWARNFLAGS down so it works.
authorJohn Baldwin <jhb@FreeBSD.org>
Fri, 2 Sep 2022 21:52:19 +0000 (14:52 -0700)
committerJohn Baldwin <jhb@FreeBSD.org>
Fri, 2 Sep 2022 21:52:55 +0000 (14:52 -0700)
commite120d3b2d48cc59b013b4e2fae292b738a294e21
tree8d55305298a9a7f4c0f633ff18ecca50bed20b9b
parent1c4c92f91b41861b1c9c71297695b89033827871
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