mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue