Eliminate unused variable warnings. Dummy test of PT_YIELD_FLAG does not change program size.

This commit is contained in:
David Kopf 2012-02-21 11:23:54 -05:00
parent ea3d427c33
commit 745f071c98
4 changed files with 8 additions and 12 deletions

View file

@ -28,7 +28,6 @@
*
* This file is part of the Contiki operating system.
*
* $Id: xmac.c,v 1.60 2011/01/25 14:31:09 adamdunkels Exp $
*/
/**
@ -463,7 +462,7 @@ send_packet(void)
uint8_t strobe[MAX_STROBE_SIZE];
int strobe_len, len;
int is_broadcast = 0;
int is_reliable;
/*int is_reliable; */
struct encounter *e;
struct queuebuf *packet;
int is_already_streaming = 0;
@ -491,8 +490,8 @@ send_packet(void)
packetbuf_addr(PACKETBUF_ADDR_RECEIVER)->u8[1]);
#endif /* UIP_CONF_IPV6 */
}
is_reliable = packetbuf_attr(PACKETBUF_ATTR_RELIABLE) ||
packetbuf_attr(PACKETBUF_ATTR_ERELIABLE);
/* is_reliable = packetbuf_attr(PACKETBUF_ATTR_RELIABLE) ||
packetbuf_attr(PACKETBUF_ATTR_ERELIABLE); */
packetbuf_set_attr(PACKETBUF_ATTR_MAC_ACK, 1);
len = NETSTACK_FRAMER.create();