Page MenuHomeFreeBSD

rb_tree: silence unused function warnings
ClosedPublic

Authored by dougm on Sep 18 2022, 3:52 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Feb 22, 2:25 PM
Unknown Object (File)
Sat, Feb 22, 1:57 PM
Unknown Object (File)
Sat, Feb 22, 1:53 PM
Unknown Object (File)
Jan 31 2025, 12:00 AM
Unknown Object (File)
Jan 30 2025, 6:54 PM
Unknown Object (File)
Jan 27 2025, 4:38 PM
Unknown Object (File)
Jan 27 2025, 4:32 PM
Unknown Object (File)
Jan 21 2025, 12:01 PM
Subscribers

Details

Summary

With DIAGNOSTIC set a kernel build generates warnings about the defined-but-unused RB_RANK method. Don't set _RB_DIAGNOSTIC automatically, to silence these warnings.

Diff Detail

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

Event Timeline

dougm requested review of this revision.Sep 18 2022, 3:52 AM
dougm created this revision.

Alternately, I think we could work around this by annotating the generated function with "inline".

This revision is now accepted and ready to land.Sep 18 2022, 8:32 AM
This revision was automatically updated to reflect the committed changes.