Merge pull request #1293 from simonduq/pr/fix-warnings
Fix a number of compiler warnings and enable -Werror in Travis
This commit is contained in:
commit
fbd78a7e3b
80 changed files with 201 additions and 146 deletions
|
@ -92,7 +92,7 @@ set_global_address(void)
|
|||
/*---------------------------------------------------------------------------*/
|
||||
uint8_t should_blink = 1;
|
||||
static void
|
||||
route_callback(int event, uip_ipaddr_t *route, uip_ipaddr_t *ipaddr)
|
||||
route_callback(int event, uip_ipaddr_t *route, uip_ipaddr_t *ipaddr, int num_routes)
|
||||
{
|
||||
if(event == UIP_DS6_NOTIFICATION_DEFRT_ADD) {
|
||||
should_blink = 0;
|
||||
|
@ -105,11 +105,10 @@ PROCESS_THREAD(receiver_node_process, ev, data)
|
|||
{
|
||||
static struct etimer et;
|
||||
static struct uip_ds6_notification n;
|
||||
uip_ipaddr_t *ipaddr;
|
||||
|
||||
PROCESS_BEGIN();
|
||||
|
||||
ipaddr = set_global_address();
|
||||
set_global_address();
|
||||
|
||||
uip_ds6_notification_add(&n, route_callback);
|
||||
|
||||
|
|
|
@ -2,5 +2,7 @@
|
|||
#define RESOLV_CONF_SUPPORTS_MDNS 0
|
||||
#define COOJA_MTARCH_STACKSIZE 4096
|
||||
|
||||
#undef UIP_CONF_MAX_ROUTES
|
||||
#define UIP_CONF_MAX_ROUTES 3
|
||||
#undef NBR_TABLE_CONF_MAX_NEIGHBORS
|
||||
#define NBR_TABLE_CONF_MAX_NEIGHBORS 3
|
||||
|
|
|
@ -2,7 +2,9 @@
|
|||
#define RESOLV_CONF_SUPPORTS_MDNS 0
|
||||
#define COOJA_MTARCH_STACKSIZE 4096
|
||||
|
||||
#undef UIP_CONF_MAX_ROUTES
|
||||
#define UIP_CONF_MAX_ROUTES 8
|
||||
#undef NBR_TABLE_CONF_MAX_NEIGHBORS
|
||||
#define NBR_TABLE_CONF_MAX_NEIGHBORS 8
|
||||
|
||||
/*#define RPL_CONF_DEFAULT_LIFETIME_UNIT 10
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
#include "contiki-net.h"
|
||||
#include "ip64.h"
|
||||
#include "net/netstack.h"
|
||||
#include "net/rpl/rpl-dag-root.h"
|
||||
|
||||
/*---------------------------------------------------------------------------*/
|
||||
PROCESS(router_node_process, "Router node");
|
||||
|
|
|
@ -41,7 +41,7 @@ define dooneexample
|
|||
@echo Building example $(3): $(1) for target $(2)
|
||||
@((cd $(EXAMPLESDIR)/$(1); \
|
||||
export STM32W_CPUREV=CC; \
|
||||
make TARGET=$(2) clean && make TARGET=$(2)) > \
|
||||
make TARGET=$(2) clean && make TARGET=$(2) WERROR=1) > \
|
||||
$(3)-$(subst /,-,$(1))$(2).report 2>&1 && \
|
||||
(echo $(1) $(2): OK | tee $(3)-$(subst /,-,$(1))$(2).summary) || \
|
||||
(echo $(1) $(2): FAIL ಠ.ಠ | tee $(3)-$(subst /,-,$(1))$(2).summary ; \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue