HomeFreeBSD

Suppress unused variable warning for zfs_fm.c

Description

Suppress unused variable warning for zfs_fm.c

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

sys/contrib/openzfs/module/zfs/zfs_fm.c:256:6: error: variable 'cnt' set but not used [-Werror,-Wunused-but-set-variable]
        int cnt = 0;
            ^

The 'cnt' variable does not seem to be used for anything, but since this
is contributed code, suppress the warning instead.

MFC after: 3 days

(cherry picked from commit e726e7105685f99b066fcc3908c07157599cd290)

Details

Provenance
dimAuthored on Jul 26 2022, 8:07 PM
Parents
rG7df49deb2e7f: Fix unused variable warning in ieee80211_proto.c
Branches
Unknown
Tags
Unknown