From 586f4a4ae366c19fb6324485a2ca09d7f43139e0 Mon Sep 17 00:00:00 2001 From: Simon Duquennoy Date: Wed, 11 Nov 2015 11:44:42 +0100 Subject: [PATCH] sicslowpan.c: warning-free compilation even with fragmentation disabled --- core/net/ipv6/sicslowpan.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/net/ipv6/sicslowpan.c b/core/net/ipv6/sicslowpan.c index 34648ab2b..3a870a8c5 100644 --- a/core/net/ipv6/sicslowpan.c +++ b/core/net/ipv6/sicslowpan.c @@ -1363,8 +1363,10 @@ 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; @@ -1593,8 +1595,8 @@ input(void) uint16_t frag_size = 0; /* offset of the fragment in the IP packet */ uint8_t frag_offset = 0; - uint8_t is_fragment = 0; #if SICSLOWPAN_CONF_FRAG + uint8_t is_fragment = 0; /* tag of the fragment */ uint16_t frag_tag = 0; uint8_t first_fragment = 0, last_fragment = 0;