HomeFreeBSD

sys: Stop enabling -Wnested-externs.

Description

sys: Stop enabling -Wnested-externs.

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.

Reviewed by: markj, emaste
Differential Revision: https://reviews.freebsd.org/D39214

(cherry picked from commit 4ffeb3b88ed228e72e13abe1be888c77c6ede95d)

Details

Provenance
jhbAuthored on Mar 22 2023, 7:35 PM
Reviewer
markj
Parents
rG5c64fbe7651c: ocs: Fix mismatch in array bounds.
Branches
Unknown
Tags
Unknown