HomeFreeBSD

Fix unused variable warning in fwohci.c

Description

Fix unused variable warning in fwohci.c

With clang 15, the following -Werror warning is produced:

sys/dev/firewire/fwohci.c:2762:23: error: variable 'pcnt' set but not used [-Werror,-Wunused-but-set-variable]
        int len, plen, hlen, pcnt, offset;
                             ^

The 'pcnt' variable is eventually used only in an #if 0'd block,
obviously meant for debugging. Ensure that 'pcnt' is only declared and
used when COUNT_PACKETS is defined, so the debugging can be easily
turned on later, if desired.

MFC after: 3 days

(cherry picked from commit d7e0d962f39877b997454992a980f4122c6316e7)

Details

Provenance
dimAuthored on Jul 21 2022, 5:59 PM
Parents
rGf895c3b38743: Fix unused variable warning in if_re_netmap.h
Branches
Unknown
Tags
Unknown