Page MenuHomeFreeBSD

sys: Stop enabling -Wnested-externs.
ClosedPublic

Authored by jhb on Mar 22 2023, 6:01 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, May 20, 11:59 AM
Unknown Object (File)
Apr 5 2024, 7:17 PM
Unknown Object (File)
Apr 5 2024, 6:37 PM
Unknown Object (File)
Apr 5 2024, 6:37 PM
Unknown Object (File)
Apr 5 2024, 6:26 PM
Unknown Object (File)
Jan 31 2024, 11:04 AM
Unknown Object (File)
Jan 31 2024, 10:53 AM
Unknown Object (File)
Dec 23 2023, 12:32 AM
Subscribers

Details

Summary

clang doesn't implement this warning, so violations are only caught by
GCC. It is also no longer a common practice to use this as it was in
the original BSD code, so the need for the warning is not as important
as when it was used to do cleanups 20 years ago. A recent commit
(c3179891f897d840f578a5139839fcacb587c96d) triggers this warning on
GCC, but that commit uses nested externs purposefully.

Diff Detail

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