8812 xge: variable set but not used

Review Request #739 — Created Nov. 18, 2017 and submitted

tsoome
illumos-gate
8812
3d34166...
general
../../common/io/xge/hal/xgehal/xgehal-channel.c: In function '__hal_channel_dtr_next_not_completed':
../../common/io/xge/hal/xgehal/xgehal-channel.c:80:24: error: variable 'rxdp' set but not used [-Werror=unused-but-set-variable]
  xge_hal_ring_rxd_1_t *rxdp; /* doesn't matter 1, 3 or 5... */
                        ^~~~

../../common/io/xge/hal/xgehal/xgehal-ring.c:79:21: error: variable 'from_dma' set but not used [-Werror=unused-but-set-variable]
  dma_addr_t to_dma, from_dma;
                     ^~~~~~~~

cc1: all warnings being treated as errors


yuripv
  1. May be silence it with -Wno as this looks to be something we could sync with upstream?

  2. 
      
rm
  1. I'm fine with either this or what Yuri suggested.

  2. 
      
tsoome
Review request changed

Status: Closed (submitted)

Loading...