From c4dfb76b0dcd7ddccddb200b20039d66df51175d Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sun, 30 Dec 2018 16:05:28 -0600 Subject: [PATCH] Fix some warnings found in build testing. --- arch/arm/src/stm32f0l0/hardware/stm32f0_pwr.h | 4 ++-- configs/stm32butterfly2/src/Makefile | 2 +- net/sixlowpan/sixlowpan_hc06.c | 1 - 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/arch/arm/src/stm32f0l0/hardware/stm32f0_pwr.h b/arch/arm/src/stm32f0l0/hardware/stm32f0_pwr.h index 9081a21ee7..d28979805a 100644 --- a/arch/arm/src/stm32f0l0/hardware/stm32f0_pwr.h +++ b/arch/arm/src/stm32f0l0/hardware/stm32f0_pwr.h @@ -48,8 +48,8 @@ * Pre-processor Definitions ************************************************************************************/ -#undef HAVE_PWR_WKUP2 1 -#undef HAVE_PWR_WKUP3 1 +#undef HAVE_PWR_WKUP2 +#undef HAVE_PWR_WKUP3 /* Register Offsets *****************************************************************/ diff --git a/configs/stm32butterfly2/src/Makefile b/configs/stm32butterfly2/src/Makefile index 480c84a8a4..632158bc58 100644 --- a/configs/stm32butterfly2/src/Makefile +++ b/configs/stm32butterfly2/src/Makefile @@ -49,7 +49,7 @@ ifeq ($(CONFIG_STM32_OTGFS),y) CSRCS += stm32_usb.c endif -ifeq ($(CONFIG_USBHOST),y) +ifeq ($(CONFIG_STM32_USBHOST),y) CSRCS += stm32_usbhost.c endif diff --git a/net/sixlowpan/sixlowpan_hc06.c b/net/sixlowpan/sixlowpan_hc06.c index e4e872a71f..9c8d01589a 100644 --- a/net/sixlowpan/sixlowpan_hc06.c +++ b/net/sixlowpan/sixlowpan_hc06.c @@ -423,7 +423,6 @@ static void uncompress_addr(FAR const struct netdev_varaddr_s *addr, FAR net_ipv6addr_t ipaddr) { FAR const uint8_t *srcptr; - bool fullmac = false; bool usemac = (prefpost & UNCOMPRESS_MACBASED) != 0; uint8_t prefcount = UNCOMPRESS_PREFLEN(prefpost); uint8_t postcount = UNCOMPRESS_POSTLEN(prefpost);