HomeFreeBSD

libalias: Fix compile time warning about unused functions

Description

libalias: Fix compile time warning about unused functions

Compiling libalias results in warnings about unused functions.
Those warnings are caused by clang's heuristic to consider an inline
function as in use, iff the declaration is in a *.c file.
Declarations in *.h files do not emit those warnings.

Hence the declarations must be moved to an extra *.h file.

MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D30844

Details

Provenance
donnerAuthored on Jun 21 2021, 3:19 PM
Differential Revision
D30844: libalias: Fix compile time warning about unused functions
Parents
rGc90902d39e7a: bus_child_pnpinfo: fix two stragglers
Branches
Unknown
Tags
Unknown