Page MenuHomeFreeBSD

qat: Fix build with GCC.
ClosedPublic

Authored by jhb on Sep 28 2022, 9:15 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Apr 18, 11:27 PM
Unknown Object (File)
Wed, Apr 15, 12:55 PM
Unknown Object (File)
Wed, Apr 15, 8:45 AM
Unknown Object (File)
Tue, Apr 14, 9:17 AM
Unknown Object (File)
Sat, Apr 11, 3:56 AM
Unknown Object (File)
Fri, Apr 10, 5:14 AM
Unknown Object (File)
Fri, Apr 3, 10:42 AM
Unknown Object (File)
Thu, Apr 2, 4:14 PM
Subscribers

Details

Summary

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

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

jhb requested review of this revision.Sep 28 2022, 9:15 PM
markj added inline comments.
sys/modules/qat/qat/Makefile
24

How did this work with clang? IIRC setting CWARNFLAGS before including bsd.(kmod|prog|...).mk has no effect.

This revision is now accepted and ready to land.Sep 28 2022, 9:18 PM
sys/modules/qat/qat/Makefile
24

Setting the per-file CWARNFLAGS works fine as that gets appended to CWARNFLAGS for a given file later.

However, in this case I needed bsd.kmod.mk to include bsd.compiler.mk to define COMPILER_TYPE.

This revision was automatically updated to reflect the committed changes.