lwip/test/unit
Joel Cunningham de531131c5 Fix compiler warnings seen with clang 8.1.0 on MacOS
This fixes the following warnings:

test_tcp.c:266:5: error: code will never be executed [-Werror,-Wunreachable-code]
    pbuf_free(p);
    ^~~~~~~~~
 - The check API 'fail' aborts the test, thus pbuf_free(p) will never be executed

pbuf.c:783:111: error: format specifies type 'unsigned short' but the argument has type 'u8_t' (aka 'unsigned char') [-Werror,-Wformat]
      LWIP_DEBUGF( PBUF_DEBUG | LWIP_DBG_TRACE, ("pbuf_free: %p has ref %"U16_F", ending here.\n", (void *)p, ref));
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
 - LWIP_PBUF_REF_T is u8_t by default and doesn't match U16_F, so cast to u16_t. The cast and formatter will need to be changed
   if ref is larger than 16 bits

ethernet.c:105:16: error: format specifies type 'unsigned char' but the argument has type 'unsigned int' [-Werror,-Wformat]
               (unsigned)ethhdr->dest.addr[0], (unsigned)ethhdr->dest.addr[1], (unsigned)ethhdr->dest.addr[2],
~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 - addr[] is type u8_t, formatter is X8_F which should be 8 bits. 'unsigned' is an int, so cast to unsighed char instead
2017-10-13 07:52:34 -05:00
..
api Finally fix bug #50088 (socket/netconn: data before RST should be readable) and added a unit test for it 2017-08-03 22:28:50 +02:00
arch Make sys_arch_sem_wait() & sys_arch_mbox_fetch() a little more robust when waiting (although this should never be a problem...) 2017-07-20 22:02:30 +02:00
core Fix a corner case of double-free in the heap 2017-09-25 22:29:02 +02:00
dhcp Ensure that unit tests leave the stack in a clean state 2017-08-03 22:28:50 +02:00
etharp test_etharp.c: IANA_HWTYPE_ETHERNET -> LWIP_IANA_HWTYPE_ETHERNET 2017-08-08 12:22:19 +02:00
ip4 Ensure that unit tests leave the stack in a clean state 2017-08-03 22:28:50 +02:00
mdns Possible null-pointer dereference 2017-03-22 22:51:08 +01:00
mqtt Ensure that unit tests leave the stack in a clean state 2017-08-03 22:28:50 +02:00
tcp Fix compiler warnings seen with clang 8.1.0 on MacOS 2017-10-13 07:52:34 -05:00
udp Ensure that unit tests leave the stack in a clean state 2017-08-03 22:28:50 +02:00
Filelists.mk Fixed bugs #51606 and #51535: IPv4 reassembly could be finished although there are holes 2017-08-02 21:11:53 +02:00
lwip_check.h Fix unit tests under linux 2017-08-04 06:17:21 +02:00
lwip_unittests.c Fix unit tests under linux 2017-08-04 06:17:21 +02:00
lwipopts.h Added two simple unit tests for illegal calls to mem_free() 2017-09-25 21:38:00 +02:00