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, Nov 16, 4:17 PM
Unknown Object (File)
Fri, Nov 15, 11:25 PM
Unknown Object (File)
Fri, Nov 1, 9:08 PM
Unknown Object (File)
Mon, Oct 28, 10:03 AM
Unknown Object (File)
Oct 17 2024, 3:49 PM
Unknown Object (File)
Sep 21 2024, 4:45 AM
Unknown Object (File)
Sep 17 2024, 9:32 AM
Unknown Object (File)
Sep 7 2024, 3:17 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

Lint
Lint Skipped
Unit
Tests Skipped

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.