HomeFreeBSD

fw_stub: fix -Wunused-but-set-variable for firmware files

Description

fw_stub: fix -Wunused-but-set-variable for firmware files

In case we are only embedding a single firmware image the variable
"parent" gets set but never used. Add checks for the number of files
for it and only print it out if we are exceeding the single file count.
This fixes -Wunused-but-set-variable warnings for the majority of
firmware files in the tree.

Sponsored by: The FreeBSD Foundation

(cherry picked from commit b394e16ef0b5ad0da5e029bcdd3a01e361724d8d)

Details

Provenance
bzAuthored on Nov 30 2021, 2:23 PM
Parents
rG1a305490732c: rc: network.subr improve network6_getladdr()
Branches
Unknown
Tags
Unknown