mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-09-09 23:54:32 +00:00
Fixed unsused variable warning when SICSLOWPAN_CONF_FRAG is undefined
This commit is contained in:
parent
7d60fdc8b5
commit
c946c1ccbb
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user