Use the correct option to suppress warnings due to discarding const
from pointers on GCC vs clang.
Details
Details
- Reviewers
markj MichalX.Gulbicki_intel.com - Commits
- rGcdfe82d35abb: qat: Fix build with GCC.
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
sys/modules/qat/qat/Makefile | ||
---|---|---|
24 | How did this work with clang? IIRC setting CWARNFLAGS before including bsd.(kmod|prog|...).mk has no effect. |
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. |