Fixed compiler warnings in unit tests

This commit is contained in:
goldsimon 2015-03-06 07:39:06 +01:00
parent 896535fe87
commit df16a7c4f3
2 changed files with 2 additions and 1 deletions

View File

@ -92,6 +92,7 @@ START_TEST(test_mem_random)
int x; int x;
int size; int size;
int freestep; int freestep;
LWIP_UNUSED_ARG(_i);
fail_unless(lwip_stats.mem.used == 0); fail_unless(lwip_stats.mem.used == 0);

View File

@ -256,7 +256,7 @@ void test_tcp_input(struct pbuf *p, struct netif *inp)
} }
static err_t test_tcp_netif_output(struct netif *netif, struct pbuf *p, static err_t test_tcp_netif_output(struct netif *netif, struct pbuf *p,
ip_addr_t *ipaddr) const ip_addr_t *ipaddr)
{ {
struct test_tcp_txcounters *txcounters = (struct test_tcp_txcounters*)netif->state; struct test_tcp_txcounters *txcounters = (struct test_tcp_txcounters*)netif->state;
LWIP_UNUSED_ARG(ipaddr); LWIP_UNUSED_ARG(ipaddr);