HomeFreeBSD

<net/if_strings.h>: Conditionally export table of bit names

Description

<net/if_strings.h>: Conditionally export table of bit names

Only export the array of string names if _WANT_IFCAP_BIT_NAMES is
defined. Exporting them unconditionally can trigger unused variable
warnings if a consumer doesn't use the array.

Reviewed by: olce, bz, brooks
Differential Revision: https://reviews.freebsd.org/D49954

Details

Provenance
jhbAuthored on Apr 28 2025, 5:05 PM
Reviewer
olce
Differential Revision
D49954: <net/if_strings.h>: Conditionally export table of bit names
Parents
rGb392a90ba4e5: kyua: Switch from std::auto_ptr<> to std::unique_ptr<>
Branches
Unknown
Tags
Unknown