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
F169707316: D54867.diff
Wed, Sep 2, 8:34 AM
Unknown Object (File)
Tue, Sep 1, 3:07 AM
Unknown Object (File)
Mon, Aug 31, 7:09 PM
Unknown Object (File)
Mon, Aug 31, 3:09 PM
Unknown Object (File)
Mon, Aug 31, 3:01 PM
Unknown Object (File)
Mon, Aug 31, 1:11 PM
Unknown Object (File)
Thu, Aug 27, 8:45 PM
Unknown Object (File)
Wed, Aug 26, 10:47 AM
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 Skipped
Unit
Tests Skipped
Build Status
Buildable 70122
Build 67005: arc lint + arc unit

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.