HomeFreeBSD

Fix unused variable warning in if_alc.c

Description

Fix unused variable warning in if_alc.c

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

sys/dev/alc/if_alc.c:3441:6: error: variable 'prog' set but not used [-Werror,-Wunused-but-set-variable]
        int prog;
            ^

The 'prog' variable seems to be a left-over from some debugging code
that no longer exists, and can be removed without any functional change.

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

(cherry picked from commit 64741244fc4588eefd954948b77ddf2706448ecd)

Details

Provenance
dimAuthored on Jul 16 2022, 3:06 PM
Differential Revision
D35831: Ugly workaround for clang 15 warning in if_alc.c
Parents
rGebdbb70a589d: Suppress unused variable warning in ip_dummynet.c
Branches
Unknown
Tags
Unknown