qat: Fix build with GCC.

Use the correct option to suppress warnings due to discarding const
from pointers on GCC vs clang.

Reviewed by:	markj
Differential Revision:	https://reviews.freebsd.org/D36780
This commit is contained in:
John Baldwin 2022-09-29 15:07:02 -07:00
parent b174653495
commit cdfe82d35a

View File

@ -18,7 +18,12 @@ CFLAGS+= -I${SRCTOP}/sys/dev/qat/qat_api/qat_direct/include
CFLAGS+= -I${SRCTOP}/sys/dev/qat/qat_api/firmware/include
CFLAGS+= -I${SRCTOP}/sys/dev/qat/qat_api/common/crypto/sym/include
.include <bsd.kmod.mk>
.if ${COMPILER_TYPE} == "clang"
CWARNFLAGS.qat_ocf.c += -Wno-incompatible-pointer-types-discards-qualifiers
CWARNFLAGS.qat_ocf_utils.c += -Wno-incompatible-pointer-types-discards-qualifiers
.include <bsd.kmod.mk>
.elif ${COMPILER_TYPE} == "gcc"
CWARNFLAGS.qat_ocf.c += -Wno-discarded-qualifiers
CWARNFLAGS.qat_ocf_utils.c += -Wno-discarded-qualifiers
.endif