Define NO_WUNUSED_BUT_SET_VARIABLE for clang, and use it in ATH_C to
account for different clang versions.
Sponsored by: Netflix
Differential D34408
ath: fix older clang build. imp on Mar 2 2022, 4:09 AM. Authored by Tags None Referenced Files
Subscribers None
Details
Define NO_WUNUSED_BUT_SET_VARIABLE for clang, and use it in ATH_C to Sponsored by: Netflix
Diff Detail
Event TimelineComment Actions This looks correct by my eyeball, thanks!
Comment Actions 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.
Comment Actions It occurs to me that modules/ath/Makefile should also use it, since that's likely the next failure Comment Actions Fixed title. We just turn off errors for this in bsd.sys.mk, so no changes are needed. |