Page MenuHomeFreeBSD

bsd.clang-analyze.mk: silence Annex K (DeprecatedOrUnsafeBufferHandling) by default
Needs ReviewPublic

Authored by siva on Jul 24 2026, 5:49 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Sep 8, 5:10 AM
Unknown Object (File)
Mon, Sep 7, 6:49 AM
Unknown Object (File)
Fri, Sep 4, 5:22 PM
Unknown Object (File)
Tue, Sep 1, 6:57 PM
Unknown Object (File)
Mon, Aug 31, 10:38 PM
Unknown Object (File)
Sun, Aug 16, 8:08 PM
Unknown Object (File)
Thu, Aug 13, 6:00 AM
Unknown Object (File)
Aug 8 2026, 10:59 AM

Details

Reviewers
None
Group Reviewers
srcmgr
Summary

This introduces a new make variable CLANG_ANALYZE_SILENCED_CHECKERS that
silences a given list of checkers (from https://clang.llvm.org/docs/analyzer/checkers.html).

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 75099
Build 71982: arc lint + arc unit

Event Timeline

siva requested review of this revision.Jul 24 2026, 5:49 PM
markj added inline comments.
share/mk/bsd.clang-analyze.mk
47

I think some comment explaining why we suppress this would be worthwhile.

Also this feels like too large a hammer. This flag also suppresses warnings about use of sprintf()... but that's quite different from fprintf(). That's really silly. :(

And to top it off, we don't even implement fprintf_s() or sprintf_s() as far as I can see.