Skip to content

Commit

Permalink
net/vmxnet3: fix build with clang 13
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
conorwalsh-intel authored and david-marchand committed Nov 16, 2021
1 parent 0b62b3c commit e76eb56
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/net/vmxnet3/vmxnet3_rxtx.c
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,9 @@ vmxnet3_tq_tx_complete(vmxnet3_tx_queue_t *txq)
}

PMD_TX_LOG(DEBUG, "Processed %d tx comps & command descs.", completed);

/* To avoid compiler warnings when not in DEBUG mode. */
RTE_SET_USED(completed);
}

uint16_t
Expand Down

0 comments on commit e76eb56

Please sign in to comment.