Actions
Bug #8812
closedxge: variable set but not used
Start date:
2017-11-18
Due date:
% Done:
100%
Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:
External Bug:
Description
Debug build error from gcc 6:
../../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
Actions