Fix some warnings found in build testing.

This commit is contained in:
Gregory Nutt 2018-12-30 16:05:28 -06:00
parent 920bb9dec8
commit c4dfb76b0d
3 changed files with 3 additions and 4 deletions

View File

@ -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 *****************************************************************/

View File

@ -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

View File

@ -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);