mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Fix unused variable warning in netipsec's key_debug.c
With clang 15, the following -Werror warning is produced:
sys/netipsec/key_debug.c:923:9: error: variable 'j' set but not used [-Werror,-Wunused-but-set-variable]
int i, j;
^
The 'j' variable was in key_debug.c when it was first added, but it
appears to have been a debugging aid that has never been used, so remove
it.
MFC after: 3 days
This commit is contained in:
parent
8bd2887be5
commit
c01fdd7a9f
1 changed files with 2 additions and 3 deletions
|
|
@ -920,9 +920,9 @@ void
|
|||
kdebug_mbuf(const struct mbuf *m0)
|
||||
{
|
||||
const struct mbuf *m = m0;
|
||||
int i, j;
|
||||
int i;
|
||||
|
||||
for (j = 0; m; m = m->m_next) {
|
||||
for (; m; m = m->m_next) {
|
||||
kdebug_mbufhdr(m);
|
||||
printf(" m_data:\n");
|
||||
for (i = 0; i < m->m_len; i++) {
|
||||
|
|
@ -931,7 +931,6 @@ kdebug_mbuf(const struct mbuf *m0)
|
|||
if (i % 4 == 0)
|
||||
printf(" ");
|
||||
printf("%02x", mtod(m, const u_char *)[i]);
|
||||
j++;
|
||||
}
|
||||
printf("\n");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue