Page MenuHomeFreeBSD

bsd.sys.mk: Silence a few GCC warnings for C++
ClosedPublic

Authored by jhb on Jan 25 2026, 4:54 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Oct 9, 7:12 PM
Unknown Object (File)
Sat, Oct 3, 5:54 AM
Unknown Object (File)
Sat, Oct 3, 12:11 AM
Unknown Object (File)
Fri, Oct 2, 8:29 PM
Unknown Object (File)
Fri, Oct 2, 3:53 AM
Unknown Object (File)
Tue, Sep 29, 6:23 PM
Unknown Object (File)
Tue, Sep 29, 4:17 PM
Unknown Object (File)
Sep 11 2026, 3:59 PM
Subscribers

Details

Summary

These warnings were already marked with -Wno-error=, but they trigger
so many false positives in libc++ headers to be utterly useless for
C++ code, so disable them entirely for C++.

Diff Detail

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

Event Timeline

This revision is now accepted and ready to land.Jan 25 2026, 5:20 AM

Indeed, the libc++ headers are extremely noisy with g++. Upstream does not care about compiling with -Wsystem-headers, so it's extremely unlikely these warnings will ever be fixed.

This revision was automatically updated to reflect the committed changes.