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 7d60fdc8b5
commit c946c1ccbb

View File

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