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)
Dec 8 2024, 6:49 PM
Unknown Object (File)
Dec 7 2024, 5:06 PM
Unknown Object (File)
Nov 21 2024, 9:04 AM
Unknown Object (File)
Nov 18 2024, 4:15 PM
Unknown Object (File)
Nov 5 2024, 6:48 AM
Unknown Object (File)
Oct 27 2024, 6:09 AM
Unknown Object (File)
Sep 24 2024, 12:52 PM
Unknown Object (File)
Sep 24 2024, 8:32 AM
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.