Suppress unused variable warning in ip_dummynet.c
With clang 15, the following -Werror warning is produced: sys/netpfil/ipfw/ip_dummynet.c:802:6: error: variable 'n' set but not used [-Werror,-Wunused-but-set-variable] int n = 0; /* only for stats */ ^ Here, 'n' is a variable that is only used when debugging. Mark the variable as potentially unused, to suppress the warning. MFC after: 3 days
This commit is contained in:
parent
3dbe05f61b
commit
5c329f0a4d
@ -799,7 +799,7 @@ static void
|
||||
fsk_detach_list(struct dn_fsk_head *h, int flags)
|
||||
{
|
||||
struct dn_fsk *fs;
|
||||
int n = 0; /* only for stats */
|
||||
int n __unused = 0; /* only for stats */
|
||||
|
||||
ND("head %p flags %x", h, flags);
|
||||
while ((fs = SLIST_FIRST(h))) {
|
||||
|
Loading…
Reference in New Issue
Block a user