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)
Sat, Dec 21, 1:27 AM
Unknown Object (File)
Dec 1 2024, 7:08 AM
Unknown Object (File)
Nov 26 2024, 8:50 PM
Unknown Object (File)
Nov 26 2024, 8:50 PM
Unknown Object (File)
Nov 26 2024, 8:48 PM
Unknown Object (File)
Nov 26 2024, 8:30 PM
Unknown Object (File)
Nov 15 2024, 3:15 PM
Unknown Object (File)
Nov 15 2024, 1:13 PM
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