Fixed unsused variable warning when SICSLOWPAN_CONF_FRAG is undefined

This commit is contained in:
Wojciech Bober 2015-12-23 21:21:51 +01:00 committed by Wojciech Bober
parent 1cc659d882
commit 803d170b55

View file

@ -1285,11 +1285,6 @@ output(const uip_lladdr_t *localdest)
/* The MAC address of the destination of the packet */
linkaddr_t dest;
#if SICSLOWPAN_CONF_FRAG
/* Number of bytes processed. */
uint16_t processed_ip_out_len;
#endif /* SICSLOWPAN_CONF_FRAG */
/* init */
uncomp_hdr_len = 0;
packetbuf_hdr_len = 0;
@ -1367,6 +1362,9 @@ output(const uip_lladdr_t *localdest)
max_payload = MAC_MAX_PAYLOAD - framer_hdrlen;
if((int)uip_len - (int)uncomp_hdr_len > max_payload - (int)packetbuf_hdr_len) {
#if SICSLOWPAN_CONF_FRAG
/* Number of bytes processed. */
uint16_t processed_ip_out_len;
struct queuebuf *q;
uint16_t frag_tag;