Skip to content

Commit e76eb56

Browse files
conorwalsh-inteldavid-marchand
authored andcommitted
net/vmxnet3: fix build with clang 13
The completed variable is used for debug logs even though clang 13 reports it as unused. Bugzilla ID: 881 Fixes: c3ecdbb ("vmxnet3: support TSO") Cc: stable@dpdk.org Reported-by: Liang Longfeng <longfengx.liang@intel.com> Signed-off-by: Conor Walsh <conor.walsh@intel.com> Reviewed-by: David Marchand <david.marchand@redhat.com>
1 parent 0b62b3c commit e76eb56

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/net/vmxnet3/vmxnet3_rxtx.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,9 @@ vmxnet3_tq_tx_complete(vmxnet3_tx_queue_t *txq)
340340
}
341341

342342
PMD_TX_LOG(DEBUG, "Processed %d tx comps & command descs.", completed);
343+
344+
/* To avoid compiler warnings when not in DEBUG mode. */
345+
RTE_SET_USED(completed);
343346
}
344347

345348
uint16_t

0 commit comments

Comments
 (0)