I think this variable serves a documentation and completeness purpose even though it is not used in the function's computation. In order to prevent gcc from issuing a warning about set but unused variables, annotate it with __attribute__((__unused__)).
Signed-off-by: Andy Grover <[email protected]> --- iscsiuio/src/uip/uip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iscsiuio/src/uip/uip.c b/iscsiuio/src/uip/uip.c index 703cefc..ec3d6ce 100644 --- a/iscsiuio/src/uip/uip.c +++ b/iscsiuio/src/uip/uip.c @@ -1023,7 +1023,7 @@ void uip_process(struct uip_stack *ustack, u8_t flag) struct uip_tcp_ipv4_hdr *tcp_ipv4_hdr = NULL; struct uip_tcp_hdr *tcp_hdr = NULL; struct uip_icmpv4_hdr *icmpv4_hdr = NULL; - struct uip_icmpv6_hdr *icmpv6_hdr = NULL; + struct uip_icmpv6_hdr *icmpv6_hdr __attribute__((__unused__)) = NULL; struct uip_udp_hdr *udp_hdr = NULL; /* Drop invalid packets */ -- 1.9.3 -- You received this message because you are subscribed to the Google Groups "open-iscsi" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/open-iscsi. For more options, visit https://groups.google.com/d/optout.
