Page MenuHomeFreeBSD

ath: fix older clang build.
ClosedPublic

Authored by imp on Mar 2 2022, 4:09 AM.
Tags
None
Referenced Files
Unknown Object (File)
Apr 20 2024, 7:08 PM
Unknown Object (File)
Mar 7 2024, 7:41 PM
Unknown Object (File)
Jan 14 2024, 5:06 PM
Unknown Object (File)
Dec 28 2023, 12:25 PM
Unknown Object (File)
Dec 21 2023, 1:14 PM
Unknown Object (File)
Dec 20 2023, 4:53 AM
Unknown Object (File)
Dec 12 2023, 2:35 AM
Unknown Object (File)
Nov 15 2023, 8:28 PM
Subscribers
None

Details

Summary

Define NO_WUNUSED_BUT_SET_VARIABLE for clang, and use it in ATH_C to
account for different clang versions.

Sponsored by: Netflix

Diff Detail

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

Event Timeline

imp requested review of this revision.Mar 2 2022, 4:09 AM
imp created this revision.

This looks correct by my eyeball, thanks!

sys/conf/kern.mk
96

Style bit: no space before = on both of these

This revision is now accepted and ready to land.Mar 2 2022, 4:12 AM

The tithe isn’t quite right. This is more about fixing the build with older versions of clang, not GCC. I don’t know if we have a similar helper variable in the userland side (bad.sys.mk?). If so we should define the helper there as well.

sys/conf/kern.mk
95

I don’t think you need the else since the variable defaults to empty already?

sys/conf/kern.mk
96

done, and fixed where I copied it from...

s/tithe/title/ (hate phone keyboards)

It occurs to me that modules/ath/Makefile should also use it, since that's likely the next failure

In D34408#779492, @jhb wrote:

The title isn’t quite right. This is more about fixing the build with older versions of clang, not GCC. I don’t know if we have a similar helper variable in the userland side (bsd.sys.mk?). If so we should define the helper there as well.

Fixed title. We just turn off errors for this in bsd.sys.mk, so no changes are needed.

imp retitled this revision from ath: fix gcc build. to ath: fix clang build..Mar 2 2022, 4:38 AM
imp retitled this revision from ath: fix clang build. to ath: fix older clang build..Mar 2 2022, 4:43 AM
This revision now requires review to proceed.Mar 2 2022, 4:44 AM
This revision is now accepted and ready to land.Mar 2 2022, 4:56 AM
This revision was automatically updated to reflect the committed changes.