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

Details

Provenance
jhbAuthored on Mar 22 2023, 7:35 PM
Reviewer
markj
Differential Revision
D39214: sys: Stop enabling -Wnested-externs.
Parents
rG7bf44831ca05: bhyve: Don't return -ENOMEM from qemu_fwcfg_add_file.
Branches
Unknown
Tags
Unknown