From c89a513ad17ee3d030545795be740937a53408da Mon Sep 17 00:00:00 2001 From: kkrentz Date: Mon, 14 May 2018 05:38:52 -0700 Subject: [PATCH 1/2] uip-ds6.c: Avoid compilation warning --- os/net/ipv6/uip-ds6.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/os/net/ipv6/uip-ds6.c b/os/net/ipv6/uip-ds6.c index 879f47881..4e82b3745 100644 --- a/os/net/ipv6/uip-ds6.c +++ b/os/net/ipv6/uip-ds6.c @@ -91,7 +91,9 @@ static uip_ds6_maddr_t *locmaddr; static uip_ds6_aaddr_t *locaaddr; #endif /* UIP_DS6_AADDR_NB */ static uip_ds6_prefix_t *locprefix; +#if (UIP_LLADDR_LEN == 2) static const uint8_t iid_prefix[] = { 0x00, 0x00 , 0x00 , 0xff , 0xfe , 0x00 }; +#endif /* (UIP_LLADDR_LEN == 2) */ /*---------------------------------------------------------------------------*/ void From 15a3f32b293eda508da0da05409a7ffc0739c53a Mon Sep 17 00:00:00 2001 From: kkrentz Date: Mon, 14 May 2018 09:22:07 -0700 Subject: [PATCH 2/2] Do not warn us about unused constants --- Makefile.include | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile.include b/Makefile.include index 4de7e7dbb..c11aea699 100644 --- a/Makefile.include +++ b/Makefile.include @@ -49,6 +49,7 @@ CFLAGS += -DCONTIKI_BOARD_$(TARGET_BOARD_UPPERCASE)=1 CFLAGS += -DCONTIKI_BOARD_STRING=\"$(BOARD)\" endif +CFLAGS += -Wno-unused-const-variable LDFLAGS = -Wl,--fatal-warnings MODULES += os os/sys os/dev os/lib os/services